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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6466eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
cmp byte [edi + 0xe4], 0
mov dword [ebp - 4], 0
je 0x5f2064
call fcn.005fc550
push ebx
push esi
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x5f207f
mov ecx, esi
call fcn.005c7a90
push 8
push esi
call fcn.004b22a2
add esp, 8
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x5f208c
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [edi + 0x78]
test eax, eax
je 0x5f20bc
push 0x5c7ad0
push dword [eax - 4]
lea esi, [eax - 4]
push 0x328
push eax
call fcn.004b21a4
imul eax, dword [esi], 0x328
add eax, 4
push eax
push esi
call fcn.004b22b0
add esp, 8
mov ecx, dword [edi + 0x10]
mov eax, ecx
test ecx, ecx
je 0x5f2118
mov eax, dword [edi]
mov esi, dword [eax]
mov eax, ecx
test esi, esi
je 0x5f2118
cmp byte [edi + 0xe3], 0
jne 0x5f2118
mov eax, dword [esi]
mov ecx, esi
push str._n___New_attributes_for_tile
call dword [eax + 8]
push dword [edi + 4]
mov ecx, esi
call fcn.005b2140
push 0x6b0cbc
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push 1
push eax
push eax
mov ecx, dword [ecx + 0xc]
push esi
call fcn.005c1090
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0xc]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x5f216d
cmp byte [edi + 0xe3], 0
jne 0x5f216d
cmp byte [edi + 0xe6], 0
jne 0x5f216d
mov ecx, dword [edi]
mov esi, 1
push esi
mov ecx, dword [ecx + 0xc]
call fcn.005b21c0
test eax, eax
je 0x5f216d
push 0
push 0xffffffffffffffff
push dword [edi + 4]
mov ecx, eax
inc esi
call fcn.005b24e0
test eax, eax
je 0x5f215e
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 4]
mov ecx, dword [edi]
push esi
mov ecx, dword [ecx + 0xc]
call fcn.005b21c0
test eax, eax
jne 0x5f2142
mov eax, dword [edi + 0x34]
test eax, eax
je 0x5f2182
push 0xb0
push eax
call fcn.004b22a2
add esp, 8
mov eax, dword [edi + 0xd0]
test eax, eax
je 0x5f21b5
push 0x5f2300
push dword [eax - 4]
lea esi, [eax - 4]
push 0xbc
push eax
call fcn.004b21a4
imul eax, dword [esi], 0xbc
add eax, 4
push eax
push esi
call fcn.004b22b0
add esp, 8
mov ebx, dword [edi + 0xc8]
mov dword [edi + 0xcc], ebx
test ebx, ebx
je 0x5f223e
jmp 0x5f21d0
mov eax, dword [ebx + 0x24]
mov dword [edi + 0xc8], eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x5f21e9
push eax
call fcn.004b28c1
add esp, 4
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x5f21f9
push eax
call fcn.004b28c1
add esp, 4
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x5f2223
push 0x5c79e0
push dword [eax - 4]
lea esi, [eax - 4]
push 0x6c
push eax
call fcn.004b21a4
imul eax, dword [esi], 0x6c
add eax, 4
push eax
push esi
call fcn.004b22b0
add esp, 8
push 0x28
push ebx
call fcn.004b22a2
mov ebx, dword [edi + 0xc8]
add esp, 8
mov dword [edi + 0xcc], ebx
test ebx, ebx
jne 0x5f21d0
cmp byte [edi + 0xe6], 0
pop esi
pop ebx
je 0x5f225c
mov ecx, edi
call fcn.005fdbf0
mov eax, dword [edi + 0x10]
mov dword [eax + 8], 0
jmp 0x5f227c
cmp byte [edi + 0xe3], 0
mov eax, dword [edi + 0x10]
je 0x5f2271
mov dword [eax + 8], 0
jmp 0x5f227c
test eax, eax
je 0x5f227c
mov dword [eax + 8], 0xffffffff
cmp dword [edi + 0x10], 0
je 0x5f22b1
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0x20]
sub ecx, dword [edi + 0xd8]
mov edx, dword [eax + 0x24]
sbb edx, dword [edi + 0xdc]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
cmp edx, dword [eax + 0x2c]
jl 0x5f22b1
jg 0x5f22ab
cmp ecx, dword [eax + 0x28]
jbe 0x5f22b1
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
cmp dword [edi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
je 0x5f22ea
mov eax, dword [edi + 0x3c]
mov dword [edi + 0x40], eax
test eax, eax
je 0x5f22e3
mov ecx, dword [edi + 0x40]
push ecx
mov eax, dword [ecx]
mov ecx, dword [edi + 0x38]
mov dword [edi + 0x3c], eax
call fcn.005d3e00
mov eax, dword [edi + 0x3c]
mov dword [edi + 0x40], eax
test eax, eax
jne 0x5f22c8
mov dword [edi + 0x38], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret