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

Disassembly:
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov ebx, ecx
lea eax, [esp + 0xb8]
lea ecx, [ebx + 0xe8]
push eax
call fcn.00584a98
push 0xffffffffffffffff
lea ecx, [esp + 0x17]
lea esi, [ebx + 0xc4]
push ecx
mov ecx, esi
call fcn.00562bf8
test al, al
jne 0x5961b5
mov byte [esp + 0x13], al
jmp 0x5961be
add dword [esi + 0x10], 1
mov byte [esp + 0x13], 1
mov ecx, esi
call fcn.00566a18
mov edi, dword [esp + 0xb8]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x596243
mov edi, edi
lea edx, [esp + 0x14]
push 4
push edx
mov ebp, eax
call fcn.00577d48
add esp, 8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00585148
mov ecx, dword [esp + 0x14]
call fcn.0059e528
cmp eax, edi
je 0x596219
mov ecx, dword [esp + 0x14]
call fcn.0059e598
cmp eax, edi
jne 0x596221
push ebp
mov ecx, esi
call fcn.00567038
mov eax, dword [esp + 0x14]
test eax, eax
je 0x596239
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x5961d8
xor ebp, ebp
cmp byte [esp + 0x13], 0
je 0x596283
add dword [esi + 0x10], 0xffffffff
jne 0x596283
push ebp
lea eax, [esi + 8]
push eax
mov dword [esi + 0x10], ebp
call dword [0x100820c4]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea eax, [esi + 0xc]
jle 0x59627c
push eax
call dword [0x10082078]
mov edx, dword [esi + 0x14]
push ebp
push 1
push edx
call dword [0x100820c0]
mov edi, dword [esp + 0xb8]
lea eax, [esp + 0xb8]
push eax
lea ecx, [ebx + 0x130]
call fcn.00584a98
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0xbc]
lea esi, [ebx + 0x154]
push edx
mov ecx, esi
call fcn.00585f28
test eax, eax
je 0x5962d0
lea eax, [esp + 0xb8]
push eax
mov ecx, esi
call fcn.005859e8
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0055cc98
add esp, 4
lea edx, [esp + 0x20]
push edx
lea ecx, [ebx + 0x58]
mov dword [esp + 0x24], edi
call fcn.00584a98
cmp eax, ebp
je 0x5962f8
push edi
call fcn.0057f528
add esp, 4
mov esi, 1
jmp 0x5963f9
lea eax, [esp + 0x28]
push eax
lea ecx, [ebx + 0x7c]
mov dword [esp + 0x2c], edi
call fcn.00584a98
cmp eax, ebp
jne 0x5962e5
lea ecx, [esp + 0x34]
xor esi, esi
call fcn.005b0418
lea ecx, [esp + 0x34]
push ecx
push ebp
push 0x40
push ebp
push edi
lea ecx, [esp + 0x78]
call fcn.005b0828
mov ecx, eax
call fcn.005b0858
push eax
mov ecx, ebx
call fcn.0058b018
test eax, eax
je 0x5963c8
lea ecx, [esp + 0x34]
call fcn.005b0408
mov ecx, eax
call fcn.0059efe8
test eax, eax
jne 0x5963c8
mov ecx, dword [0x100c3678]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [ecx + 0xb0c]
push 0x38
lea eax, [esp + 0x84]
push eax
mov eax, dword [edx + 0x24]
add ecx, 0xb0c
push ebp
push edi
call eax
call eax
test eax, eax
jne 0x59638e
cmp dword [esp + 0x84], 1
jne 0x5963c8
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x38]
call fcn.005c5f78
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
call eax
test eax, eax
je 0x5963b8
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x4c]
push 1
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x5963c8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x5c]
cmp eax, ebp
je 0x5963dc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x5c], ebp
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x5963f0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x3c], ebp
lea ecx, [esp + 0x34]
call fcn.005b0b78
lea eax, [esp + 0xb8]
push eax
lea ecx, [ebx + 0xe8]
call fcn.00584a98
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [ebx + 0x10c]
call fcn.005856c8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 4