Function at 0x49b4d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1a8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1b8]
push edi
push 0x4b3d20
push esi
call fcn.00452340
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x24], ebp
jne 0x49b530
push esi
lea eax, [esp + 0x13c]
push str.Cant_load_world_file:__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x144]
push ebp
push ecx
push str.ERROR
call fcn.00452f30
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
push ebp
push 1
lea edx, [esp + 0x30]
push 4
push edx
call fcn.004a4eb1
mov eax, dword [esp + 0x38]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add esp, 0x10
mov dword [0x86e290], eax
shl eax, 7
push eax
push 0
call ebx
test eax, eax
mov dword [0x86e298], eax
jne 0x49b572
push eax
push str.Cant_alloc_memory_for_world_cubes_
push str.ERROR
jmp 0x49c3f7
mov eax, dword [0x86e290]
mov dword [esp + 0x70], 0
test eax, eax
mov dword [0x7ac610], 0x7f7fffff
mov dword [0x7ac608], 0x7f7fffff
mov dword [0x7ac600], 0x7f7fffff
mov dword [0x7ac614], 0xff7fffff
mov dword [0x7ac60c], 0xff7fffff
mov dword [0x7ac604], 0xff7fffff
mov dword [esp + 0x14], 0
jle 0x49c265
xor ebp, ebp
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x98]
push eax
push 1
push 0x2c
push ecx
call fcn.004a4eb1
fld dword [esp + 0xb4]
fadd dword [0x4b0554]
add esp, 0xc
lea edx, [esp + 0x9c]
fstp dword [esp]
push edx
push 0x7ac600
call fcn.0046e3e0
fld dword [esp + 0xa8]
mov eax, dword [0x86e298]
add esp, 0xc
fstp dword [eax + ebp + 4]
fld dword [esp + 0x98]
mov ecx, dword [0x86e298]
fstp dword [ecx + ebp]
fld dword [esp + 0xa0]
mov edx, dword [0x86e298]
fstp dword [edx + ebp + 8]
fld dword [esp + 0xa4]
mov eax, dword [0x86e298]
fstp dword [eax + ebp + 0xc]
fld dword [esp + 0xa8]
mov ecx, dword [0x86e298]
fstp dword [ecx + ebp + 0x10]
fld dword [esp + 0xac]
mov edx, dword [0x86e298]
fstp dword [edx + ebp + 0x14]
fld dword [esp + 0xb0]
mov eax, dword [0x86e298]
fstp dword [eax + ebp + 0x18]
fld dword [esp + 0xb4]
mov ecx, dword [0x86e298]
fstp dword [ecx + ebp + 0x1c]
fld dword [esp + 0xb8]
mov edx, dword [0x86e298]
fstp dword [edx + ebp + 0x20]
fld dword [esp + 0xbc]
mov eax, dword [0x86e298]
fstp dword [eax + ebp + 0x24]
mov ecx, dword [0x86e298]
mov dx, word [esp + 0xc0]
mov word [ecx + ebp + 0x48], dx
mov eax, dword [0x86e298]
mov cx, word [esp + 0xc2]
mov word [eax + ebp + 0x4a], cx
mov ecx, dword [0x86e298]
movsx eax, word [ecx + ebp + 0x48]
lea edx, [eax + eax*2]
movsx eax, word [ecx + ebp + 0x4a]
shl edx, 5
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
lea eax, [edx + ecx*4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [0x86e298]
mov dword [edx + ebp + 0x44], eax
mov ecx, dword [0x86e298]
mov eax, dword [ecx + ebp + 0x44]
test eax, eax
je 0x49c28b
mov dword [ecx + ebp + 0x64], eax
mov eax, dword [0x86e298]
xor ebx, ebx
movsx ecx, word [eax + ebp + 0x48]
mov edx, dword [eax + ebp + 0x64]
lea ecx, [ecx + ecx*2]
shl ecx, 5
add ecx, edx
mov dword [eax + ebp + 0x68], ecx
mov eax, dword [0x86e298]
mov esi, dword [eax + ebp + 0x64]
mov word [eax + ebp + 0x4c], bx
mov edx, dword [0x86e298]
mov word [edx + ebp + 0x4e], bx
mov eax, dword [0x86e298]
mov word [eax + ebp + 0x50], bx
mov ecx, dword [0x86e298]
mov word [ecx + ebp + 0x52], bx
mov edi, dword [0x86e298]
cmp word [edi + ebp + 0x48], bx
jle 0x49bd94
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push 1
push 0x3c
push eax
call fcn.004a4eb1
mov cx, word [esp + 0x44]
add esp, 0x10
mov word [esi], cx
mov dx, word [esp + 0x36]
mov word [esi + 2], dx
mov eax, dword [0x784ed0]
test eax, eax
je 0x49b91d
mov al, cl
test al, 1
je 0x49b883
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x14], ecx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x40]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x68]
mov dword [esi + 0x20], ecx
mov edx, dword [esp + 0x6c]
mov dword [esi + 0x24], edx
mov eax, dword [esp + 0x60]
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x2c], ecx
mov edx, dword [esp + 0x58]
mov dword [esi + 0x30], edx
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x34], eax
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x38], ecx
mov edx, dword [esp + 0x54]
mov dword [esi + 0x3c], edx
mov edx, dword [0x86e298]
movsx eax, word [esp + 0x3e]
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
mov eax, dword [edx + ebp + 0x68]
lea ecx, [eax + ecx*4]
mov dword [esi + 0x50], ecx
movsx eax, word [esp + 0x3c]
lea edx, [eax + eax*2]
shl edx, 3
sub edx, eax
mov eax, dword [0x86e298]
mov ecx, dword [eax + ebp + 0x68]
lea edx, [ecx + edx*4]
mov dword [esi + 0x54], edx
mov edx, dword [0x86e298]
movsx eax, word [esp + 0x3a]
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
mov eax, dword [edx + ebp + 0x68]
lea ecx, [eax + ecx*4]
mov dword [esi + 0x58], ecx
movsx eax, word [esp + 0x38]
lea edx, [eax + eax*2]
shl edx, 3
sub edx, eax
mov eax, dword [0x86e298]
mov ecx, dword [eax + ebp + 0x68]
lea edx, [ecx + edx*4]
mov dword [esi + 0x5c], edx
jmp 0x49b9e3
mov eax, dword [esp + 0x48]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x14], ecx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x60]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x24], ecx
mov edx, dword [esp + 0x58]
mov dword [esi + 0x28], edx
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x30], ecx
mov edx, dword [esp + 0x54]
mov dword [esi + 0x34], edx
mov edx, dword [0x86e298]
movsx eax, word [esp + 0x3c]
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
mov eax, dword [edx + ebp + 0x68]
lea ecx, [eax + ecx*4]
mov dword [esi + 0x50], ecx
movsx eax, word [esp + 0x3a]
lea edx, [eax + eax*2]
shl edx, 3
sub edx, eax
mov eax, dword [0x86e298]
mov ecx, dword [eax + ebp + 0x68]
lea edx, [ecx + edx*4]
mov dword [esi + 0x54], edx
mov edx, dword [0x86e298]
movsx eax, word [esp + 0x38]
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
mov eax, dword [edx + ebp + 0x68]
lea ecx, [eax + ecx*4]
mov dword [esi + 0x58], ecx
jmp 0x49b9e3
mov edx, dword [esp + 0x40]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x44]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x50]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x24], ecx
mov edx, dword [esp + 0x58]
mov dword [esi + 0x28], edx
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0x60]
mov dword [esi + 0x30], ecx
mov edx, dword [esp + 0x64]
mov dword [esi + 0x34], edx
mov eax, dword [esp + 0x68]
mov dword [esi + 0x38], eax
mov ecx, dword [esp + 0x6c]
mov dword [esi + 0x3c], ecx
movsx eax, word [esp + 0x38]
lea edx, [eax + eax*2]
shl edx, 3
sub edx, eax
mov eax, dword [0x86e298]
mov ecx, dword [eax + ebp + 0x68]
lea edx, [ecx + edx*4]
mov dword [esi + 0x50], edx
mov edx, dword [0x86e298]
movsx eax, word [esp + 0x3a]
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
mov eax, dword [edx + ebp + 0x68]
lea ecx, [eax + ecx*4]
mov dword [esi + 0x54], ecx
movsx eax, word [esp + 0x3c]
lea edx, [eax + eax*2]
shl edx, 3
sub edx, eax
mov eax, dword [0x86e298]
mov ecx, dword [eax + ebp + 0x68]
lea edx, [ecx + edx*4]
mov dword [esi + 0x58], edx
mov edx, dword [0x86e298]
movsx eax, word [esp + 0x3e]
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
mov eax, dword [edx + ebp + 0x68]
lea ecx, [eax + ecx*4]
mov dword [esi + 0x5c], ecx
mov eax, dword [0x77da84]
cmp eax, 0x64
je 0x49bb93
xor ecx, ecx
mov cl, byte [esi + 0x12]
inc ecx
imul ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
xor ecx, ecx
mov cl, byte [esi + 0x11]
shr eax, 0x1f
add edx, eax
inc ecx
mov byte [esi + 0x12], dl
imul ecx, dword [0x77da84]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
mov eax, 0x51eb851f
shr ecx, 0x1f
add edx, ecx
xor ecx, ecx
mov cl, byte [esi + 0x10]
mov byte [esi + 0x11], dl
inc ecx
imul ecx, dword [0x77da84]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov byte [esi + 0x10], dl
mov eax, dword [0x77da84]
cmp eax, 0x64
je 0x49bb93
xor ecx, ecx
mov cl, byte [esi + 0x16]
inc ecx
imul ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
mov eax, 0x51eb851f
shr ecx, 0x1f
add edx, ecx
xor ecx, ecx
mov cl, byte [esi + 0x15]
mov byte [esi + 0x16], dl
inc ecx
imul ecx, dword [0x77da84]
imul ecx
sar edx, 5
mov eax, edx
xor ecx, ecx
mov cl, byte [esi + 0x14]
shr eax, 0x1f
add edx, eax
inc ecx
mov byte [esi + 0x15], dl
imul ecx, dword [0x77da84]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov byte [esi + 0x14], dl
mov eax, dword [0x77da84]
cmp eax, 0x64
je 0x49bb93
xor ecx, ecx
mov cl, byte [esi + 0x1a]
inc ecx
imul ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
xor ecx, ecx
mov cl, byte [esi + 0x19]
shr eax, 0x1f
add edx, eax
inc ecx
mov byte [esi + 0x1a], dl
imul ecx, dword [0x77da84]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
mov eax, 0x51eb851f
shr ecx, 0x1f
add edx, ecx
xor ecx, ecx
mov cl, byte [esi + 0x18]
mov byte [esi + 0x19], dl
inc ecx
imul ecx, dword [0x77da84]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov byte [esi + 0x18], dl
mov eax, dword [0x77da84]
cmp eax, 0x64
je 0x49bb93
xor ecx, ecx
mov cl, byte [esi + 0x1e]
inc ecx
imul ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
mov eax, 0x51eb851f
shr ecx, 0x1f
add edx, ecx
xor ecx, ecx
mov cl, byte [esi + 0x1d]
mov byte [esi + 0x1e], dl
inc ecx
imul ecx, dword [0x77da84]
imul ecx
sar edx, 5
mov eax, edx
xor ecx, ecx
mov cl, byte [esi + 0x1c]
shr eax, 0x1f
add edx, eax
inc ecx
mov byte [esi + 0x1d], dl
imul ecx, dword [0x77da84]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov byte [esi + 0x1c], dl
mov eax, dword [0x784eac]
test eax, eax
je 0x49bcd0
mov ecx, dword [esi + 0x10]
xor eax, eax
mov al, ch
mov dword [esp + 0x10], ecx
and ecx, 0xff
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
xor eax, eax
mov al, byte [esp + 0x12]
lea edi, [eax + eax*8]
lea edi, [eax + edi*2]
lea eax, [eax + edi*4]
lea eax, [eax + edx*2]
lea edx, [ecx*8]
sub edx, ecx
lea ecx, [ecx + edx*4]
add eax, ecx
mov ecx, dword [esi + 0x14]
sar eax, 8
mov edx, eax
mov dword [esp + 0x10], ecx
shl edx, 8
or edx, eax
shl edx, 8
or edx, eax
xor eax, eax
mov al, ch
mov dword [esi + 0x10], edx
and ecx, 0xff
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
xor eax, eax
mov al, byte [esp + 0x12]
lea edi, [eax + eax*8]
lea edi, [eax + edi*2]
lea eax, [eax + edi*4]
lea eax, [eax + edx*2]
lea edx, [ecx*8]
sub edx, ecx
lea ecx, [ecx + edx*4]
add eax, ecx
mov ecx, dword [esi + 0x18]
sar eax, 8
mov edx, eax
mov dword [esp + 0x10], ecx
shl edx, 8
or edx, eax
shl edx, 8
or edx, eax
xor eax, eax
mov al, ch
mov dword [esi + 0x14], edx
and ecx, 0xff
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
xor eax, eax
mov al, byte [esp + 0x12]
lea edi, [eax + eax*8]
lea edi, [eax + edi*2]
lea eax, [eax + edi*4]
lea eax, [eax + edx*2]
lea edx, [ecx*8]
sub edx, ecx
lea ecx, [ecx + edx*4]
add eax, ecx
mov ecx, dword [esi + 0x1c]
sar eax, 8
mov edx, eax
mov dword [esp + 0x10], ecx
shl edx, 8
or edx, eax
shl edx, 8
or edx, eax
xor eax, eax
mov al, byte [esp + 0x12]
mov dword [esi + 0x18], edx
lea edx, [eax + eax*8]
lea edx, [eax + edx*2]
lea edx, [eax + edx*4]
xor eax, eax
mov al, ch
and ecx, 0xff
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*2]
lea edx, [ecx*8]
sub edx, ecx
lea ecx, [ecx + edx*4]
add eax, ecx
sar eax, 8
mov edx, eax
shl edx, 8
or edx, eax
shl edx, 8
or edx, eax
mov dword [esi + 0x1c], edx
test byte [esi], 0x80
je 0x49bd0b
mov eax, dword [0x785ce0]
mov ecx, dword [esi + 0x10]
or ecx, eax
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
mov dword [esi + 0x10], ecx
mov ecx, dword [0x785ce0]
or eax, ecx
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
mov edx, dword [0x785ce0]
or edi, edx
mov dword [esi + 0x18], edi
mov eax, dword [0x785ce0]
or ecx, eax
mov dword [esi + 0x1c], ecx
or edx, 0xffffffff
cmp word [esi + 2], dx
jne 0x49bd4f
mov eax, 0x3f640000
mov ecx, 0x3f5c0000
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov eax, 0x3f248000
mov word [esi + 2], 0x1b
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], 0x3f1c0000
mov dword [esi + 0x2c], 0x3f1c8000
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
cmp word [esi + 2], dx
je 0x49bd67
test byte [esi], 1
mov eax, dword [0x86e298]
je 0x49bd60
inc word [eax + ebp + 0x4c]
jmp 0x49bd7d
inc word [eax + ebp + 0x4e]
jmp 0x49bd7d
test byte [esi], 1
mov eax, dword [0x86e298]
je 0x49bd78
inc word [eax + ebp + 0x50]
jmp 0x49bd7d
inc word [eax + ebp + 0x52]
mov edi, dword [0x86e298]
inc ebx
add esi, 0x60
movsx ecx, word [edi + ebp + 0x48]
cmp ebx, ecx
jl 0x49b77a
movsx eax, word [edi + ebp + 0x48]
mov edx, dword [edi + ebp + 0x64]
cmp eax, 1
mov dword [esp + 0x10], edx
jle 0x49be30
dec eax
mov dword [esp + 0x18], eax
je 0x49be30
test eax, eax
jle 0x49be29
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
add eax, 0x60
mov cl, byte [eax - 0x60]
lea edx, [eax - 0x60]
and ecx, 1
cmp word [eax - 0x5e], 0xffff
mov esi, ecx
je 0x49bdd8
add esi, 0x100
mov cl, byte [eax]
and ecx, 1
cmp word [eax + 2], 0xffff
je 0x49bdea
add ecx, 0x100
cmp ecx, esi
jle 0x49be1f
mov ecx, 0x18
mov esi, edx
lea edi, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x18
mov esi, eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x18
lea esi, [esp + 0xd8]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x86e298]
add eax, 0x60
dec ebx
jne 0x49bdc0
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x49bdb1
xor ebx, ebx
cmp word [edi + ebp + 0x4a], bx
jle 0x49bf71
xor esi, esi
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x74]
push edx
push 1
push 0x18
push eax
call fcn.004a4eb1
mov ecx, dword [0x86e298]
add esp, 0x10
fld dword [esp + 0x74]
mov edx, dword [ecx + ebp + 0x68]
fstp dword [edx + esi]
mov eax, dword [0x86e298]
fld dword [esp + 0x78]
mov ecx, dword [eax + ebp + 0x68]
fstp dword [ecx + esi + 4]
mov edx, dword [0x86e298]
fld dword [esp + 0x7c]
mov eax, dword [edx + ebp + 0x68]
fstp dword [eax + esi + 8]
mov ecx, dword [0x86e298]
fld dword [esp + 0x80]
mov edx, dword [ecx + ebp + 0x68]
fstp dword [edx + esi + 0x18]
mov eax, dword [0x86e298]
fld dword [esp + 0x84]
mov ecx, dword [eax + ebp + 0x68]
fstp dword [ecx + esi + 0x1c]
mov edx, dword [0x86e298]
fld dword [esp + 0x88]
mov eax, dword [edx + ebp + 0x68]
fstp dword [eax + esi + 0x20]
fld dword [esp + 0x78]
fsub dword [0x784e80]
fmul dword [0x784e8c]
fstp dword [esp + 0x20]
call fcn.004a4d2c
and eax, 0x1f
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fsubr dword [esp + 0x20]
fcom dword [0x4b0004]
fnstsw ax
test ah, 1
je 0x49bf06
fstp st(0)
fld dword [0x4b0004]
jmp 0x49bf1b
fcom dword [0x4b0100]
fnstsw ax
test ah, 0x41
jne 0x49bf1b
fstp st(0)
fld dword [0x4b0100]
mov ecx, dword [0x86e298]
mov edx, dword [ecx + ebp + 0x68]
fstp dword [edx + esi + 0x54]
fld dword [esp + 0x7c]
fmul dword [esp + 0x7c]
fld dword [esp + 0x78]
fmul dword [esp + 0x78]
faddp st(1)
fld dword [esp + 0x74]
fmul dword [esp + 0x74]
faddp st(1)
fsqrt
fcom dword [esp + 0x70]
fnstsw ax
test ah, 0x41
jne 0x49bf58
fstp dword [esp + 0x70]
jmp 0x49bf5a
fstp st(0)
mov edi, dword [0x86e298]
inc ebx
add esi, 0x5c
movsx eax, word [edi + ebp + 0x4a]
cmp ebx, eax
jl 0x49be3f
mov esi, dword [edi + ebp + 0x64]
xor ebx, ebx
cmp word [edi + ebp + 0x48], bx
jle 0x49bfc5
add esi, 0x58
mov eax, dword [0x784ed0]
test eax, eax
je 0x49bf9b
mov edx, dword [esi - 8]
mov eax, dword [esi - 4]
lea ecx, [esi - 0x18]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
jmp 0x49bfaa
mov eax, dword [esi]
mov ecx, dword [esi - 4]
lea edx, [esi - 0x18]
push edx
mov edx, dword [esi - 8]
push eax
push ecx
push edx
call fcn.00444890
mov edi, dword [0x86e298]
add esp, 0x10
inc ebx
add esi, 0x60
movsx eax, word [edi + ebp + 0x48]
cmp ebx, eax
jl 0x49bf81
mov word [edi + ebp + 0x60], 0
mov eax, dword [0x86e298]
movsx ecx, word [eax + ebp + 0x48]
mov edx, dword [eax + ebp + 0x64]
test ecx, ecx
je 0x49bffc
mov si, word [edx]
and esi, 0x200
test si, si
je 0x49bff6
inc word [eax + ebp + 0x60]
mov eax, dword [0x86e298]
add edx, 0x60
dec ecx
jne 0x49bfde
mov cx, word [eax + ebp + 0x60]
test cx, cx
jne 0x49c018
mov dword [eax + ebp + 0x74], 0
mov edx, dword [0x86e298]
xor edi, edi
jmp 0x49c049
movsx ecx, cx
shl ecx, 3
xor edi, edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [0x86e298]
mov dword [edx + ebp + 0x74], eax
mov edx, dword [0x86e298]
cmp dword [edx + ebp + 0x74], edi
jne 0x49c049
mov word [edx + ebp + 0x60], di
mov edx, dword [0x86e298]
mov si, word [edx + ebp + 0x60]
cmp si, di
je 0x49c0b4
mov eax, dword [edx + ebp + 0x64]
xor ecx, ecx
cmp si, di
jle 0x49c0b4
mov si, word [eax]
and esi, 0x200
test si, si
jne 0x49c07e
mov si, word [eax + 0x60]
add eax, 0x60
and esi, 0x200
test si, si
je 0x49c06c
mov edx, dword [edx + ebp + 0x74]
mov dword [edx + ecx*8], eax
mov esi, dword [0x86e298]
movsx edx, word [eax + 2]
mov esi, dword [esi + ebp + 0x74]
add eax, 0x60
lea edx, [edx + edx*4]
inc ecx
lea edx, [edx*4 + 0x86e2a8]
mov dword [esi + ecx*8 - 4], edx
mov edx, dword [0x86e298]
movsx esi, word [edx + ebp + 0x60]
cmp ecx, esi
jl 0x49c05e
mov word [edx + ebp + 0x62], di
mov eax, dword [0x86e298]
mov dword [eax + ebp + 0x78], edi
mov ecx, dword [0x86e298]
movsx edx, word [ecx + ebp + 0x4a]
shl edx, 2
push edx
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x2c], ebx
je 0x49c23e
mov edi, dword [0x86e298]
mov dword [esp + 0x18], 0
cmp word [edi + ebp + 0x48], 0
mov ecx, dword [edi + ebp + 0x64]
jle 0x49c1e8
mov esi, ebp
mov dword [esp + 0x10], ecx
mov ax, word [ecx]
mov edx, eax
and edx, 0x800
test dx, dx
je 0x49c1cb
and eax, 1
mov dword [esp + 0x30], 0
add eax, 3
test eax, eax
jle 0x49c1cb
lea edx, [ecx + 0x50]
mov esi, ebp
lea eax, [ebp + 0x62]
mov dword [esp + 0x20], edx
movsx ebx, word [eax + edi]
xor ecx, ecx
mov dword [esp + 0x94], ebx
test ebx, ebx
jle 0x49c182
mov edx, dword [edx]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x8c]
cmp dword [edx], ebx
je 0x49c177
movsx ebx, word [eax + edi]
inc ecx
add edx, 4
cmp ecx, ebx
mov esi, ebp
jl 0x49c15e
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x94]
cmp ecx, ebx
jne 0x49c1a1
mov edi, dword [esp + 0x2c]
mov esi, dword [edx]
mov dword [edi + ecx*4], esi
mov ecx, dword [0x86e298]
mov esi, ebp
inc word [eax + ecx]
mov edi, dword [0x86e298]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
inc ebx
add edx, 4
mov dword [esp + 0x30], ebx
mov bl, byte [ecx]
and ebx, 1
mov dword [esp + 0x20], edx
add ebx, 3
cmp dword [esp + 0x30], ebx
jl 0x49c140
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
add ecx, 0x60
movsx edx, word [esi + edi + 0x48]
inc eax
mov dword [esp + 0x10], ecx
cmp eax, edx
mov dword [esp + 0x18], eax
jl 0x49c10a
mov di, word [edi + ebp + 0x62]
test di, di
je 0x49c237
movsx eax, di
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [0x86e298]
mov dword [ecx + ebp + 0x78], eax
mov eax, dword [0x86e298]
mov edi, dword [eax + ebp + 0x78]
test edi, edi
jne 0x49c21f
mov word [eax + ebp + 0x62], di
jmp 0x49c237
movsx ecx, word [eax + ebp + 0x62]
shl ecx, 2
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x86e290]
inc eax
add ebp, 0x80
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x49b5cd
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebp
push 1
lea eax, [esp + 0x30]
push 4
push eax
call fcn.004a4eb1
add esp, 0x10
test eax, eax
jne 0x49c29c
push eax
push str.World_file_has_no_big_cube_info_
push str.ERROR
jmp 0x49c3f7
push 0
push str.Cant_alloc_memory_for_world_mesh_
push str.ERROR
jmp 0x49c3f7
mov eax, dword [esp + 0x28]
xor esi, esi
mov dword [0x86e294], eax
lea ecx, [eax + eax*2]
shl ecx, 3
push ecx
push esi
call ebx
cmp eax, esi
mov dword [0x86e2a0], eax
jne 0x49c2ca
push esi
push str.Cant_alloc_memory_for_world_big_cubes_
push str.ERROR
jmp 0x49c3f7
mov eax, dword [0x86e294]
mov dword [esp + 0x14], esi
cmp eax, esi
jle 0x49c3d4
push ebp
push 1
lea edx, [esp + 0xcc]
push 0x14
push edx
call fcn.004a4eb1
fld dword [esp + 0xd4]
mov eax, dword [0x86e2a0]
add esp, 0x10
fstp dword [eax + esi]
fld dword [esp + 0xc8]
mov ecx, dword [0x86e2a0]
fstp dword [ecx + esi + 4]
fld dword [esp + 0xcc]
mov edx, dword [0x86e2a0]
fstp dword [edx + esi + 8]
fld dword [esp + 0xd0]
mov eax, dword [0x86e2a0]
fstp dword [eax + esi + 0xc]
mov ecx, dword [0x86e2a0]
mov edx, dword [esp + 0xd4]
mov dword [ecx + esi + 0x10], edx
mov eax, dword [0x86e2a0]
mov ecx, dword [eax + esi + 0x10]
shl ecx, 2
push ecx
push 0
call ebx
mov edx, dword [0x86e2a0]
mov dword [edx + esi + 0x14], eax
mov eax, dword [0x86e2a0]
mov ecx, dword [eax + esi + 0x14]
test ecx, ecx
je 0x49c413
mov ecx, dword [eax + esi + 0x10]
xor edi, edi
test ecx, ecx
jle 0x49c3ba
push ebp
push 1
lea eax, [esp + 0x98]
push 4
push eax
call fcn.004a4eb1
mov ecx, dword [esp + 0xa0]
mov edx, dword [0x86e298]
shl ecx, 7
add ecx, edx
mov edx, dword [0x86e2a0]
add esp, 0x10
inc edi
mov eax, dword [edx + esi + 0x14]
mov dword [eax + edi*4 - 4], ecx
mov ecx, dword [0x86e2a0]
cmp edi, dword [ecx + esi + 0x10]
jl 0x49c378
mov eax, dword [esp + 0x14]
mov ecx, dword [0x86e294]
inc eax
add esi, 0x18
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x49c2db
mov edx, dword [0x86e290]
xor esi, esi
lea eax, [edx*4]
push eax
push esi
call ebx
cmp eax, esi
mov dword [0x86e29c], eax
jne 0x49c434
push esi
push str.Cant_alloc_memory_for_world_cube_list_
push esi
call fcn.00452f30
add esp, 0xc
mov byte [0x785074], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
push 0
push str.Cant_alloc_memory_for_a_cube_list_
push str.ERROR
call fcn.00452f30
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
push ebp
push 1
push 4
push 0x86e288
call fcn.004a4eb1
add esp, 0x10
test eax, eax
jne 0x49c450
mov dword [0x86e288], esi
mov eax, dword [0x86e288]
mov dword [esp + 0x14], esi
cmp eax, esi
jle 0x49c54f
mov esi, 0x86e2a8
push ebp
lea edi, [esi + 8]
push 1
push 4
push edi
call fcn.004a4eb1
mov eax, dword [edi]
add esp, 0x10
lea ecx, [eax + eax*4]
shl ecx, 3
push ecx
push 0
call ebx
test eax, eax
mov dword [esi], eax
je 0x49c534
mov edx, dword [edi]
push ebp
push edx
push 0x28
push eax
call fcn.004a4eb1
xor eax, eax
add esp, 0x10
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
mov ecx, dword [esi]
mov dword [esi + 4], ecx
mov ecx, dword [0x784ed0]
cmp ecx, eax
je 0x49c518
mov eax, dword [edi]
xor edx, edx
test eax, eax
jle 0x49c518
xor eax, eax
mov ecx, dword [esi]
add ecx, eax
mov ebx, dword [ecx + 0x20]
fld dword [ecx + 8]
mov dword [ecx + 8], ebx
mov ecx, dword [esi]
fstp dword [ecx + eax + 0x20]
mov ecx, dword [esi]
add ecx, eax
mov ebx, dword [ecx + 0x18]
fld dword [ecx + 0x10]
mov dword [ecx + 0x10], ebx
mov ecx, dword [esi]
fstp dword [ecx + eax + 0x18]
mov ecx, dword [esi]
add ecx, eax
mov ebx, dword [ecx + 0x24]
fld dword [ecx + 0xc]
mov dword [ecx + 0xc], ebx
mov ecx, dword [esi]
fstp dword [ecx + eax + 0x24]
mov ecx, dword [esi]
add ecx, eax
inc edx
add eax, 0x28
mov ebx, dword [ecx + 0x1c]
fld dword [ecx + 0x14]
mov dword [ecx + 0x14], ebx
mov ecx, dword [esi]
fstp dword [ecx + eax - 0xc]
cmp edx, dword [edi]
jl 0x49c4be
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x86e288]
inc eax
add esi, 0x14
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x49c466
jmp 0x49c54f
push 0
push str.Cant_alloc_memory_for_texture_animation
push 0
call fcn.00452f30
add esp, 0xc
mov dword [0x86e288], 0
mov eax, dword [0x86e290]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x49c5f5
xor ebx, ebx
mov eax, dword [0x86e298]
xor edi, edi
cmp word [ebx + eax + 0x48], di
mov esi, dword [ebx + eax + 0x64]
jle 0x49c5d8
mov dx, word [esi]
and edx, 0x800
test dx, dx
je 0x49c5c6
push ebp
push 1
lea eax, [esp + 0x24]
push 4
push eax
call fcn.004a4eb1
mov ecx, dword [esi + 0x50]
mov edx, dword [esp + 0x2c]
add esp, 0x10
mov dword [ecx + 0x50], edx
mov eax, dword [esi + 0x54]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x50], ecx
mov edx, dword [esi + 0x58]
mov eax, dword [esp + 0x1c]
mov dword [edx + 0x50], eax
mov al, byte [esi]
test al, 1
je 0x49c5c6
mov ecx, dword [esi + 0x5c]
mov edx, dword [esp + 0x1c]
mov dword [ecx + 0x50], edx
mov eax, dword [0x86e298]
inc edi
add esi, 0x60
movsx ecx, word [ebx + eax + 0x48]
cmp edi, ecx
jl 0x49c578
mov eax, dword [esp + 0x14]
mov ecx, dword [0x86e290]
inc eax
add ebx, 0x80
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x49c566
push ebp
call fcn.004a4e34
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret