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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x5a0869
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
call fcn.00404ed4
xor eax, eax
push ebp
push 0x5a0d40
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x5a0d1d
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ebx, eax
lea eax, [ebp - 0x14]
mov edx, dword [ebx + 0x54]
call fcn.00404acc
cmp byte [ebp - 9], 0
je 0x5a08e1
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.005a02ac
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.00404acc
lea edx, [ebp - 0x1c]
mov eax, dword [ebx]
call fcn.0040a0f0
push dword [ebp - 0x1c]
push dword [ebp + 8]
push dword [ebx + 0x18]
push dword [ebp + 8]
mov ax, word [ebx + 0xe8]
push eax
push dword [ebx + 0xe4]
push dword [ebx + 0xe0]
lea eax, [ebp - 0x20]
call fcn.0040bd44
push dword [ebp - 0x20]
push dword [ebp + 8]
mov ax, word [ebx + 0xfc]
push eax
push dword [ebx + 0xf8]
push dword [ebx + 0xf4]
lea eax, [ebp - 0x24]
call fcn.0040bd44
push dword [ebp - 0x24]
push dword [ebp + 8]
mov ax, word [ebx + 0x106]
push eax
push dword [ebx + 0x102]
push dword [ebx + 0xfe]
lea eax, [ebp - 0x28]
call fcn.0040bd44
push dword [ebp - 0x28]
push dword [ebp + 8]
mov ax, word [ebx + 0x110]
push eax
push dword [ebx + 0x10c]
push dword [ebx + 0x108]
lea eax, [ebp - 0x2c]
call fcn.0040bd44
push dword [ebp - 0x2c]
push dword [ebp + 8]
push dword [ebx + 0xc]
push dword [ebp + 8]
lea edx, [ebp - 0x30]
mov eax, dword [ebx + 8]
call fcn.0040a0f0
push dword [ebp - 0x30]
push dword [ebp + 8]
push dword [ebx + 0x14]
push dword [ebp + 8]
push dword [ebx + 0x20]
push dword [ebp + 8]
push dword [ebx + 0x10]
push dword [ebp + 8]
push dword [ebx + 0x24]
push dword [ebp + 8]
push dword [ebx + 0x28]
push dword [ebp + 8]
push dword [ebx + 0x40]
push dword [ebp + 8]
mov ax, word [ebx + 0x11a]
push eax
push dword [ebx + 0x116]
push dword [ebx + 0x112]
lea eax, [ebp - 0x34]
call fcn.0040bd44
push dword [ebp - 0x34]
push dword [ebp + 8]
mov ax, word [ebx + 0x124]
push eax
push dword [ebx + 0x120]
push dword [ebx + 0x11c]
lea eax, [ebp - 0x38]
call fcn.0040bd44
push dword [ebp - 0x38]
push dword [ebp + 8]
mov ax, word [ebx + 0x12e]
push eax
push dword [ebx + 0x12a]
push dword [ebx + 0x126]
lea eax, [ebp - 0x3c]
call fcn.0040bd44
push dword [ebp - 0x3c]
push dword [ebp + 8]
push dword [ebp - 0x14]
push dword [ebp + 8]
push dword [ebx + 0x1c]
push dword [ebp + 8]
push dword [ebx + 0x64]
push dword [ebp + 8]
push dword [ebx + 0x68]
push dword [ebp + 8]
mov ax, word [ebx + 0xf2]
push eax
push dword [ebx + 0xee]
push dword [ebx + 0xea]
lea eax, [ebp - 0x40]
call fcn.0040bd44
push dword [ebp - 0x40]
push dword [ebp + 8]
push dword [ebx + 0x74]
push dword [ebp + 8]
push dword [ebx + 0x78]
push dword [ebp + 8]
push dword [ebx + 0x6c]
push dword [ebp + 8]
push dword [ebx + 0x70]
push dword [ebp + 8]
push dword [ebx + 0x2c]
push dword [ebp + 8]
mov ax, word [ebx + 0x142]
push eax
push dword [ebx + 0x13e]
push dword [ebx + 0x13a]
lea eax, [ebp - 0x44]
call fcn.0040bd44
push dword [ebp - 0x44]
push dword [ebp + 8]
push dword [ebx + 0x7c]
push dword [ebp + 8]
push dword [ebx + 0x34]
push dword [ebp + 8]
push dword [ebx + 0x98]
push dword [ebp + 8]
push dword [ebx + 0x9c]
push dword [ebp + 8]
push dword [ebx + 0xa0]
push dword [ebp + 8]
mov ax, word [ebx + 0x14c]
push eax
push dword [ebx + 0x148]
push dword [ebx + 0x144]
lea eax, [ebp - 0x48]
call fcn.0040bd44
push dword [ebp - 0x48]
push dword [ebp + 8]
push dword [ebx + 0xa4]
push dword [ebp + 8]
push dword [ebx + 0x44]
push dword [ebp + 8]
push dword [ebx + 0x48]
push dword [ebp + 8]
push 0x5a0d58
push dword [ebp + 8]
push dword [ebx + 0x4c]
push dword [ebp + 8]
push dword [ebx + 0x50]
push dword [ebp + 8]
mov ax, word [ebx + 0x138]
push eax
push dword [ebx + 0x134]
push dword [ebx + 0x130]
lea eax, [ebp - 0x4c]
call fcn.0040bd44
push dword [ebp - 0x4c]
push dword [ebp + 8]
push dword [ebx + 0xa8]
push dword [ebp + 8]
push dword [ebx + 0x80]
push dword [ebp + 8]
push dword [ebx + 0x84]
push dword [ebp + 8]
push dword [ebx + 0x88]
push dword [ebp + 8]
push dword [ebx + 0x8c]
push dword [ebp + 8]
push dword [ebx + 0x90]
push dword [ebp + 8]
push dword [ebx + 0x94]
push dword [ebp + 8]
mov ax, word [ebx + 0x156]
push eax
push dword [ebx + 0x152]
push dword [ebx + 0x14e]
lea eax, [ebp - 0x50]
call fcn.0040bd44
push dword [ebp - 0x50]
push dword [ebp + 8]
mov ax, word [ebx + 0x160]
push eax
push dword [ebx + 0x15c]
push dword [ebx + 0x158]
lea eax, [ebp - 0x54]
call fcn.0040bd44
push dword [ebp - 0x54]
push dword [ebp + 8]
push dword [ebx + 0xac]
push dword [ebp + 8]
push dword [ebx + 0x38]
push dword [ebp + 8]
push dword [ebx + 0xb0]
push dword [ebp + 8]
push dword [ebx + 0xb4]
push dword [ebp + 8]
push dword [ebx + 0xb8]
push dword [ebp + 8]
mov ax, word [ebx + 0x16a]
push eax
push dword [ebx + 0x166]
push dword [ebx + 0x162]
lea eax, [ebp - 0x58]
call fcn.0040bd44
push dword [ebp - 0x58]
push dword [ebp + 8]
push dword [ebx + 0xbc]
push dword [ebp + 8]
mov ax, word [ebx + 0x174]
push eax
push dword [ebx + 0x170]
push dword [ebx + 0x16c]
lea eax, [ebp - 0x5c]
call fcn.0040bd44
push dword [ebp - 0x5c]
push dword [ebp + 8]
push dword [ebx + 0x3c]
push dword [ebp + 8]
push dword [ebx + 0x30]
push dword [ebp + 8]
push dword [ebx + 0x58]
push dword [ebp + 8]
push dword [ebx + 0x5c]
push dword [ebp + 8]
push dword [ebx + 0x60]
push dword [ebp + 8]
push dword [ebx + 0xc0]
push dword [ebp + 8]
push dword [ebx + 0xc4]
push dword [ebp + 8]
mov ax, word [ebx + 0x17e]
push eax
push dword [ebx + 0x17a]
push dword [ebx + 0x176]
lea eax, [ebp - 0x60]
call fcn.0040bd44
push dword [ebp - 0x60]
push dword [ebp + 8]
mov ax, word [ebx + 0x188]
push eax
push dword [ebx + 0x184]
push dword [ebx + 0x180]
lea eax, [ebp - 0x64]
call fcn.0040bd44
push dword [ebp - 0x64]
push dword [ebp + 8]
mov ax, word [ebx + 0x192]
push eax
push dword [ebx + 0x18e]
push dword [ebx + 0x18a]
lea eax, [ebp - 0x68]
call fcn.0040bd44
push dword [ebp - 0x68]
push dword [ebp + 8]
push dword [ebx + 0xc8]
push dword [ebp + 8]
lea edx, [ebp - 0x6c]
mov eax, dword [ebx + 4]
call fcn.0040a0f0
push dword [ebp - 0x6c]
push dword [ebp + 8]
push 0x5a0d64
push dword [ebp + 8]
push dword [ebx + 0xcc]
push dword [ebp + 8]
push dword [ebx + 0xd0]
push dword [ebp + 8]
push dword [ebx + 0xd4]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov edx, 0x94
call fcn.00404dac
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc edi
dec esi
jne 0x5a08ab
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a0d47
lea eax, [ebp - 0x6c]
mov edx, 0x18
call fcn.00404a58
lea eax, [ebp + 8]
call fcn.00404a34
ret