Function at 0x4e8360
Capabilities:
Resume thread

Disassembly:
sub esp, 0x38
push ebx
push ebp
mov ebp, dword [esp + 0x44]
call fcn.00517460
mov dword [ebp + 0x88], eax
mov al, byte [ebp + 0x54]
test al, al
jne 0x4e8851
push esi
push edi
push 0xec
call fcn.005354b8
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4e83a0
push ebx
mov ecx, eax
call fcn.0053d300
mov esi, eax
jmp 0x4e83a2
xor esi, esi
mov ecx, dword [ebp]
cmp ecx, esi
je 0x4e83c2
cmp ecx, ebx
je 0x4e83b8
dec dword [ecx + 4]
jne 0x4e83b8
mov eax, dword [ecx]
push 1
call dword [eax]
cmp esi, ebx
mov dword [ebp], esi
je 0x4e83c2
inc dword [esi + 4]
push str.assetsdataLandscape.ini
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], 1
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 0x71298c
call fcn.004fa530
test al, al
je 0x4e8835
lea edx, [esp + 0x2c]
push edx
push ebp
call fcn.004e9960
lea eax, [esp + 0x2c]
call fcn.004e92f0
mov esi, eax
imul eax, eax, 0x124
add eax, 4
push eax
mov dword [ebp + 0x58], esi
call fcn.005354dd
add esp, 4
cmp eax, ebx
je 0x4e8440
push 0x4ea890
push esi
lea edi, [eax + 4]
push 0x124
push edi
mov dword [eax], esi
call fcn.004127b0
jmp 0x4e8442
xor edi, edi
mov ecx, dword [ebp + 0x58]
imul ecx, ecx, 0x2cc
push ecx
mov dword [ebp + 4], edi
call fcn.005354dd
add esp, 4
lea esi, [esp + 0x4c]
lea edi, [esp + 0x18]
mov dword [ebp + 8], eax
call fcn.00501ac0
cmp dword [esp + 0x4c], ebx
jbe 0x4e8491
cmp dword [esp + 0x18], ebx
jbe 0x4e8491
mov al, byte [0x7283b8]
test al, al
je 0x4e8491
mov eax, dword [ebp]
mov byte [ebp + 0x7e], 1
or byte [eax + 0x20], 1
mov dword [esp + 0x18], 2
jmp 0x4e8499
mov dword [esp + 0x18], ebx
mov byte [ebp + 0x7e], 0
mov eax, dword [esp + 0x18]
sub eax, ebx
je 0x4e84e6
sub eax, 2
jne 0x4e851e
mov al, byte [ebp + 0x7a]
test al, al
je 0x4e84df
push 4
call fcn.005354b8
add esp, 4
cmp eax, ebx
je 0x4e84d0
mov dword [eax], 0x711f68
mov dword [esp + 0x4c], eax
call fcn.004f0560
mov byte [ebp + 0x7d], 1
jmp 0x4e851e
mov dword [esp + 0x4c], ebx
call fcn.004f0560
mov byte [ebp + 0x7d], 1
jmp 0x4e851e
call fcn.004efb20
jmp 0x4e851a
mov al, byte [ebp + 0x7a]
test al, al
je 0x4e8515
push 4
call fcn.005354b8
add esp, 4
cmp eax, ebx
je 0x4e850b
mov dword [eax], 0x711f04
mov dword [esp + 0x4c], eax
mov byte [ebp + 0x7d], 1
jmp 0x4e851e
mov dword [esp + 0x4c], ebx
mov byte [ebp + 0x7d], 1
jmp 0x4e851e
call fcn.004efb90
mov dword [esp + 0x4c], eax
push ebx
push ebp
lea eax, [esp + 0x34]
call fcn.004e9650
lea edx, [esp + 0x2c]
push edx
push ebp
call fcn.004e97a0
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.004e9880
cmp dword [ebp + 0x58], ebx
mov dword [esp + 0x14], ebx
jle 0x4e87d3
xor edi, edi
mov edi, edi
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x30]
call fcn.004e9330
mov ecx, dword [ebp + 8]
fld dword [ecx + edi + 0x288]
lea eax, [ecx + edi + 0x288]
fmul dword [ebp + 0x20]
push 0
push 0
push 1
fstp dword [eax]
mov edx, dword [ebp + 8]
fld dword [edx + edi + 0x28c]
lea eax, [edx + edi + 0x28c]
fmul dword [ebp + 0x24]
fstp dword [eax]
mov eax, dword [ebp + 8]
fld dword [ebp + 0x28]
lea eax, [eax + edi + 0x290]
fmul dword [eax]
fstp dword [eax]
mov ecx, dword [ebp + 8]
fld dword [ecx + edi + 0x2a4]
lea eax, [ecx + edi + 0x2a4]
fmul dword [ebp + 0x20]
fstp dword [eax]
mov edx, dword [ebp + 8]
fld dword [edx + edi + 0x2a8]
lea eax, [edx + edi + 0x2a8]
fmul dword [ebp + 0x24]
fstp dword [eax]
mov eax, dword [ebp + 8]
fld dword [ebp + 0x28]
lea eax, [eax + edi + 0x2ac]
fmul dword [eax]
fstp dword [eax]
mov ecx, dword [ebp + 8]
fld dword [0x7157d8]
lea eax, [ecx + edi]
fsub dword [ebp + 0x44]
fmul dword [ebp + 0x28]
fld dword [eax + 0x290]
fmul dword [0x7157d8]
fsubp st(1)
fstp dword [eax + 0x2ac]
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x58]
mov dword [ebx + edx + 0xa8], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov dl, byte [ecx + edi + 0x2b0]
lea esi, [ecx + edi]
mov cl, byte [esi + 0x2b4]
mov byte [eax + ebx + 0xd5], cl
mov ecx, dword [esp + 0x24]
push ecx
mov byte [eax + ebx + 0xd4], dl
add eax, ebx
mov eax, dword [ebp + 8]
add eax, edi
lea edx, [esp + 0x20]
push edx
mov edx, dword [eax + 0x280]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [eax + 0x284]
push edx
mov edx, dword [eax + 0x290]
push ecx
mov ecx, dword [eax + 0x28c]
push edx
mov edx, dword [eax + 0x288]
push ecx
push edx
lea ecx, [eax + 0x180]
push ecx
lea edx, [eax + 0x100]
lea ecx, [eax + 0x80]
push edx
push ecx
push eax
mov eax, dword [ebp + 4]
add eax, ebx
call fcn.005131e0
mov edx, dword [esp + 0x14]
push edx
push ebp
lea eax, [esp + 0x34]
call fcn.004e9530
mov eax, dword [ebp + 4]
mov edx, dword [ebx + eax]
lea ecx, [ebx + eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + edi + 0x2b8]
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + edi + 0x2bc]
mov edx, dword [ecx + ebx]
add ecx, ebx
push eax
call dword [edx + 0x14]
mov ecx, dword [ebp + 8]
fld dword [ecx + edi + 0x2c0]
mov esi, dword [ebp + 4]
fstp dword [esp + 0x10]
add esi, ebx
fld dword [esi + 0x98]
fdiv dword [esi + 0x90]
fmul dword [esp + 0x10]
fld qword [0x7155b8]
call sub.MSVCR71.dll__CIfmod
fstp dword [esi + 0x98]
fld dword [esi + 0x9c]
mov edx, dword [esp + 0x10]
fdiv dword [esi + 0x94]
mov dword [esi + 0x90], edx
fmul dword [esp + 0x10]
fld qword [0x7155b8]
call sub.MSVCR71.dll__CIfmod
mov eax, dword [esp + 0x10]
fstp dword [esi + 0x9c]
mov dword [esi + 0x94], eax
mov byte [esi + 0xa4], 0
call fcn.004ec240
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + edi + 0x2a4]
lea eax, [ecx + edi]
mov ecx, dword [eax + 0x2a8]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x2ac]
mov eax, dword [ebp + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx + eax + 4]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
add ecx, 0x5c
mov dword [ecx], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov edx, dword [ebp + 4]
mov ecx, dword [ebp]
mov edx, dword [ebx + edx + 4]
mov eax, dword [ecx]
push 1
push edx
call dword [eax + 0x70]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 0x88]
add eax, ebx
push eax
push ecx
call fcn.004efac0
mov eax, dword [ebp + 4]
add eax, ebx
call fcn.004ed8a0
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x58]
inc eax
add edi, 0x2cc
add ebx, 0x124
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4e8550
xor ebx, ebx
mov eax, dword [ebp + 0x58]
test eax, eax
jle 0x4e8833
xor esi, esi
mov dword [esp + 0x4c], esi
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x4e8817
mov edx, dword [ebp + 8]
lea edx, [edx + esi + 0x200]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e87f6
sub eax, edi
mov dword [esp + 0x1c], eax
je 0x4e8817
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 4]
push eax
push edx
add ecx, dword [esp + 0x54]
push ecx
call fcn.00513960
mov ecx, dword [esp + 0x4c]
mov eax, dword [ebp + 0x58]
inc ebx
add ecx, 0x124
add esi, 0x2cc
cmp ebx, eax
mov dword [esp + 0x4c], ecx
jl 0x4e87e0
xor ebx, ebx
mov ecx, dword [ebp]
push 1
push ebx
mov byte [ebp + 0x54], 1
call fcn.00535550
lea edi, [esp + 0x2c]
call fcn.004fa4e0
pop edi
pop esi
jmp 0x4e8853
xor ebx, ebx
mov ebp, dword [ebp + 0x88]
mov al, byte [ebp + 0x24]
test al, 1
mov dword [ebp + 0x18], ebx
jne 0x4e8872
mov edx, dword [ebp + 0x2c]
or al, 1
push edx
mov byte [ebp + 0x24], al
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop ebp
pop ebx
add esp, 0x38
ret 4