Function at 0x5d1580
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.005db8f0
push 0xffffffffffffffff
lea ecx, [esp + 0x17]
lea esi, [ebx + 0xc4]
push ecx
mov ecx, esi
call fcn.0057da00
test al, al
jne 0x5d15bd
mov byte [esp + 0x13], al
jmp 0x5d15c6
add dword [esi + 0x10], 1
mov byte [esp + 0x13], 1
mov ecx, esi
call fcn.00581810
mov edi, dword [esp + 0xb8]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x5d164b
mov edi, edi
lea edx, [esp + 0x14]
push 4
push edx
mov ebp, eax
call fcn.00575280
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.005c0270
mov ecx, dword [esp + 0x14]
call fcn.005ee240
cmp eax, edi
je 0x5d1621
mov ecx, dword [esp + 0x14]
call fcn.005ee6a0
cmp eax, edi
jne 0x5d1629
push ebp
mov ecx, esi
call fcn.005819b0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5d1641
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x5d15e0
xor ebp, ebp
cmp byte [esp + 0x13], 0
je 0x5d168b
add dword [esi + 0x10], 0xffffffff
jne 0x5d168b
push ebp
lea eax, [esi + 8]
push eax
mov dword [esi + 0x10], ebp
call dword [0x100830c4]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea eax, [esi + 0xc]
jle 0x5d1684
push eax
call dword [0x100830a4]
mov edx, dword [esi + 0x14]
push ebp
push 1
push edx
call dword [0x100830c0]
mov edi, dword [esp + 0xb8]
lea eax, [esp + 0xb8]
push eax
lea ecx, [ebx + 0x130]
call fcn.005db8f0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0xbc]
lea esi, [ebx + 0x154]
push edx
mov ecx, esi
call fcn.005c0e70
test eax, eax
je 0x5d16d8
lea eax, [esp + 0xb8]
push eax
mov ecx, esi
call fcn.005c0f70
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005788f0
add esp, 4
lea edx, [esp + 0x20]
push edx
lea ecx, [ebx + 0x58]
mov dword [esp + 0x24], edi
call fcn.005bfde0
cmp eax, ebp
je 0x5d1700
push edi
call fcn.00576640
add esp, 4
mov esi, 1
jmp 0x5d1801
lea eax, [esp + 0x28]
push eax
lea ecx, [ebx + 0x7c]
mov dword [esp + 0x2c], edi
call fcn.005db8f0
cmp eax, ebp
jne 0x5d16ed
lea ecx, [esp + 0x34]
xor esi, esi
call fcn.005edc10
lea ecx, [esp + 0x34]
push ecx
push ebp
push pe_nt_image_headers32
push ebp
push edi
lea ecx, [esp + 0x78]
call fcn.005bd370
mov ecx, eax
call fcn.005d8300
push eax
mov ecx, ebx
call fcn.005c6420
test eax, eax
je 0x5d17d0
lea ecx, [esp + 0x34]
call fcn.005edc00
mov ecx, eax
call fcn.005ea250
test eax, eax
jne 0x5d17d0
mov ecx, dword [0x10143fa4]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [ecx + 0xadc]
push 0x38
lea eax, [esp + 0x84]
push eax
mov eax, dword [edx + 0x24]
add ecx, 0xadc
push ebp
push edi
call eax
call eax
test eax, eax
jne 0x5d1796
cmp dword [esp + 0x84], 1
jne 0x5d17d0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x38]
call fcn.005f0090
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
call eax
test eax, eax
je 0x5d17c0
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 0x5d17d0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x5c]
cmp eax, ebp
je 0x5d17e4
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 0x5d17f8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x3c], ebp
lea ecx, [esp + 0x34]
call fcn.005d82d0
lea eax, [esp + 0xb8]
push eax
lea ecx, [ebx + 0xe8]
call fcn.005db8f0
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [ebx + 0x10c]
call fcn.005c0b50
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 4