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

Disassembly:
mov eax, 0x225c
call fcn.0071f5d0
push ebx
mov ebx, dword [esp + 0x2264]
push ebx
call fcn.00659140
add esp, 4
test eax, eax
mov dword [esp + 8], eax
je 0x5acc32
cmp byte [eax + 0x129], 0
jne 0x5acc32
mov ecx, eax
call fcn.005f3d90
test eax, eax
je 0x5acc32
push ebp
push edi
mov edi, dword [esp + 0x2270]
push edi
call fcn.00659140
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0xc], ebp
je 0x5acc26
mov ecx, ebp
call fcn.005f3d90
test eax, eax
je 0x5acc26
push esi
push edi
push ebx
call fcn.006590f0
mov ecx, eax
call fcn.00658990
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x5ac955
mov eax, dword [esi + 0x10]
cmp eax, 4
je 0x5ac955
mov ecx, dword [0x912e94]
cmp dword [ecx + 0x19c], 0
jne 0x5ac96c
cmp eax, 1
je 0x5ac96c
mov eax, dword [esi]
mov ecx, esi
mov ebp, 0x1e
call dword [eax + 0x40]
test eax, eax
jne 0x5ac93c
mov ebp, 0x32
mov ecx, dword [0x912e94]
mov ecx, dword [ecx + 0x164]
push 0x64
push 0
call fcn.00415030
cmp eax, ebp
jge 0x5ac962
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x225c
ret
mov ecx, dword [0x912e94]
mov ebp, dword [esp + 0x10]
cmp byte [ebp + 0x129], 0
je 0x5ac9da
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x14]
cmp edx, eax
mov dword [esp + 0x1c], edx
jg 0x5ac987
mov dword [esp + 0x1c], eax
mov edx, dword [ecx]
call dword [edx + 0x10]
push esi
mov ebp, eax
call fcn.005a2a10
add eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebp
ja 0x5ac955
cmp dword [0x912e88], 0
je 0x5ac9c3
mov ecx, dword [0x912e94]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [0x912e88]
add ecx, 0x927c0
cmp ecx, eax
ja 0x5ac955
mov ecx, dword [0x905af8]
push 0
push 3
call fcn.004db2e0
test eax, eax
jne 0x5ac955
push edi
push ebx
call fcn.005a3300
mov esi, eax
add esp, 8
test esi, esi
je 0x5ac955
cmp esi, 6
jne 0x5aca1f
push 0
push 4
push ebx
call fcn.005a3360
add esp, 0xc
cmp eax, 3
jge 0x5ac955
push 0
push 4
push edi
call fcn.005a3360
add esp, 0xc
cmp eax, 3
jge 0x5ac955
push 0
push 0
push 0
push esi
push ebx
push edi
call fcn.005a98a0
push 0
push ebx
push edi
mov ebp, eax
call fcn.005a3ea0
add esp, 0x24
cmp ebp, eax
jge 0x5aca4f
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x225c
ret
mov ecx, dword [0x890210]
movzx edx, di
movzx eax, bx
shl edx, 0x10
push esi
or edx, eax
push edx
push 6
call fcn.0040fed0
lea ecx, [esp + 0x20]
call fcn.005a3e70
push 0x4c
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.00402d90
mov ebp, dword [esp + 0x1c]
add esp, 0xc
mov word [esp + 0x20], bx
mov word [esp + 0x22], di
mov dword [esp + 0x24], esi
cmp byte [ebp + 0x129], 0
je 0x5acb84
mov eax, dword [0x912e94]
cmp dword [eax + 0x19c], 0
jne 0x5acb84
cmp di, word [eax + 0x1ac]
jne 0x5aca3f
cmp esi, 3
jne 0x5acae2
push 0
lea edx, [esp + 0x24]
push 0
push edx
call fcn.005ab320
add esp, 0xc
cmp dword [esp + 0x3c], 0
je 0x5acae2
mov dword [esp + 0x28], 2
mov ecx, dword [esp + 0x14]
call fcn.005f65c0
mov ecx, ebp
call fcn.005f65c0
mov ecx, dword [0x912e94]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
mov dword [ecx + 0x28], eax
mov dword [0x912e88], eax
call fcn.005a6ad0
movzx edx, al
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x27c]
push edx
call fcn.005a67d0
add esp, 0x14
test eax, eax
je 0x5acb74
push 0
lea eax, [esp + 0x24]
push eax
push 6
call fcn.006a2230
add esp, 0xc
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x274]
push edx
lea eax, [esp + 0x78]
push eax
mov ecx, eax
push ecx
push str.Images_Screens_PlayWnd_Event_Icons_new_icons_messages_diplomacy.img
push 7
call fcn.006cc540
mov ecx, dword [0x9a3304]
add esp, 0x18
push eax
call fcn.006c5910
pop esi
pop edi
pop ebp
mov eax, 2
pop ebx
add esp, 0x225c
ret
push 0
push 0
push 0
push esi
push edi
push ebx
call fcn.005a98a0
push 0
push edi
push ebx
mov ebp, eax
call fcn.005a3ea0
add esp, 0x24
cmp ebp, eax
jge 0x5acbe7
cmp esi, 3
jne 0x5acbd7
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esp + 0x18]
sub eax, dword [ecx + 0x14]
cmp eax, 0x493e0
jb 0x5acbd7
push 0
lea edx, [esp + 0x24]
push 0
push edx
call fcn.005ab320
add esp, 0xc
test eax, eax
jne 0x5acbe7
pop esi
pop edi
pop ebp
mov eax, 3
pop ebx
add esp, 0x225c
ret
mov ecx, dword [esp + 0x14]
call fcn.005f65c0
mov ecx, dword [esp + 0x10]
call fcn.005f65c0
mov ecx, dword [0x890210]
push 0
lea eax, [esp + 0x24]
push eax
push 7
call fcn.0040fed0
lea ecx, [esp + 0x20]
call fcn.005ac0b0
pop esi
pop edi
pop ebp
mov eax, 4
pop ebx
add esp, 0x225c
ret
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x225c
ret
xor eax, eax
pop ebx
add esp, 0x225c
ret