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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x751359
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebp
mov ebp, ecx
push edi
xor edi, edi
cmp dword [ebp + 0x100], edi
jle 0x5b8369
mov eax, dword [ebp + 0x130]
push ebx
push esi
mov esi, dword [esp + 0x78]
cmp esi, edi
mov dword [esp + 0x10], eax
jge 0x5b8082
xor esi, esi
jmp 0x5b8088
cmp esi, eax
jle 0x5b8088
mov esi, eax
mov al, byte [esp + 0x78]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x38], al
call fcn.00565a90
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov eax, dword [ebp + 0x100]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x70], edi
jle 0x5b81de
jmp 0x5b80cd
xor edi, edi
cmp dword [esp + 0x10], esi
jle 0x5b81de
lea ecx, [ebp + 0x108]
push esi
mov edx, dword [ecx]
mov dword [esp + 0x2c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x34], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x38], eax
call fcn.00565b60
mov eax, dword [esp + 0x30]
push 0
mov edi, eax
mov cl, byte [eax]
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
call fcn.00404760
mov edx, dword [0x76560c]
lea ecx, [esp + 0x18]
push edx
push 0
push edi
call fcn.00404560
mov eax, dword [esp + 0x64]
mov byte [esp + 0x70], 1
test eax, eax
je 0x5b818f
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
cmp ecx, edx
je 0x5b818f
lea eax, [ecx + 0x10]
cmp eax, edx
jne 0x5b8169
mov dword [esp + 0x54], eax
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.004f1770
add esp, 8
lea ecx, [esp + 0x38]
call fcn.0045cf00
jmp 0x5b81b3
mov dword [esp + 0x78], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
mov byte [esp + 0x70], 2
je 0x5b8188
lea edx, [esp + 0x18]
push edx
call fcn.004257d0
mov byte [esp + 0x70], 1
jmp 0x5b81b3
lea ecx, [esp + 0x38]
call fcn.0045cf00
mov eax, dword [esp + 0x54]
mov ecx, eax
add eax, 0x10
mov dword [esp + 0x54], eax
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.004f1770
add esp, 8
mov eax, dword [esp + 0x64]
push 1
inc eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x68], eax
mov byte [esp + 0x74], 0
call fcn.00404760
mov eax, dword [ebp + 0x100]
inc ebx
inc esi
cmp ebx, eax
jl 0x5b80cb
xor edi, edi
xor esi, esi
test ebx, ebx
jle 0x5b8260
mov esi, ebx
mov ecx, dword [ebp + 0xec]
mov eax, dword [ecx + edi*4]
test eax, eax
je 0x5b825b
mov ecx, dword [ebp + 0xbc]
test ecx, ecx
je 0x5b821b
mov edx, dword [ecx + 0xd8]
mov dword [eax + 0xd8], edx
mov eax, dword [eax + 0xbc]
test eax, eax
je 0x5b821b
push edx
mov ecx, eax
call fcn.004380d0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x30], ecx
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], edx
call fcn.00565b60
mov eax, dword [ebp + 0xec]
mov ecx, dword [eax + edi*4]
mov eax, dword [esp + 0x30]
push eax
mov edx, dword [ecx]
call dword [edx + 0x9c]
inc edi
cmp edi, ebx
jl 0x5b81e6
mov eax, dword [ebp + 0x100]
mov dword [esp + 0x78], esi
cmp esi, eax
jge 0x5b831b
mov ecx, dword [ebp + 0xec]
cmp dword [ecx + esi*4], 0
je 0x5b8308
mov dl, byte [esp + 0x78]
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], dl
call fcn.00404760
mov edi, 0x7c4d88
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x1c]
push ebx
call fcn.00401450
test al, al
je 0x5b82dd
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov eax, ecx
mov esi, 0x7c4d88
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00404970
mov esi, dword [esp + 0x78]
mov ecx, dword [ebp + 0xec]
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x74], 3
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx]
call dword [edx + 0x9c]
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 0
call fcn.00404760
mov eax, dword [ebp + 0x100]
inc esi
cmp esi, eax
mov dword [esp + 0x78], esi
jl 0x5b8272
mov eax, dword [esp + 0x64]
pop esi
test eax, eax
mov dword [esp + 0x6c], 0xffffffff
pop ebx
je 0x5b8369
mov eax, dword [esp + 0x3c]
push 0
mov ecx, eax
add eax, 0x10
mov dword [esp + 0x40], eax
call fcn.00565f80
mov eax, dword [esp + 0x5c]
dec eax
mov dword [esp + 0x5c], eax
je 0x5b8358
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
cmp ecx, eax
jne 0x5b8361
lea ecx, [esp + 0x30]
call fcn.00514520
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x5b832d
mov ecx, dword [esp + 0x60]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x64
ret 4