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

Disassembly:
push 0xffffffffffffffff
push 0x780a2b
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x84dea4]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x84dea4]
xor eax, esp
push eax
lea eax, [esp + 0x194]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1a4]
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov ebp, ecx
push eax
push esi
lea ecx, [ebp + 0x34]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
call fcn.005f0560
xor eax, eax
cmp esi, eax
mov dword [ebp + 0x48], eax
jle 0x5f08f0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [eax + ecx + 0x84]
mov ecx, dword [ebp + 0x48]
xor eax, eax
test ecx, ecx
jbe 0x5f086e
mov edx, dword [ebp + 0x4c]
jmp 0x5f0860
cmp dword [edx], ebx
je 0x5f08dd
add eax, 1
add edx, 4
cmp eax, ecx
jb 0x5f0860
mov esi, dword [ebp + 0x48]
lea edi, [ebp + 0x44]
add esi, 1
cmp esi, dword [edi]
jbe 0x5f08cc
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x5f08b1
cmp esi, 0x40
mov ecx, esi
jae 0x5f08a5
lea eax, [esi - 1]
and eax, esi
je 0x5f0899
mov ecx, eax
lea eax, [ecx - 1]
and eax, ecx
jne 0x5f0890
cmp ecx, 1
jae 0x5f08b1
mov ecx, 1
jmp 0x5f08b1
mov dword [edi + 0xc], 0x40
mov ecx, 0x40
xor edx, edx
mov eax, esi
div ecx
test edx, edx
je 0x5f08c1
sub ecx, edx
add ecx, esi
mov esi, ecx
lea edi, [ebp + 0x44]
push esi
mov ecx, edi
call fcn.004232e0
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
lea ecx, [edx + eax*4]
add eax, 1
mov dword [edi + 4], eax
mov dword [ecx], ebx
add dword [esp + 0x18], 0xac
sub dword [esp + 0x14], 1
jne 0x5f0841
mov edx, str.Pane
mov ecx, str.UnitPropertiesDialog
call fcn.005b00f0
mov edi, eax
mov edx, str.Pane
mov ecx, str.UnitPropertiesDialog
mov dword [esp + 0x28], edi
call fcn.005b0110
mov edx, str.Pane
mov ecx, str.UnitPropertiesDialog
mov esi, eax
call fcn.005b0130
add eax, edi
mov edx, str.Pane
mov ecx, str.UnitPropertiesDialog
mov dword [esp + 0x30], eax
call fcn.005b0150
mov ebx, eax
mov eax, dword [ebp + 0xa0]
add ebx, esi
xor edi, edi
test eax, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], 0xa
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
jbe 0x5f09ca
mov edi, edi
mov eax, dword [ebp + 0xa4]
cmp dword [eax + edi*4], 0
lea eax, [eax + edi*4]
je 0x5f09bf
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x14], eax
je 0x5f09b2
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5f099f
push 0
push 0xfffffffffffffffe
push str..PAVCUnitPropsArea__
push eax
call sub.Storm.dll_Ordinal_403
mov ecx, dword [esp + 0x14]
push 0
push 0xffffffffffffffff
push 0x7987b8
push ecx
call sub.Storm.dll_Ordinal_403
mov edx, dword [ebp + 0xa4]
mov dword [edx + edi*4], 0
add edi, 1
cmp edi, dword [ebp + 0xa0]
jb 0x5f0970
mov eax, dword [ebp + 0xa4]
xor edi, edi
test eax, eax
je 0x5f09e4
push edi
push 0xfffffffffffffffe
push str..PAVCUnitPropsPane__
push eax
call sub.Storm.dll_Ordinal_403
mov ecx, ebp
mov dword [ebp + 0x9c], edi
mov dword [ebp + 0xa0], edi
mov dword [ebp + 0xa4], edi
call fcn.005efb30
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], esi
lea edx, [esp + 0x4c]
lea esi, [ebp + 0x44]
cmp edx, esi
mov dword [esp + 0x19c], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ecx
je 0x5f0a69
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, edx
call fcn.00556310
mov edx, dword [esi + 0xc]
mov dword [esp + 0x58], edx
mov dword [esp + 0x14], 0
lea ebx, [ebp + 0x5c]
cmp dword [ebx], 0
je 0x5f0bbc
xor edi, edi
cmp dword [esp + 0x20], edi
jle 0x5f0bbc
xor esi, esi
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add eax, esi
mov eax, dword [eax + 0x84]
push eax
call edx
test eax, eax
jne 0x5f0abf
add edi, 1
add esi, 0xac
cmp edi, dword [esp + 0x20]
jl 0x5f0a92
jmp 0x5f0bbc
mov ecx, dword [esp + 0x14]
call fcn.005eefd0
mov esi, eax
cmp esi, 0xffffffff
jne 0x5f0ae1
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], 0xa
mov dword [esp + 0x38], ecx
jmp 0x5f0af1
mov eax, dword [esp + 0x28]
mov edx, dword [esp + esi*4 + 0x5c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov ecx, dword [ebx]
lea eax, [esp + 0x34]
push eax
call fcn.005ef7a0
cmp esi, 0xffffffff
jne 0x5f0b55
mov ecx, dword [ebx]
add dword [esp + 0x18], eax
push 1
call fcn.005ef7f0
mov edi, 1
cmp dword [esp + 0x20], edi
jle 0x5f0b48
mov esi, 0xac
nop
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebx]
mov ebp, dword [ecx]
lea edx, [eax + esi]
push edx
mov edx, dword [ebp + 0x20]
push eax
call edx
test eax, eax
je 0x5f0baf
mov ebp, dword [esp + 0x1c]
add edi, 1
add esi, 0xac
cmp edi, dword [esp + 0x20]
jl 0x5f0b20
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebx]
push eax
call fcn.005f0500
jmp 0x5f0bbc
add dword [esp + esi*4 + 0x5c], eax
cmp dword [esp + esi*4 + 0x74], 0
lea edi, [esp + esi*4 + 0x74]
jne 0x5f0ba0
push 0
push 0x173
push str..CUnitPropertiesDialog.cpp
push 0x14
call sub.Storm.dll_Ordinal_401
xor ecx, ecx
cmp eax, ecx
je 0x5f0b9c
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], esi
mov ecx, dword [ebx]
push ecx
mov ecx, eax
mov dword [edi], eax
call fcn.005f0100
jmp 0x5f0b0f
xor eax, eax
mov dword [edi], eax
mov ecx, dword [ebx]
push ecx
mov ecx, dword [edi]
call fcn.005f0100
jmp 0x5f0b0f
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add eax, 1
add ebx, 4
cmp eax, 0x10
mov dword [esp + 0x14], eax
jl 0x5f0a7b
mov ecx, dword [ebp + 0x30]
call fcn.0040ae00
mov ecx, dword [ebp + 0x30]
call fcn.0040c1a0
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [esp + ebx*4 + 0x74], 0
je 0x5f0ca7
mov esi, dword [ebp + 0xa0]
lea edi, [ebp + 0x9c]
add esi, 1
cmp esi, dword [edi]
jbe 0x5f0c5f
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x5f0c41
cmp esi, 0x40
mov ecx, esi
jae 0x5f0c35
lea eax, [esi - 1]
and eax, esi
je 0x5f0c29
lea esp, [esp]
mov ecx, eax
lea eax, [ecx - 1]
and eax, ecx
jne 0x5f0c20
cmp ecx, 1
jae 0x5f0c41
mov ecx, 1
jmp 0x5f0c41
mov dword [edi + 0xc], 0x40
mov ecx, 0x40
xor edx, edx
mov eax, esi
div ecx
test edx, edx
je 0x5f0c51
sub ecx, edx
add ecx, esi
mov esi, ecx
lea edi, [ebp + 0x9c]
push esi
mov ecx, edi
call fcn.005efaa0
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
lea ecx, [ecx + eax*4]
add eax, 1
mov dword [edi + 4], eax
mov eax, dword [esp + ebx*4 + 0x74]
mov dword [ecx], eax
push 0x104
lea edx, [esp + 0x90]
mov ecx, ebx
call fcn.005ef050
mov ecx, dword [ebp + 0x30]
push 0xffffffffffffffff
lea edx, [esp + 0x90]
push edx
call fcn.004148b0
mov eax, dword [esp + ebx*4 + 0x5c]
cmp eax, dword [esp + 0x14]
jle 0x5f0ca7
mov dword [esp + 0x14], eax
add ebx, 1
cmp ebx, 6
jl 0x5f0be9
mov esi, dword [esp + 0x14]
sub esi, dword [esp + 0x2c]
test esi, esi
jle 0x5f0d1b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x30]
call fcn.0040adc0
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x30]
add eax, esi
mov dword [esp + 0x14], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
mov eax, dword [esp + 0x1c]
push eax
call edx
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 4]
call fcn.00410dd0
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp]
mov edx, dword [edx + 8]
add eax, esi
push 1
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
push eax
mov ecx, ebp
call edx
xor edx, edx
lea ecx, [edx + 0x1e]
call fcn.004df5b0
push eax
mov ecx, ebp
call fcn.005efea0
test eax, eax
jne 0x5f0d44
mov ecx, dword [ebp + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
push 0
call edx
mov ecx, ebp
call fcn.005efe20
mov eax, dword [esp + 0x54]
test eax, eax
je 0x5f0d5b
push 0
push 0xfffffffffffffffe
push 0x829be4
push eax
call sub.Storm.dll_Ordinal_403
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.00735f58
add esp, 0x18c
ret 4