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

Disassembly:
push 0xffffffffffffffff
push 0x6629d5
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x705e7c]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x705e7c]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
fld dword [0x6e3d10]
mov edi, dword [esp + 0xc8]
fld1
mov ebx, ecx
fdivrp st(1)
push edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], edi
fstp dword [esp + 0x5c]
call fcn.00566b10
mov ebp, eax
xor esi, esi
add esp, 4
cmp ebp, esi
je 0x53018c
mov ecx, ebp
call fcn.00564890
test al, al
jne 0x53018c
mov ecx, ebp
call fcn.005647b0
push 0xe
push 0x689590
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], esi
mov byte [esp + 0x24], 0
call fcn.00417c40
lea eax, [ebx + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
mov dword [esp + 0xc8], esi
call fcn.00565470
test eax, eax
sete byte [esp + 0x14]
or esi, 0xffffffff
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0xc0], esi
jb 0x5300c2
mov edx, dword [esp + 0x1c]
push edx
call fcn.00611358
add esp, 4
cmp byte [esp + 0x14], 0
jne 0x53018c
push 0x689580
lea ecx, [esp + 0x1c]
call fcn.00417d70
lea eax, [ebx + 0x4c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
mov dword [esp + 0xc8], 1
call fcn.005651b0
test eax, eax
sete byte [esp + 0x14]
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0xc0], esi
jb 0x530118
mov edx, dword [esp + 0x1c]
push edx
call fcn.00611358
add esp, 4
cmp byte [esp + 0x14], 0
jne 0x53018c
push 0x689570
lea ecx, [esp + 0x1c]
call fcn.00417d70
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
mov dword [esp + 0xc8], 2
call fcn.00564be0
lea ecx, [esp + 0x18]
mov esi, eax
mov dword [esp + 0xc0], 0xffffffff
call fcn.005d0540
test esi, esi
je 0x530223
mov esi, dword [esp + 0x3c]
mov ecx, esi
call fcn.004516a0
mov ecx, esi
cmp eax, 3
je 0x530193
call fcn.004516a0
push eax
push str.CMapManager::GetHeight__f___f___
call fcn.00584ec0
add esp, 8
xor al, al
jmp 0x5309f2
push 2
call fcn.00494750
cmp dword [eax + 0x18], 0x10
jb 0x5301a5
mov edi, dword [eax + 4]
jmp 0x5301a8
lea edi, [eax + 4]
mov ecx, dword [esp + 0x3c]
push 1
call fcn.00494750
cmp dword [eax + 0x18], 0x10
jb 0x5301be
mov esi, dword [eax + 4]
jmp 0x5301c1
lea esi, [eax + 4]
mov ecx, dword [esp + 0x3c]
push 0
call fcn.00494750
cmp dword [eax + 0x18], 0x10
jb 0x5301d7
mov eax, dword [eax + 4]
jmp 0x5301da
add eax, 4
push eax
call fcn.00614376
fstp dword [esp + 0x3c]
push esi
call fcn.00614376
fstp dword [esp + 0x3c]
push edi
call fcn.00614376
fstp dword [esp + 0x20]
fld dword [esp + 0x44]
add esp, 0xc
fstp dword [esp + 0x48]
lea edx, [esp + 0x48]
fld dword [esp + 0x34]
push edx
fstp dword [esp + 0x50]
mov ecx, ebx
fld dword [esp + 0x18]
fstp dword [esp + 0x54]
call fcn.0052e670
mov edi, dword [esp + 0x44]
xor esi, esi
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], esi
mov byte [esp + 0x80], 0
mov ecx, ebp
mov dword [esp + 0xc0], 3
mov dword [esp + 0x38], esi
call fcn.005648a0
test eax, eax
jbe 0x53088d
mov dword [esp + 0x5c], ebp
lea edi, [esi + 1]
push esi
mov ecx, ebp
call fcn.00564970
lea eax, [esp + 0x7c]
push eax
mov ecx, ebp
mov byte [esp + 0xc4], 4
call fcn.00564c70
mov ecx, dword [esp + 0x90]
push 0xe
push 0x68950c
push ecx
push 0
lea ecx, [esp + 0x8c]
call fcn.004305b0
test eax, eax
jne 0x530365
push 0x6894fc
lea ecx, [esp + 0x1c]
mov dword [ebx + 0x60], edi
call fcn.00417d70
lea edx, [ebx + 0x64]
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
mov byte [esp + 0xc8], 5
call fcn.005651b0
test eax, eax
sete byte [esp + 0x14]
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0xc0], 4
jb 0x5302f1
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00611358
add esp, 4
cmp byte [esp + 0x14], 0
jne 0x5303a1
push 0x6894ec
lea ecx, [esp + 0x1c]
call fcn.00417d70
lea edx, [ebx + 0x68]
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
mov byte [esp + 0xc8], 6
call fcn.005651b0
test eax, eax
lea ecx, [esp + 0x18]
sete byte [esp + 0x14]
mov byte [esp + 0xc0], 4
call fcn.005d0540
cmp byte [esp + 0x14], 0
jne 0x5303a1
push 0x6894dc
lea ecx, [esp + 0x1c]
call fcn.00417d70
lea ecx, [ebx + 0x6c]
push ecx
lea edx, [esp + 0x1c]
mov byte [esp + 0xc4], 7
push edx
jmp 0x5304dd
mov eax, dword [esp + 0x90]
push 0xd
push 0x6894cc
push eax
push 0
lea ecx, [esp + 0x8c]
call fcn.004305b0
test eax, eax
jne 0x5303c0
lea ecx, [ebx + 0x80]
push ecx
push ebp
mov dword [ebx + 0x7c], edi
call fcn.00535560
add esp, 8
test eax, eax
jne 0x53085c
mov ecx, ebp
mov byte [esp + 0xc0], 3
call fcn.005647c0
lea ecx, [esp + 0x7c]
call fcn.005d0540
xor al, al
jmp 0x5309f2
push 0x6894c0
lea ecx, [esp + 0x80]
call fcn.00453950
test eax, eax
jne 0x530504
push 0x6894b0
lea ecx, [esp + 0x1c]
mov dword [ebx + 0x70], edi
call fcn.00417d70
lea esi, [ebx + 0x10]
push esi
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
mov byte [esp + 0xc8], 8
call fcn.00565050
test eax, eax
lea ecx, [esp + 0x18]
sete byte [esp + 0x14]
mov byte [esp + 0xc0], 4
call fcn.005d0540
cmp byte [esp + 0x14], 0
je 0x530427
mov dword [esi], 0xffffffff
push 0x68949c
lea ecx, [esp + 0x1c]
call fcn.00417d70
lea esi, [ebx + 0xb4]
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
mov byte [esp + 0xc8], 9
call fcn.00565050
test eax, eax
lea ecx, [esp + 0x18]
sete byte [esp + 0x14]
mov byte [esp + 0xc0], 4
call fcn.005d0540
cmp byte [esp + 0x14], 0
je 0x530475
mov dword [esi], 0
push 0x68948c
lea ecx, [esp + 0x1c]
call fcn.00417d70
lea ecx, [ebx + 0x74]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
mov byte [esp + 0xc8], 0xa
call fcn.005651b0
test eax, eax
lea ecx, [esp + 0x18]
sete byte [esp + 0x14]
mov byte [esp + 0xc0], 4
call fcn.005d0540
cmp byte [esp + 0x14], 0
jne 0x5303a1
push 0x689480
lea ecx, [esp + 0x1c]
call fcn.00417d70
lea eax, [ebx + 0x78]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc4], 0xb
push ecx
mov ecx, ebp
call fcn.005651b0
test eax, eax
lea ecx, [esp + 0x18]
sete byte [esp + 0x14]
call fcn.005d0540
cmp byte [esp + 0x14], 0
jne 0x5303a1
jmp 0x53085c
push 0x689470
lea ecx, [esp + 0x80]
call fcn.00453950
test eax, eax
jne 0x53085c
push 0x689458
lea ecx, [esp + 0x1c]
call fcn.00417d70
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
mov byte [esp + 0xc8], 0xc
call fcn.005651a0
test eax, eax
lea ecx, [esp + 0x18]
sete byte [esp + 0x14]
mov byte [esp + 0xc0], 4
call fcn.005d0540
cmp byte [esp + 0x14], 0
jne 0x53085c
lea edi, [ebx + 0xb8]
push edi
call fcn.00550f00
mov ecx, dword [esp + 0x58]
add esp, 4
push 0
push ecx
mov ecx, edi
call fcn.005385e0
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 0xc]
xor esi, esi
sar edx, 2
test edx, edx
jbe 0x53085c
push 0x689450
lea ecx, [esp + 0x1c]
call fcn.00417d70
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
mov byte [esp + 0xc8], 0xd
call fcn.00564a30
test eax, eax
lea ecx, [esp + 0x18]
sete bl
mov byte [esp + 0xc0], 4
call fcn.005d0540
test bl, bl
jne 0x5303a1
push str.CPythonItem::LoadItemTable:_invalid_item_proto__s__STRIDE__d____sizeof_SItemTable_
lea ecx, [esp + 0x1c]
call fcn.00417d70
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
mov byte [esp + 0xc8], 0xe
call fcn.00565050
test eax, eax
lea ecx, [esp + 0x18]
sete bl
mov byte [esp + 0xc0], 4
call fcn.005d0540
test bl, bl
jne 0x5303a1
mov eax, dword [esp + 0x34]
dec eax
cmp eax, 9
ja 0x5303a1
jmp dword [eax*4 + 0x52fe1c]
mov ecx, ebp
mov byte [esp + 0xc0], 3
call fcn.005647c0
mov esi, dword [esp + 0x38]
mov edi, 1
add esi, edi
mov ecx, ebp
mov dword [esp + 0x38], esi
call fcn.005648a0
cmp esi, eax
jb 0x530264
mov edi, dword [esp + 0x44]
mov eax, edi
mov esi, 0x10
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], 0
mov byte [esp + 0x9c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5308b5
sub eax, edx
push eax
push edi
lea ecx, [esp + 0xa0]
call fcn.00417c40
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0xc8], 0x11
call fcn.0050a030
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0xcc], 0x12
call fcn.00418140
mov byte [esp + 0xc0], 0x11
cmp dword [esp + 0x78], esi
jb 0x53091d
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00611358
add esp, 4
push 4
push 0x689428
lea ecx, [esp + 0xa0]
call fcn.004179a0
mov eax, dword [esp + 0xac]
cmp eax, 0xd
jbe 0x5309a0
jae 0x530943
call fcn.006121a6
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], esi
jae 0x53095a
lea eax, [esp + 0x9c]
push 6
lea esi, [ebx + 0x30]
push 0x689420
mov ecx, esi
lea ebp, [eax + 0xd]
call fcn.00417c40
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x530973
sub eax, edx
push eax
push ebp
mov ecx, esi
call fcn.004179a0
cmp dword [esi + 0x18], 0x10
jb 0x530990
mov esi, dword [esi + 4]
jmp 0x530993
add esi, 4
push esi
mov ecx, ebx
call fcn.0052fe30
mov esi, 0x10
cmp dword [esp + 0xb0], esi
jb 0x5309b9
mov edx, dword [esp + 0x9c]
push edx
call fcn.00611358
add esp, 4
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], 0
mov byte [esp + 0x9c], 0
cmp dword [esp + 0x94], esi
jb 0x5309f0
mov eax, dword [esp + 0x80]
push eax
call fcn.00611358
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.006117ae
add esp, 0xb0
ret 4