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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x7d09c9
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebp
mov ebp, ecx
push edi
xor edi, edi
cmp dword [ebp + 0xf8], edi
jle 0x613c70
mov eax, dword [ebp + 0x128]
push ebx
push esi
mov esi, dword [esp + 0x78]
cmp esi, edi
mov dword [esp + 0x10], eax
jge 0x613992
xor esi, esi
jmp 0x613998
cmp esi, eax
jle 0x613998
mov esi, eax
mov al, byte [esp + 0x78]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x38], al
call fcn.00580580
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 + 0xf8]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x70], edi
jle 0x613aee
jmp 0x6139dd
xor edi, edi
cmp dword [esp + 0x10], esi
jle 0x613aee
lea ecx, [ebp + 0x100]
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.005806e0
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.00404e60
mov edx, dword [0x7e565c]
lea ecx, [esp + 0x18]
push edx
push 0
push edi
call fcn.00404c60
mov eax, dword [esp + 0x64]
mov byte [esp + 0x70], 1
test eax, eax
je 0x613a9f
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
cmp ecx, edx
je 0x613a9f
lea eax, [ecx + 0x10]
cmp eax, edx
jne 0x613a79
mov dword [esp + 0x54], eax
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00508b00
add esp, 8
lea ecx, [esp + 0x38]
call fcn.005802b0
jmp 0x613ac3
mov dword [esp + 0x78], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
mov byte [esp + 0x70], 2
je 0x613a98
lea edx, [esp + 0x18]
push edx
call fcn.004267d0
mov byte [esp + 0x70], 1
jmp 0x613ac3
lea ecx, [esp + 0x38]
call fcn.005802b0
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.00508b00
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.00404e60
mov eax, dword [ebp + 0xf8]
inc ebx
inc esi
cmp ebx, eax
jl 0x6139db
xor edi, edi
xor esi, esi
test ebx, ebx
jle 0x613b67
mov esi, ebx
mov ecx, dword [ebp + 0xe4]
mov eax, dword [ecx + edi*4]
test eax, eax
je 0x613b62
mov edx, dword [ebp + 0xc8]
mov ecx, dword [edx + 0xd8]
mov dword [eax + 0xd8], ecx
mov eax, dword [eax + 0xbc]
test eax, eax
je 0x613b22
mov dword [eax + 0x2c], ecx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], ecx
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
call fcn.005806e0
mov ecx, dword [ebp + 0xe4]
mov eax, dword [esp + 0x30]
push eax
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx]
call dword [edx + 0x9c]
inc edi
cmp edi, ebx
jl 0x613af6
mov eax, dword [ebp + 0xf8]
mov dword [esp + 0x78], esi
cmp esi, eax
jge 0x613c22
mov ecx, dword [ebp + 0xe4]
cmp dword [ecx + esi*4], 0
je 0x613c0f
mov dl, byte [esp + 0x78]
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], dl
call fcn.00404e60
mov edi, 0x870c08
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.00401b40
test al, al
je 0x613be4
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov eax, ecx
mov esi, 0x870c08
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.00405070
mov esi, dword [esp + 0x78]
mov ecx, dword [ebp + 0xe4]
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.00404e60
mov eax, dword [ebp + 0xf8]
inc esi
cmp esi, eax
mov dword [esp + 0x78], esi
jl 0x613b79
mov eax, dword [esp + 0x64]
pop esi
test eax, eax
mov dword [esp + 0x6c], 0xffffffff
pop ebx
je 0x613c70
mov eax, dword [esp + 0x3c]
push 0
mov ecx, eax
add eax, 0x10
mov dword [esp + 0x40], eax
call fcn.00580bd0
mov eax, dword [esp + 0x5c]
dec eax
mov dword [esp + 0x5c], eax
je 0x613c5f
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
cmp ecx, eax
jne 0x613c68
lea ecx, [esp + 0x30]
call fcn.0055de70
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x613c34
mov ecx, dword [esp + 0x60]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x64
ret 4