Function at 0x499450
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ab0
call fcn.004ce570
mov eax, dword [0x52382c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2a24], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x2a2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2a50], ecx
push esi
mov ecx, ebx
mov dword [ebp - 0x2a28], edx
mov dword [ebp - 0x2a4c], eax
call fcn.0048b130
cmp dword [ebp + 0x20], 0
mov dword [ebx + 0x28], 0
je 0x4994e3
mov eax, dword [ebx]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
lea ecx, [ebp - 0x2a0c]
push ecx
push eax
call edx
test dword [ebp - 0x29d0], 0x4000
je 0x4994e3
test dword [ebp - 0x29cc], 0x20000
mov dword [ebx + 0x28], 1
je 0x4994e3
mov dword [ebx + 0x28], 2
push 0x1000000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x499508
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret 0x20
push edi
push 0x1000000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x2a18], edi
test edi, edi
jne 0x49953e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret 0x20
push 0x1000000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x2a1c], eax
test eax, eax
jne 0x499576
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret 0x20
push 0x1000000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x2a20], eax
test eax, eax
jne 0x4995b7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push edi
call esi
mov eax, dword [ebp - 0x2a1c]
push eax
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp - 0x2a2c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll__lopen]
cmp eax, 0xffffffff
je 0x499622
push 0x1000000
push esi
push eax
call dword [sym.imp.KERNEL32.dll__lread]
push 0x38
mov dword [ebp - 0x2a2c], eax
xor eax, eax
push str.1.1.4
lea ecx, [ebp - 0x2ab0]
push ecx
mov dword [ebp - 0x2a90], eax
mov dword [ebp - 0x2a8c], eax
mov dword [ebp - 0x2a88], eax
mov dword [ebp - 0x2ab0], eax
mov dword [ebp - 0x2aac], eax
call fcn.004ca6e0
test eax, eax
je 0x499631
push str.LoadFromMe2_inflateInit_Error__
call fcn.0040b000
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push edi
jmp 0x4999ab
mov ecx, dword [ebp - 0x2a2c]
push 4
lea edx, [ebp - 0x2ab0]
push edx
mov dword [ebp - 0x2ab0], esi
mov dword [ebp - 0x2aac], ecx
mov dword [ebp - 0x2aa4], edi
mov dword [ebp - 0x2aa0], 0xfffffc
call fcn.004ca700
cmp eax, 1
je 0x4996a6
push str.LoadFromMe2_inflate_Z_NO_FLUSH_Error__
call fcn.0040b000
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push edi
call esi
mov eax, dword [ebp - 0x2a1c]
push eax
call esi
mov ecx, dword [ebp - 0x2a20]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret 0x20
lea edx, [ebp - 0x2ab0]
push edx
call fcn.004ca590
test eax, eax
je 0x4996f6
push str.LoadFromMe2_inflateEnd_Error___
call fcn.0040b000
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push edi
call esi
mov eax, dword [ebp - 0x2a1c]
push eax
call esi
mov ecx, dword [ebp - 0x2a20]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret 0x20
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [ebp - 0x2a18]
mov edx, dword [ebp - 0x2a18]
mov ecx, 0xa
lea edi, [ebp - 0x2a78]
rep movsd dword es:[edi], dword [esi]
fld dword [ebp - 0x2a68]
fstp dword [ebx + 0xf8e8]
fld dword [ebp - 0x2a64]
fstp dword [ebx + 0xf8ec]
fld dword [ebp - 0x2a60]
fstp dword [ebx + 0xf8f0]
fld dword [ebp - 0x2a5c]
fstp dword [ebx + 0xf8f4]
fld dword [ebp - 0x2a58]
fstp dword [ebx + 0xf8f8]
fld dword [ebp - 0x2a54]
mov eax, dword [ebp - 0x2a74]
fstp dword [ebx + 0xf8fc]
mov ecx, dword [ebp - 0x2a6c]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0x2a70]
lea edi, [eax + eax*2]
add edi, edi
xor esi, esi
add edi, edi
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], ecx
push edi
add edx, 0x28
add ecx, eax
push esi
mov dword [ebp - 0x2a10], edx
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x54], esi
mov dword [ebx + 0xf8a0], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 0x7c], eax
cmp eax, esi
je 0x49999e
xor edx, edx
cmp dword [ebx + 0x34], edx
jbe 0x4997d9
lea esp, [esp]
mov eax, dword [ebx + 0x7c]
xor ecx, ecx
mov dword [eax + esi], ecx
mov dword [eax + esi + 4], ecx
mov dword [eax + esi + 8], ecx
inc edx
add esi, 0xc
cmp edx, dword [ebx + 0x34]
jb 0x4997c0
add dword [ebx + 0x50], edi
mov eax, dword [ebx + 0x3c]
lea edi, [eax + eax*2]
add edi, edi
add edi, edi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 0x84], eax
test eax, eax
je 0x49999e
xor edx, edx
cmp dword [ebx + 0x3c], edx
jbe 0x49982c
xor esi, esi
jmp 0x499810
mov eax, dword [ebx + 0x84]
xor ecx, ecx
mov dword [eax + esi], ecx
mov dword [eax + esi + 4], ecx
mov dword [eax + esi + 8], ecx
inc edx
add esi, 0xc
cmp edx, dword [ebx + 0x3c]
jb 0x499810
mov eax, dword [ebx + 0x34]
add dword [ebx + 0x50], edi
lea eax, [eax + eax*4]
shl eax, 4
push eax
push 0
mov dword [ebp - 0x2a2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 0x80], eax
test eax, eax
je 0x49999e
xor esi, esi
cmp dword [ebx + 0x34], esi
jbe 0x49987e
xor edi, edi
mov edi, edi
mov ecx, dword [ebx + 0x80]
push 0x50
add ecx, edi
push 0
push ecx
call fcn.004cce10
inc esi
add esp, 0xc
add edi, 0x50
cmp esi, dword [ebx + 0x34]
jb 0x499860
mov esi, dword [ebx + 0x3c]
mov edx, dword [ebp - 0x2a2c]
add dword [ebx + 0x54], edx
lea esi, [esi + esi*4]
shl esi, 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 0x88], eax
test eax, eax
je 0x49a5e9
xor edi, edi
cmp dword [ebx + 0x3c], edi
jbe 0x4998e6
mov dword [ebp - 0x2a14], edi
jmp 0x4998c0
mov eax, dword [ebx + 0x88]
add eax, dword [ebp - 0x2a14]
push 0x50
push 0
push eax
call fcn.004cce10
add dword [ebp - 0x2a14], 0x50
inc edi
add esp, 0xc
cmp edi, dword [ebx + 0x3c]
jb 0x4998c0
mov edi, dword [ebx + 0x34]
add dword [ebx + 0x54], esi
lea edi, [edi + edi*2]
add edi, edi
add edi, edi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 0xf8a4], eax
test eax, eax
je 0x49999e
xor edx, edx
cmp dword [ebx + 0x34], edx
jbe 0x49992f
xor esi, esi
mov eax, dword [ebx + 0xf8a4]
xor ecx, ecx
mov dword [eax + esi], ecx
mov dword [eax + esi + 4], ecx
mov dword [eax + esi + 8], ecx
inc edx
add esi, 0xc
cmp edx, dword [ebx + 0x34]
jb 0x499913
add dword [ebx + 0xf8a0], edi
mov eax, dword [ebx + 0x3c]
lea edi, [eax + eax*2]
add edi, edi
add edi, edi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 0xf8a8], eax
test eax, eax
je 0x49999e
xor edx, edx
cmp dword [ebx + 0x3c], edx
jbe 0x49997c
xor esi, esi
jmp 0x499960
mov eax, dword [ebx + 0xf8a8]
xor ecx, ecx
mov dword [eax + esi], ecx
mov dword [eax + esi + 4], ecx
mov dword [eax + esi + 8], ecx
inc edx
add esi, 0xc
cmp edx, dword [ebx + 0x3c]
jb 0x499960
mov esi, dword [ebx + 0x40]
add dword [ebx + 0xf8a0], edi
add esi, esi
add esi, esi
add esi, esi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 0xf8ac], eax
test eax, eax
jne 0x4999d4
mov ecx, dword [ebp - 0x2a18]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push ecx
call esi
mov edx, dword [ebp - 0x2a1c]
push edx
call esi
mov eax, dword [ebp - 0x2a20]
push eax
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret 0x20
xor eax, eax
cmp dword [ebx + 0x40], eax
jbe 0x4999f6
jmp 0x4999e0
mov edx, dword [ebx + 0xf8ac]
xor ecx, ecx
lea edx, [edx + eax*8]
mov dword [edx], ecx
inc eax
mov dword [edx + 4], ecx
cmp eax, dword [ebx + 0x40]
jb 0x4999e0
mov eax, dword [ebp + 0x24]
add dword [ebx + 0xf8a0], esi
mov dword [ebx + 0xf8b0], eax
xor eax, eax
mov ecx, 0x400
lea edi, [ebp - 0x1904]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x904]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor edi, edi
cmp dword [ebx + 0x44], edi
jbe 0x499cd4
lea edx, [ebx + 0x7894]
mov dword [ebp - 0x2a14], edx
lea ecx, [ecx]
xor eax, eax
push 0x100
push eax
mov word [ebp - 0x2a48], ax
mov byte [ebp - 0x2a46], al
lea eax, [ebp - 0x504]
push eax
call fcn.004cce10
push 0x100
lea ecx, [ebp - 0x304]
push 0
push ecx
call fcn.004cce10
push 0x100
lea edx, [ebp - 0x404]
push 0
push edx
call fcn.004cce10
push 0x100
lea eax, [ebp - 0x704]
push 0
push eax
call fcn.004cce10
mov ecx, dword [ebp - 0x2a10]
mov esi, dword [ecx]
add dword [ebp - 0x2a10], 4
add esp, 0x30
test esi, esi
jle 0x499cc1
mov edx, dword [ebp - 0x2a10]
push esi
push edx
lea eax, [ebp - 0x704]
push eax
call fcn.004cd640
add dword [ebp - 0x2a10], esi
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x304]
push edx
lea eax, [ebp - 0x504]
push eax
lea ecx, [ebp - 0x2a48]
push ecx
lea edx, [ebp - 0x704]
push edx
call fcn.004cfade
mov eax, dword [ebp - 0x2a28]
mov edx, dword [ebp - 0x2a24]
push eax
lea ecx, [ebp - 0x304]
push ecx
push edx
lea eax, [ebp - 0x904]
push eax
lea ecx, [ebp - 0x204]
push str._s_s_s._s
push ecx
call fcn.004cce8a
mov edx, dword [ebp - 0x2a14]
add esp, 0x38
cmp dword [edx], 0
je 0x499b6b
mov eax, dword [ebp - 0x2a28]
mov edx, dword [ebp - 0x2a24]
push eax
lea ecx, [ebp - 0x304]
push ecx
push edx
lea eax, [ebp - 0x204]
push str.Texture_On_Used:__s_s._s
push eax
call fcn.004cce8a
lea ecx, [ebp - 0x204]
push ecx
call fcn.0040b000
add esp, 0x18
jmp 0x499cc1
mov esi, dword [ebp - 0x2a28]
push 3
push 0x4e4570
push esi
call fcn.004ccfca
add esp, 0xc
test eax, eax
jne 0x499bd9
lea edx, [ebp - 0x2918]
push edx
lea eax, [ebp - 0x204]
push eax
call fcn.0047d590
add esp, 8
push 0x15
lea ecx, [ebp - 0x204]
push ecx
push edi
mov ecx, ebx
mov dword [ebp + edi*4 - 0x2904], 0x15
call fcn.0048e590
cmp eax, 0xffffffff
jne 0x499cb6
mov eax, dword [ebp - 0x2a24]
push esi
lea edx, [ebp - 0x304]
push edx
push eax
push str.Texture_Lost3:__s_s._s
jmp 0x499c99
lea eax, [ebp - 0x2938]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.0047e110
add esp, 8
cmp dword [ebx + 0x28], 0
mov dword [ebp + edi*4 - 0x2904], 0x15
jbe 0x499c5d
mov edx, dword [ebp - 0x2a20]
mov eax, dword [ebp - 0x2a1c]
mov ecx, dword [ebp + 0x1c]
push edx
push eax
push 0x15
push ecx
lea edx, [ebp - 0x204]
push edx
push edi
mov ecx, ebx
call fcn.00493e60
cmp eax, 0xffffffff
jne 0x499cb6
mov ecx, dword [ebp - 0x2a24]
push esi
lea eax, [ebp - 0x304]
push eax
push ecx
lea edx, [ebp - 0x204]
push str.Texture_Lost4:__s_s._s
push edx
call fcn.004cce8a
lea eax, [ebp - 0x204]
push eax
call fcn.0040b000
add esp, 0x18
jmp 0x499cc1
mov ecx, dword [ebp - 0x2a20]
mov edx, dword [ebp - 0x2a1c]
mov eax, dword [ebp + 0x1c]
push ecx
push edx
push 0x15
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
mov ecx, ebx
call fcn.00490150
cmp eax, 0xffffffff
jne 0x499cb6
mov eax, dword [ebp - 0x2a24]
push esi
lea edx, [ebp - 0x304]
push edx
push eax
push str.Texture_Lost5:__s_s._s
lea ecx, [ebp - 0x204]
push ecx
call fcn.004cce8a
lea edx, [ebp - 0x204]
push edx
call fcn.0040b000
add esp, 0x18
jmp 0x499cc1
mov dword [ebp + edi*4 - 0x1904], 1
add dword [ebp - 0x2a14], 4
inc edi
cmp edi, dword [ebx + 0x44]
jb 0x499a40
xor edi, edi
mov dword [ebp - 0x2a28], edi
cmp dword [ebx + 0x34], edi
jbe 0x49a100
mov dword [ebp - 0x2a24], edi
mov dword [ebp - 0x2a14], edi
nop
mov eax, dword [ebp - 0x2a10]
mov edx, dword [ebp - 0x2a24]
mov esi, eax
mov ecx, 0xa
lea edi, [ebp - 0x2aa0]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x28]
add eax, 0x44
mov ecx, 7
lea edi, [ebp - 0x2a6c]
rep movsd dword es:[edi], dword [esi]
fld dword [ebp - 0x2a58]
mov cx, word [ebp - 0x2a80]
movzx esi, word [ebp - 0x2a7c]
mov dword [ebp - 0x2a10], eax
mov eax, dword [ebx + 0x7c]
mov word [edx + eax], cx
mov ecx, dword [ebx + 0x80]
mov eax, dword [ebp - 0x2a14]
mov word [eax + ecx + 2], si
mov ecx, dword [ebx + 0x80]
movzx esi, word [ebp - 0x2a6c]
mov word [eax + ecx + 4], si
mov ecx, dword [ebx + 0x80]
movzx esi, word [ebp - 0x2a68]
mov word [eax + ecx], si
mov ecx, dword [ebx + 0x80]
mov esi, dword [ebp - 0x2a64]
mov dword [eax + ecx + 8], esi
mov esi, dword [ebp - 0x2a60]
lea ecx, [eax + ecx + 8]
mov dword [ecx + 4], esi
mov esi, dword [ebp - 0x2a5c]
mov dword [ecx + 8], esi
mov ecx, dword [ebx + 0x80]
fstp dword [eax + ecx + 0x14]
mov ecx, dword [ebx + 0x80]
fld dword [ebp - 0x2a54]
fstp dword [eax + ecx + 0x18]
mov ecx, dword [ebx + 0x7c]
add ecx, edx
movzx edx, word [ecx]
test dx, dx
je 0x49a0af
mov esi, 0xc350
cmp dx, si
ja 0x49a0af
mov edx, dword [ebx + 0x80]
movzx esi, word [edx + eax + 4]
add edx, eax
cmp dword [ebp + esi*4 - 0x1904], 2
lea eax, [ebp + esi*4 - 0x1904]
jge 0x499df6
mov dword [eax], 2
test byte [edx], 2
je 0x499e10
cmp dword [ebx + esi*4 + 0xe894], 0
jne 0x499e10
cmp dword [eax], 3
jge 0x499e10
mov dword [eax], 3
mov edi, dword [ebp - 0x2a24]
mov dword [ecx + 8], 0
mov eax, dword [ebx + 0x7c]
movzx eax, word [edi + eax]
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
add esi, esi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebx + 0x7c]
mov dword [edi + ecx + 8], eax
mov edx, dword [ebx + 0x7c]
mov eax, dword [edi + edx + 8]
lea ecx, [edi + edx]
test eax, eax
je 0x499e8e
add dword [ebx + 0x50], esi
xor esi, esi
xor edx, edx
cmp si, word [ecx]
jae 0x499e8e
jmp 0x499e60
mov esi, dword [ebp - 0x2a10]
add dword [ebp - 0x2a10], 0x28
mov edi, eax
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x48]
mov ecx, dword [ebx + 0x7c]
mov esi, dword [ebp - 0x2a24]
movzx ecx, word [esi + ecx]
inc edx
add eax, 0x28
cmp edx, ecx
jb 0x499e60
mov eax, dword [ebp - 0x2a14]
mov edx, dword [ebx + 0x80]
lea ecx, [eax + edx + 2]
movzx eax, word [ecx]
test ax, ax
je 0x499eb0
mov edx, 0xc350
cmp ax, dx
jbe 0x499eb5
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebx + 0x80]
mov esi, dword [ebp - 0x2a14]
movzx edi, word [esi + ecx + 2]
lea edi, [edi + edi*2]
add edi, edi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebx + 0x80]
mov dword [esi + edx + 0x3c], eax
test eax, eax
je 0x49a5d5
add dword [ebx + 0x54], edi
mov eax, dword [ebx + 0x80]
movzx eax, word [esi + eax + 2]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
push ecx
push 0
call edi
mov edx, dword [ebx + 0x80]
mov dword [esi + edx + 0x40], eax
test eax, eax
je 0x49a5d5
mov eax, dword [ebx + 0x80]
movzx ecx, word [esi + eax + 2]
lea eax, [esi + eax + 2]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add ecx, ecx
add dword [ebx + 0x54], ecx
movzx edx, word [eax]
add edx, edx
add edx, edx
push edx
push 0
call edi
mov ecx, dword [ebx + 0x80]
mov dword [esi + ecx + 0x44], eax
test eax, eax
je 0x49a5d5
mov edx, dword [ebx + 0x80]
movzx ecx, word [esi + edx + 2]
lea eax, [esi + edx + 2]
add ecx, ecx
add ecx, ecx
add dword [ebx + 0x54], ecx
movzx edx, word [eax]
add edx, edx
add edx, edx
push edx
push 0
call edi
mov ecx, dword [ebx + 0x80]
xor edx, edx
mov dword [esi + ecx + 0x48], eax
cmp eax, edx
je 0x49a5d5
mov eax, dword [ebx + 0x80]
movzx ecx, word [eax + esi + 2]
add ecx, ecx
add ecx, ecx
add dword [ebx + 0x54], ecx
mov ecx, dword [eax + esi + 0x3c]
xor edi, edi
mov dword [ebp - 0x2a14], edx
cmp di, word [eax + esi + 2]
jae 0x49a0d8
mov eax, dword [ebp - 0x2a10]
mov dword [ebp - 0x2a30], edx
lea ebx, [ebx]
mov edx, dword [eax]
mov dword [ebp - 0x2a44], edx
mov edx, dword [eax + 4]
mov edi, dword [ebp - 0x2a44]
mov dword [ebp - 0x2a40], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x2a3c], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x2a38], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x2a34], edx
fld dword [ebp - 0x2a34]
mov edx, dword [ebx + 0x80]
mov edx, dword [esi + edx + 0x40]
add edx, dword [ebp - 0x2a30]
add dword [ebp - 0x2a30], 0xc
mov dword [edx], edi
mov edi, dword [ebp - 0x2a40]
mov dword [edx + 4], edi
mov edi, dword [ebp - 0x2a3c]
mov dword [edx + 8], edi
mov edx, dword [ebx + 0x80]
mov edi, dword [esi + edx + 0x48]
mov edx, dword [ebp - 0x2a14]
fstp dword [edi + edx*4]
mov edi, dword [ebx + 0x80]
mov edi, dword [esi + edi + 0x44]
fld dword [ebp - 0x2a38]
fstp dword [edi + edx*4]
movzx edi, word [eax + 0x14]
mov dword [ebp - 0x2a14], edi
movzx edi, word [eax + 0x18]
mov dword [ebp - 0x2a10], edi
movzx edi, word [eax + 0x1c]
mov dword [ebp - 0x2a2c], edi
movzx edi, word [ebp - 0x2a14]
mov word [ecx], di
movzx edi, word [ebp - 0x2a10]
mov word [ecx + 2], di
movzx edi, word [ebp - 0x2a2c]
mov word [ecx + 4], di
mov edi, dword [ebx + 0x80]
movzx edi, word [esi + edi + 2]
inc edx
add eax, 0x20
add ecx, 6
mov dword [ebp - 0x2a14], edx
cmp edx, edi
jb 0x499fc0
mov dword [ebp - 0x2a10], eax
jmp 0x49a0d8
mov edx, dword [ebp - 0x2a24]
mov dword [ecx + 8], 0
mov eax, dword [ebx + 0x7c]
xor ecx, ecx
push str.m_pVertexFloor__i__.m_iVertexNum_Amount_Error__
mov word [edx + eax], cx
call fcn.0040b000
mov esi, dword [ebp - 0x2a14]
add esp, 4
mov eax, dword [ebp - 0x2a28]
add dword [ebp - 0x2a24], 0xc
inc eax
add esi, 0x50
mov dword [ebp - 0x2a28], eax
mov dword [ebp - 0x2a14], esi
cmp eax, dword [ebx + 0x34]
jb 0x499cf0
xor edi, edi
mov dword [ebp - 0x2a28], edi
cmp dword [ebx + 0x3c], edi
jbe 0x49a541
xor eax, eax
mov dword [ebp - 0x2a24], eax
mov dword [ebp - 0x2a14], eax
lea ecx, [ecx]
mov eax, dword [ebp - 0x2a10]
mov edx, dword [ebp - 0x2a24]
mov esi, eax
mov ecx, 0xa
lea edi, [ebp - 0x2aa0]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x28]
add eax, 0x44
mov ecx, 7
lea edi, [ebp - 0x2a6c]
rep movsd dword es:[edi], dword [esi]
fld dword [ebp - 0x2a58]
mov cx, word [ebp - 0x2a80]
movzx esi, word [ebp - 0x2a7c]
mov dword [ebp - 0x2a10], eax
mov eax, dword [ebx + 0x84]
mov word [edx + eax], cx
mov ecx, dword [ebx + 0x88]
mov eax, dword [ebp - 0x2a14]
mov word [ecx + eax + 2], si
mov ecx, dword [ebx + 0x88]
movzx esi, word [ebp - 0x2a6c]
mov word [ecx + eax + 4], si
mov ecx, dword [ebx + 0x88]
movzx esi, word [ebp - 0x2a68]
mov word [eax + ecx], si
mov ecx, dword [ebx + 0x88]
mov esi, dword [ebp - 0x2a64]
mov dword [ecx + eax + 8], esi
mov esi, dword [ebp - 0x2a60]
lea ecx, [ecx + eax + 8]
mov dword [ecx + 4], esi
mov esi, dword [ebp - 0x2a5c]
mov dword [ecx + 8], esi
mov ecx, dword [ebx + 0x88]
fstp dword [ecx + eax + 0x14]
mov ecx, dword [ebx + 0x88]
fld dword [ebp - 0x2a54]
fstp dword [ecx + eax + 0x18]
mov ecx, dword [ebx + 0x84]
add ecx, edx
movzx edx, word [ecx]
test dx, dx
je 0x49a4ef
mov esi, 0xc350
cmp dx, si
ja 0x49a4ef
mov edx, dword [ebx + 0x88]
movzx esi, word [edx + eax + 4]
add edx, eax
cmp dword [ebp + esi*4 - 0x1904], 2
lea eax, [ebp + esi*4 - 0x1904]
jge 0x49a22c
mov dword [eax], 2
test byte [edx], 2
je 0x49a246
cmp dword [ebx + esi*4 + 0xe894], 0
jne 0x49a246
cmp dword [eax], 3
jge 0x49a246
mov dword [eax], 3
mov edi, dword [ebp - 0x2a24]
mov dword [ecx + 8], 0
mov eax, dword [ebx + 0x84]
movzx eax, word [edi + eax]
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
add esi, esi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebx + 0x84]
mov dword [edi + ecx + 8], eax
mov edx, dword [ebx + 0x84]
mov eax, dword [edi + edx + 8]
lea ecx, [edi + edx]
test eax, eax
je 0x49a2d1
add dword [ebx + 0x50], esi
xor esi, esi
xor edx, edx
cmp si, word [ecx]
jae 0x49a2d1
jmp 0x49a2a0
mov esi, dword [ebp - 0x2a10]
add dword [ebp - 0x2a10], 0x28
mov edi, eax
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x48]
mov ecx, dword [ebx + 0x84]
mov esi, dword [ebp - 0x2a24]
movzx ecx, word [esi + ecx]
inc edx
add eax, 0x28
cmp edx, ecx
jb 0x49a2a0
mov eax, dword [ebp - 0x2a14]
mov edx, dword [ebx + 0x88]
lea ecx, [edx + eax + 2]
movzx eax, word [ecx]
test ax, ax
je 0x49a2f3
mov edx, 0xc350
cmp ax, dx
jbe 0x49a2f8
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebx + 0x88]
mov esi, dword [ebp - 0x2a14]
movzx edi, word [ecx + esi + 2]
lea edi, [edi + edi*2]
add edi, edi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebx + 0x88]
mov dword [edx + esi + 0x3c], eax
test eax, eax
je 0x49a5d5
add dword [ebx + 0x54], edi
mov eax, dword [ebx + 0x88]
movzx eax, word [eax + esi + 2]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
push ecx
push 0
call edi
mov edx, dword [ebx + 0x88]
mov dword [edx + esi + 0x40], eax
test eax, eax
je 0x49a5d5
mov eax, dword [ebx + 0x88]
movzx ecx, word [eax + esi + 2]
lea eax, [eax + esi + 2]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add ecx, ecx
add dword [ebx + 0x54], ecx
movzx edx, word [eax]
add edx, edx
add edx, edx
push edx
push 0
call edi
mov ecx, dword [ebx + 0x88]
mov dword [ecx + esi + 0x44], eax
test eax, eax
je 0x49a5d5
mov edx, dword [ebx + 0x88]
movzx ecx, word [edx + esi + 2]
lea eax, [edx + esi + 2]
add ecx, ecx
add ecx, ecx
add dword [ebx + 0x54], ecx
movzx edx, word [eax]
add edx, edx
add edx, edx
push edx
push 0
call edi
mov ecx, dword [ebx + 0x88]
xor edx, edx
mov dword [ecx + esi + 0x48], eax
cmp eax, edx
je 0x49a5d5
mov eax, dword [ebx + 0x88]
movzx ecx, word [eax + esi + 2]
add ecx, ecx
add ecx, ecx
add dword [ebx + 0x54], ecx
mov ecx, dword [eax + esi + 0x3c]
xor edi, edi
mov dword [ebp - 0x2a14], edx
cmp di, word [eax + esi + 2]
jae 0x49a51b
mov eax, dword [ebp - 0x2a10]
mov dword [ebp - 0x2a30], edx
lea ecx, [ecx]
mov edx, dword [eax]
mov dword [ebp - 0x2a44], edx
mov edx, dword [eax + 4]
mov edi, dword [ebp - 0x2a44]
mov dword [ebp - 0x2a40], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x2a3c], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x2a38], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x2a34], edx
fld dword [ebp - 0x2a34]
mov edx, dword [ebx + 0x88]
mov edx, dword [edx + esi + 0x40]
add edx, dword [ebp - 0x2a30]
add dword [ebp - 0x2a30], 0xc
mov dword [edx], edi
mov edi, dword [ebp - 0x2a40]
mov dword [edx + 4], edi
mov edi, dword [ebp - 0x2a3c]
mov dword [edx + 8], edi
mov edx, dword [ebx + 0x88]
mov edi, dword [edx + esi + 0x48]
mov edx, dword [ebp - 0x2a14]
fstp dword [edi + edx*4]
mov edi, dword [ebx + 0x88]
mov edi, dword [edi + esi + 0x44]
fld dword [ebp - 0x2a38]
fstp dword [edi + edx*4]
movzx edi, word [eax + 0x14]
mov dword [ebp - 0x2a14], edi
movzx edi, word [eax + 0x18]
mov dword [ebp - 0x2a10], edi
movzx edi, word [eax + 0x1c]
mov dword [ebp - 0x2a2c], edi
movzx edi, word [ebp - 0x2a14]
mov word [ecx], di
movzx edi, word [ebp - 0x2a10]
mov word [ecx + 2], di
movzx edi, word [ebp - 0x2a2c]
mov word [ecx + 4], di
mov edi, dword [ebx + 0x88]
movzx edi, word [edi + esi + 2]
inc edx
add eax, 0x20
add ecx, 6
mov dword [ebp - 0x2a14], edx
cmp edx, edi
jb 0x49a400
mov dword [ebp - 0x2a10], eax
jmp 0x49a51b
mov edx, dword [ebp - 0x2a24]
mov dword [ecx + 8], 0
mov eax, dword [ebx + 0x84]
xor ecx, ecx
push str.m_pVertexFloor__i__.m_iVertexNum_Amount_Error__
mov word [edx + eax], cx
call fcn.0040b000
mov esi, dword [ebp - 0x2a14]
add esp, 4
mov eax, dword [ebp - 0x2a28]
add dword [ebp - 0x2a24], 0xc
inc eax
add esi, 0x50
mov dword [ebp - 0x2a28], eax
mov dword [ebp - 0x2a14], esi
cmp eax, dword [ebx + 0x3c]
jb 0x49a120
lea eax, [ebx + 0x94]
xor esi, esi
lea edi, [ebx + 0xe894]
mov dword [ebp - 0x2a14], eax
jmp 0x49a560
mov eax, dword [ebp + esi*4 - 0x1904]
cmp eax, 1
jne 0x49a61f
mov ecx, dword [ebp - 0x2a14]
push ecx
push esi
lea edx, [ebp - 0x204]
push 0x4e7ab8
push edx
call fcn.004cce8a
lea eax, [ebp - 0x204]
push eax
call fcn.0040b000
mov eax, dword [edi - 0x1000]
add esp, 0x14
test eax, eax
je 0x49a5b4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi - 0x1000], 0
mov eax, dword [ebp - 0x2a14]
xor ecx, ecx
mov dword [edi - 0x7000], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], cl
jmp 0x49a6a4
mov ecx, ebx
call fcn.0048b130
push str.Terrain_Run_Out_Memory__
call fcn.0040b000
add esp, 4
mov eax, dword [ebp - 0x2a18]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call esi
mov ecx, dword [ebp - 0x2a1c]
push ecx
call esi
mov edx, dword [ebp - 0x2a20]
push edx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret 0x20
cmp eax, 2
jne 0x49a647
cmp dword [ebp + esi*4 - 0x2904], 0x18
mov eax, dword [edi - 0x4000]
mov ecx, dword [edi - 0x2000]
mov edx, dword [edi - 0x3000]
jne 0x49a694
push 0x31545844
jmp 0x49a699
cmp eax, 3
jne 0x49a6a4
mov eax, dword [edi - 0x2000]
mov ecx, dword [edi - 0x3000]
mov edx, dword [ebx]
push edi
push 1
push 0x15
push 0
push 0
push eax
push ecx
push edx
call fcn.004a6a43
test eax, eax
jne 0x49a67e
push 1
push esi
mov ecx, ebx
call fcn.004987a0
cmp eax, 1
je 0x49a624
mov eax, dword [edi]
test eax, eax
je 0x49a624
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], 0
jmp 0x49a624
push 0x34545844
push eax
push ecx
push edx
push esi
mov ecx, ebx
call fcn.00498540
add dword [ebp - 0x2a14], 0x11
inc esi
add edi, 4
cmp esi, 0x400
jb 0x49a560
mov eax, dword [ebp - 0x2a18]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call esi
mov ecx, dword [ebp - 0x2a1c]
push ecx
call esi
mov edx, dword [ebp - 0x2a20]
push edx
call esi
cmp dword [ebx + 4], 0
je 0x49ac98
mov eax, dword [ebx + 0x34]
add eax, eax
add eax, eax
xor esi, esi
push eax
push esi
mov dword [ebp - 0x2a10], esi
mov dword [ebp - 0x2a18], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 0x8c], eax
cmp eax, esi
je 0x49a9ba
mov dword [ebp - 0x2a28], esi
cmp dword [ebx + 0x34], esi
jbe 0x49a9ba
mov dword [ebp - 0x2a2c], esi
xor edi, edi
jmp 0x49a730
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x7c]
lea eax, [ebp - 0x2a10]
push eax
movzx eax, word [edi + edx]
push ecx
mov ecx, dword [ebx + 0x80]
movzx edx, word [esi + ecx + 2]
push 0x212
push 0x110
push eax
push edx
call fcn.004adf05
test eax, eax
js 0x49a996
mov eax, dword [ebp - 0x2a10]
mov ecx, dword [eax]
lea edx, [ebp - 0x2a18]
push edx
push 0
push eax
mov eax, dword [ecx + 0x38]
call eax
test eax, eax
js 0x49a868
mov ecx, dword [ebx + 0x7c]
xor edx, edx
mov dword [ebp - 0x2a14], 0
cmp dx, word [edi + ecx]
jae 0x49a85a
xor eax, eax
nop
mov ecx, dword [ebx + 0x7c]
mov ecx, dword [edi + ecx + 8]
mov esi, dword [ecx + eax]
mov edx, dword [ebp - 0x2a18]
mov dword [edx + eax], esi
mov esi, dword [ecx + eax + 4]
mov dword [edx + eax + 4], esi
mov ecx, dword [ecx + eax + 8]
mov dword [edx + eax + 8], ecx
mov edx, dword [ebx + 0x7c]
mov ecx, dword [edi + edx + 8]
mov esi, dword [ecx + eax + 0xc]
mov edx, dword [ebp - 0x2a18]
mov dword [eax + edx + 0xc], esi
mov esi, dword [ecx + eax + 0x10]
mov dword [eax + edx + 0x10], esi
lea ecx, [ecx + eax + 0xc]
mov ecx, dword [ecx + 8]
mov dword [eax + edx + 0x14], ecx
mov esi, dword [ebp - 0x2a18]
lea edx, [eax + edx + 0xc]
mov edx, dword [ebx + 0x7c]
mov ecx, dword [edi + edx + 8]
mov edx, dword [ecx + eax + 0x18]
mov dword [eax + esi + 0x18], edx
mov ecx, dword [ecx + eax + 0x1c]
mov edx, dword [ebp - 0x2a18]
mov dword [eax + edx + 0x1c], ecx
mov ecx, dword [ebx + 0x7c]
mov ecx, dword [edi + ecx + 8]
mov edx, dword [ecx + eax + 0x20]
mov esi, dword [ebp - 0x2a18]
mov dword [eax + esi + 0x20], edx
mov ecx, dword [ecx + eax + 0x24]
mov edx, dword [ebp - 0x2a18]
mov dword [eax + edx + 0x24], ecx
mov edx, dword [ebx + 0x7c]
mov ecx, dword [ebp - 0x2a14]
movzx edx, word [edi + edx]
inc ecx
add eax, 0x28
mov dword [ebp - 0x2a14], ecx
cmp ecx, edx
jb 0x49a7a0
mov esi, dword [ebp - 0x2a2c]
mov eax, dword [ebp - 0x2a10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push eax
call edx
mov eax, dword [ebp - 0x2a10]
mov ecx, dword [eax]
lea edx, [ebp - 0x2a20]
push edx
push 0
push eax
mov eax, dword [ecx + 0x40]
call eax
test eax, eax
js 0x49a8df
mov ecx, dword [ebx + 0x80]
movzx ecx, word [esi + ecx + 2]
lea edx, [ecx + ecx*2]
xor eax, eax
test edx, edx
je 0x49a8d1
jmp 0x49a8a0
mov ecx, dword [ebx + 0x80]
mov edx, dword [esi + ecx + 0x3c]
mov cx, word [edx + eax*2]
mov edx, dword [ebp - 0x2a20]
mov word [edx], cx
add dword [ebp - 0x2a20], 2
mov ecx, dword [ebx + 0x80]
movzx ecx, word [esi + ecx + 2]
inc eax
lea edx, [ecx + ecx*2]
cmp eax, edx
jb 0x49a8a0
mov eax, dword [ebp - 0x2a10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push eax
call edx
mov eax, dword [ebx + 0x80]
movzx eax, word [esi + eax + 2]
xor ecx, ecx
lea eax, [eax + eax*2]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ce6b2
add esp, 4
mov dword [ebp - 0x2a1c], eax
test eax, eax
je 0x49a962
mov edx, dword [ebp - 0x2a1c]
mov eax, dword [ebp - 0x2a10]
mov ecx, dword [eax]
push 0
push 0
push 0
push edx
push 5
push eax
mov eax, dword [ecx + 0x64]
call eax
test eax, eax
js 0x49a962
mov ecx, dword [ebp - 0x2a10]
mov edx, dword [ecx]
mov eax, dword [ebx + 0x8c]
mov ecx, dword [ebp - 0x2a28]
lea eax, [eax + ecx*4]
mov ecx, dword [ebx]
push eax
mov eax, dword [ebp - 0x2a10]
push ecx
mov ecx, dword [edx + 0x28]
push 0x212
push 0x440
push eax
call ecx
mov eax, dword [ebp - 0x2a10]
test eax, eax
je 0x49a97e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x2a10], 0
cmp dword [ebp - 0x2a1c], 0
je 0x49a996
mov ecx, dword [ebp - 0x2a1c]
push ecx
call fcn.004ce59b
add esp, 4
mov eax, dword [ebp - 0x2a28]
inc eax
add esi, 0x50
add edi, 0xc
mov dword [ebp - 0x2a28], eax
mov dword [ebp - 0x2a2c], esi
cmp eax, dword [ebx + 0x34]
jb 0x49a730
xor esi, esi
mov eax, dword [ebx + 0x3c]
add eax, eax
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 0x90], eax
cmp eax, esi
je 0x49ac98
cmp dword [ebx + 0x3c], 0
mov dword [ebp - 0x2a28], 0
jbe 0x49ac98
xor esi, esi
mov dword [ebp - 0x2a2c], esi
xor edi, edi
jmp 0x49aa00
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x84]
lea edx, [ebp - 0x2a10]
push edx
movzx edx, word [edi + ecx]
push eax
mov eax, dword [ebx + 0x88]
movzx ecx, word [eax + esi + 2]
push 0x212
push 0x110
push edx
push ecx
call fcn.004adf05
test eax, eax
js 0x49ac76
mov eax, dword [ebp - 0x2a10]
mov edx, dword [eax]
mov edx, dword [edx + 0x38]
lea ecx, [ebp - 0x2a18]
push ecx
push 0
push eax
call edx
test eax, eax
js 0x49ab48
mov ecx, dword [ebx + 0x84]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x2a14], eax
cmp dx, word [edi + ecx]
jae 0x49ab3a
mov ecx, dword [ebx + 0x84]
mov ecx, dword [edi + ecx + 8]
mov esi, dword [ecx + eax]
mov edx, dword [ebp - 0x2a18]
mov dword [edx + eax], esi
mov esi, dword [ecx + eax + 4]
mov dword [edx + eax + 4], esi
mov ecx, dword [ecx + eax + 8]
mov dword [edx + eax + 8], ecx
mov edx, dword [ebx + 0x84]
mov ecx, dword [edi + edx + 8]
mov esi, dword [ecx + eax + 0xc]
mov edx, dword [ebp - 0x2a18]
mov dword [eax + edx + 0xc], esi
mov esi, dword [ecx + eax + 0x10]
mov dword [eax + edx + 0x10], esi
lea ecx, [ecx + eax + 0xc]
mov ecx, dword [ecx + 8]
mov dword [eax + edx + 0x14], ecx
mov esi, dword [ebp - 0x2a18]
lea edx, [eax + edx + 0xc]
mov edx, dword [ebx + 0x84]
mov ecx, dword [edi + edx + 8]
mov edx, dword [ecx + eax + 0x18]
mov dword [eax + esi + 0x18], edx
mov ecx, dword [ecx + eax + 0x1c]
mov edx, dword [ebp - 0x2a18]
mov dword [eax + edx + 0x1c], ecx
mov ecx, dword [ebx + 0x84]
mov ecx, dword [edi + ecx + 8]
mov edx, dword [ecx + eax + 0x20]
mov esi, dword [ebp - 0x2a18]
mov dword [eax + esi + 0x20], edx
mov ecx, dword [ecx + eax + 0x24]
mov edx, dword [ebp - 0x2a18]
mov dword [eax + edx + 0x24], ecx
mov edx, dword [ebx + 0x84]
mov ecx, dword [ebp - 0x2a14]
movzx edx, word [edi + edx]
inc ecx
add eax, 0x28
mov dword [ebp - 0x2a14], ecx
cmp ecx, edx
jb 0x49aa71
mov esi, dword [ebp - 0x2a2c]
mov eax, dword [ebp - 0x2a10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push eax
call edx
mov eax, dword [ebp - 0x2a10]
mov ecx, dword [eax]
lea edx, [ebp - 0x2a20]
push edx
push 0
push eax
mov eax, dword [ecx + 0x40]
call eax
test eax, eax
js 0x49abbf
mov ecx, dword [ebx + 0x88]
movzx ecx, word [ecx + esi + 2]
lea edx, [ecx + ecx*2]
xor eax, eax
test edx, edx
je 0x49abb1
jmp 0x49ab80
mov ecx, dword [ebx + 0x88]
mov edx, dword [ecx + esi + 0x3c]
mov cx, word [edx + eax*2]
mov edx, dword [ebp - 0x2a20]
mov word [edx], cx
add dword [ebp - 0x2a20], 2
mov ecx, dword [ebx + 0x88]
movzx ecx, word [ecx + esi + 2]
inc eax
lea edx, [ecx + ecx*2]
cmp eax, edx
jb 0x49ab80
mov eax, dword [ebp - 0x2a10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push eax
call edx
mov eax, dword [ebx + 0x88]
movzx eax, word [eax + esi + 2]
xor ecx, ecx
lea eax, [eax + eax*2]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ce6b2
add esp, 4
mov dword [ebp - 0x2a1c], eax
test eax, eax
je 0x49ac42
mov edx, dword [ebp - 0x2a1c]
mov eax, dword [ebp - 0x2a10]
mov ecx, dword [eax]
push 0
push 0
push 0
push edx
push 5
push eax
mov eax, dword [ecx + 0x64]
call eax
test eax, eax
js 0x49ac42
mov ecx, dword [ebp - 0x2a10]
mov edx, dword [ecx]
mov eax, dword [ebx + 0x90]
mov ecx, dword [ebp - 0x2a28]
lea eax, [eax + ecx*4]
mov ecx, dword [ebx]
push eax
mov eax, dword [ebp - 0x2a10]
push ecx
mov ecx, dword [edx + 0x28]
push 0x212
push 0x440
push eax
call ecx
mov eax, dword [ebp - 0x2a10]
test eax, eax
je 0x49ac5e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x2a10], 0
cmp dword [ebp - 0x2a1c], 0
je 0x49ac76
mov ecx, dword [ebp - 0x2a1c]
push ecx
call fcn.004ce59b
add esp, 4
mov eax, dword [ebp - 0x2a28]
inc eax
add esi, 0x50
add edi, 0xc
mov dword [ebp - 0x2a28], eax
mov dword [ebp - 0x2a2c], esi
cmp eax, dword [ebx + 0x3c]
jb 0x49aa00
cmp dword [ebx + 0x20], 2
mov dword [ebx + 0x14], 0
jb 0x49acdd
mov edi, dword [ebp - 0x2a4c]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49acb0
sub eax, edx
je 0x49acdd
mov edx, dword [ebp - 0x2a50]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49acc6
sub eax, esi
je 0x49acdd
push edi
push edx
mov ecx, ebx
call fcn.00497b60
mov dword [ebx + 0x14], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004ccd49
mov esp, ebp
pop ebp
ret 0x20