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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov ebx, eax
mov esi, dword [ebx + 0x34]
xor ebp, ebp
push edi
xor edi, edi
cmp byte [ebx + 3], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], ebp
jne 0x5f74a9
lea edi, [ebp + 4]
cmp byte [ebx + 4], 0
je 0x5f74cf
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
add eax, ecx
cdq
push edx
mov edx, dword [esp + 0x58]
push eax
lea ecx, [edi + edx]
call fcn.005cb520
add esp, 8
add edi, eax
jmp 0x5f74d7
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebp
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
push eax
push ecx
lea ecx, [edi + edx]
call fcn.005cb520
mov ecx, dword [esp + 0x5c]
add edi, eax
push ebx
lea eax, [esp + 0x3c]
call fcn.005cefe0
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
add eax, ecx
add esp, 0xc
cmp byte [ebx + 2], 0
mov dword [esp + 0x10], eax
je 0x5f7528
mov edx, dword [esp + 0x64]
mov dword [esp + 0x14], edx
mov edx, ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], ebp
jmp 0x5f7560
cmp dword [esp + 0x60], ebp
jg 0x5f770d
mov ecx, dword [esp + 0x5c]
jl 0x5f7544
cmp ecx, 0x7fffffff
ja 0x5f770d
mov edx, dword [esp + 0x58]
test edx, edx
je 0x5f770d
add eax, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x6c], ecx
mov edx, ecx
movzx ecx, word [esp + 0x4a]
mov ebx, dword [esp + 0x70]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x54]
movzx ebx, word [esp + 0x46]
add edi, ecx
movzx ecx, word [esp + 0x48]
add ecx, dword [esp + 0x54]
mov dword [esp + 0x24], ecx
test eax, eax
jg 0x5f75ac
mov eax, dword [esp + 0x18]
call fcn.005f62f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
test ebx, ebx
jne 0x5f7686
mov dword [esp + 0x2c], ebp
cmp byte [esi + 0x11], bl
je 0x5f75e1
mov ebx, dword [0x85b2f8]
inc ebp
mov ecx, ebp
mov edi, esi
call fcn.005cef50
cmp eax, ebp
je 0x5f75c3
xor edx, edx
mov eax, ebx
div dword [esi + 0x20]
inc eax
cmp ebp, eax
je 0x5f75c3
mov dword [esp + 0x1c], ebp
push 0
push ebp
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.005f6ab0
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
add esp, 0x14
cmp byte [esi + 0x11], 0
mov ebx, eax
mov dword [esp + 0x54], ebx
je 0x5f7644
test ebx, ebx
jne 0x5f76fa
mov eax, dword [esp + 0x2c]
test eax, eax
lea ecx, [esp + 0x54]
push ecx
setne dl
push eax
add dl, 3
movzx eax, dl
push eax
mov eax, ebp
mov ecx, esi
call fcn.005f6120
mov ebx, dword [esp + 0x60]
add esp, 0xc
test ebx, ebx
je 0x5f764c
mov eax, edi
call fcn.005f62f0
test ebx, ebx
jne 0x5f76fa
mov ecx, dword [esp + 0x24]
mov eax, ebp
call fcn.005cb8b0
mov eax, dword [esp + 0x18]
call fcn.005f62f0
mov ecx, dword [edi + 0x38]
xor eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], ecx
call fcn.005cb8b0
mov edi, dword [edi + 0x38]
mov ebx, dword [esi + 0x24]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
add edi, 4
sub ebx, 4
cmp eax, ebx
mov esi, eax
jle 0x5f768e
mov esi, ebx
test edx, edx
jle 0x5f76a6
cmp esi, edx
jle 0x5f7698
mov esi, edx
mov ecx, dword [esp + 0x14]
push esi
push ecx
push edi
call fcn.00564f70
jmp 0x5f76af
push esi
push 0
push edi
call fcn.00566330
mov eax, dword [esp + 0x78]
sub dword [esp + 0x1c], esi
add dword [esp + 0x20], esi
sub eax, esi
add esp, 0xc
add edi, esi
sub ebx, esi
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x5f76dc
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], 0
jg 0x5f75a0
mov eax, dword [esp + 0x18]
call fcn.005f62f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0x18]
call fcn.005f62f0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x40
ret
push 0xd1d1
call fcn.005e2a20
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret