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

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.00425a20
push esi
mov esi, dword [esp + 0x148]
push edi
test esi, esi
je 0x58041d
mov edi, dword [esi + 0x1bc]
test edi, edi
jne 0x580081
cmp dword [esi + 0x1c0], edi
je 0x58041d
push 0x78
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00442fd0
mov eax, dword [esi]
add esp, 0xc
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], eax
test edi, edi
jne 0x5800ac
mov ecx, dword [esi + 0x1c0]
jmp 0x5800af
mov ecx, dword [edi + 0xc]
mov eax, ecx
mov byte [esp + 0xd], cl
sar eax, 8
cmp dword [esi + 0x1b8], 0
mov byte [esp + 0xc], al
lea eax, [esp + 0xc]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x88], 2
mov dword [esp + 0x94], 0
mov dword [esp + 0x18], eax
je 0x580127
mov al, byte [esi + 0x1b8]
mov byte [esp + 0xb], al
lea eax, [esp + 0xb]
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x98]
mov dword [esp + 0x98], 1
mov dword [esp + 0xa4], 0
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x48]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb0], eax
mov eax, dword [esi + 4]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x20], eax
lea eax, [esi + 0x14c]
mov dword [esp + 0xc0], eax
mov eax, dword [esi + 0x148]
mov dword [esp + 0xb8], eax
lea eax, [esp + 0xb8]
mov dword [esp + 0x24], eax
lea eax, [esi + 0x170]
mov dword [esp + 0xd0], eax
mov eax, dword [esi + 0x16c]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc8]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x1b4]
cdq
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x1b0]
mov dword [esp + 0x34], edx
cdq
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x1a8]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0x1d0]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x19c]
mov dword [esp + 0xc4], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0x40], eax
test edx, edx
je 0x580221
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5801f2
sub ecx, edi
mov dword [esp + 0xe0], edx
lea eax, [esp + 0xd8]
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xe4], 0
mov dword [esp + 0x4c], eax
jmp 0x580229
mov dword [esp + 0x4c], 0
mov eax, dword [esi + 0x1d4]
test eax, eax
je 0x58025d
mov dword [esp + 0xf0], eax
mov eax, dword [esi + 0x1d8]
mov dword [esp + 0xe8], eax
lea eax, [esp + 0xe8]
mov dword [esp + 0xf4], 0
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x1dc]
test eax, eax
je 0x580273
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0
mov edx, dword [esi + 0x190]
mov eax, dword [esi + 0x1e0]
mov dword [esp + 0x58], eax
test edx, edx
je 0x5802bf
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x580290
sub ecx, edi
mov dword [esp + 0x100], edx
lea eax, [esp + 0xf8]
mov dword [esp + 0xf8], ecx
mov dword [esp + 0x104], 0
mov dword [esp + 0x60], eax
jmp 0x5802c7
mov dword [esp + 0x60], 0
mov edx, dword [esi + 0x194]
test edx, edx
je 0x580305
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5802d6
sub ecx, edi
mov dword [esp + 0x110], edx
lea eax, [esp + 0x108]
mov dword [esp + 0x108], ecx
mov dword [esp + 0x114], 0
mov dword [esp + 0x64], eax
jmp 0x58030d
mov dword [esp + 0x64], 0
mov edx, dword [esi + 0x1f4]
test edx, edx
je 0x58034f
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x580320
sub ecx, edi
mov dword [esp + 0x120], edx
lea eax, [esp + 0x118]
mov dword [esp + 0x118], ecx
mov dword [esp + 0x124], 0
mov dword [esp + 0x68], eax
jmp 0x580357
mov dword [esp + 0x68], 0
mov eax, dword [esi + 0x200]
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x1e4]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x1e8]
mov dword [esp + 0x74], 0
test eax, eax
jne 0x580383
mov dword [esp + 0x7c], eax
jmp 0x5803ad
mov dword [esp + 0x130], eax
mov eax, dword [esi + 0x1ec]
mov dword [esp + 0x128], eax
lea eax, [esp + 0x128]
mov dword [esp + 0x134], 0
mov dword [esp + 0x7c], eax
movzx eax, byte [esi + 0x1f0]
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0x1f8]
test eax, eax
jne 0x5803ce
mov dword [esp + 0x84], eax
jmp 0x5803fb
mov dword [esp + 0x140], eax
mov eax, dword [esi + 0x1fc]
mov dword [esp + 0x138], eax
lea eax, [esp + 0x138]
mov dword [esp + 0x144], 0
mov dword [esp + 0x84], eax
push 0x6126d8
push dword [esp + 0x154]
lea eax, [esp + 0x18]
push eax
call fcn.004b7030
add esp, 0xc
pop edi
pop esi
add esp, 0x140
ret
pop edi
xor eax, eax
pop esi
add esp, 0x140
ret