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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
xor eax, eax
sub ecx, edx
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
mov byte [esp + 0x1b], 1
cmp ecx, 0xfffffffe
jle 0x613f33
cmp ecx, 2
jge 0x613f33
mov edi, dword [ebx + 4]
mov ecx, dword [esi + 0xc]
sub ecx, edi
cmp ecx, 0xfffffffe
jle 0x613f33
cmp ecx, 2
jge 0x613f33
mov ecx, dword [ebp + 0x10]
sub edx, dword [ecx]
cmp edx, 0xfffffffe
jle 0x613f36
cmp edx, 2
jge 0x613f36
mov edx, edi
sub edx, dword [ecx + 4]
cmp edx, 0xfffffffe
jle 0x613f36
cmp edx, 2
jge 0x613f36
mov edx, dword [ecx]
mov dword [esi + 8], edx
mov ecx, dword [ecx + 4]
mov dword [esi + 0xc], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.0065865c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ebx]
mov dword [esp + 0x68], edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x70], ecx
mov ecx, dword [esi + 0xc]
lea edi, [esp + 0x68]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov ebx, dword [esi]
lea edx, [esp + 0x158]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
cmp edi, edx
jae 0x614001
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push ecx
mov eax, edi
call fcn.00612e40
add esp, 8
test al, al
jne 0x613ffd
cmp byte [esi + 0x14], al
je 0x613f9e
mov edx, dword [esp + 0x10]
mov dword [esi], edx
mov eax, dword [edi + 0x10]
mov ebx, dword [edi + 8]
mov dword [edi + 0x20], eax
add eax, ebx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [edi]
add eax, ebx
cdq
mov ebx, dword [edi + 0xc]
sub eax, edx
sar eax, 1
mov dword [edi + 8], eax
sar ecx, 1
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [edi + 0x24], eax
add eax, ebx
cdq
sub eax, edx
mov dword [edi + 0x18], ecx
mov ecx, eax
mov eax, dword [edi + 4]
add eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0xc], eax
sar ecx, 1
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x14], eax
add edi, 0x10
jmp 0x6143fd
mov ebx, dword [esp + 0x10]
cmp byte [esp + 0x1b], 0
je 0x614090
cmp byte [esi + 0x14], 0
mov byte [esp + 0x1b], 0
je 0x61402a
push 0
call fcn.00613cc0
mov esi, dword [esp + 0x20]
add esp, 4
jmp 0x614118
mov eax, dword [esi]
push ebx
push eax
mov dword [esi + 4], ebx
mov dword [esp + 0x18], 0
call fcn.0060b9f0
add esp, 8
test eax, eax
je 0x614087
mov dword [esp + 0x10], 0
jns 0x614057
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
push 0
call fcn.006138c0
mov esi, dword [esp + 0x20]
add esp, 4
test eax, eax
jne 0x614118
push eax
mov eax, 1
sub eax, dword [esp + 0x14]
call fcn.006139c0
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
jmp 0x614118
mov ecx, dword [esi]
push ebx
push ecx
call fcn.0060b9f0
cdq
xor eax, edx
sub eax, edx
add esp, 8
cmp eax, 0x78000
jle 0x61411c
mov eax, dword [edi + 0x14]
mov ecx, dword [esi]
mov edx, dword [edi + 0x10]
mov dword [esi + 0xc], eax
xor eax, eax
push ebx
push ecx
mov dword [esi + 8], edx
mov dword [esi + 4], ebx
mov dword [esi + 0x30], eax
mov dword [esp + 0x18], eax
call fcn.0060b9f0
add esp, 8
test eax, eax
je 0x61410e
mov dword [esp + 0x10], 0
jns 0x6140e2
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
push 0
call fcn.006138c0
mov esi, dword [esp + 0x20]
add esp, 4
test eax, eax
jne 0x614112
push eax
mov eax, 1
sub eax, dword [esp + 0x14]
call fcn.006139c0
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x34]
mov dword [esi + 0x30], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x61441b
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
push eax
push ebx
call fcn.0060b9f0
cdq
sub eax, edx
sar eax, 1
push eax
add ebx, eax
call fcn.0060b710
mov ecx, dword [esi + 0x3c]
push eax
push ecx
call fcn.006094f0
add esp, 0x14
cmp byte [esi + 0x28], 0
mov dword [esp + 0x5c], eax
je 0x614174
mov edx, dword [edi + 4]
sub edx, dword [edi + 0x14]
mov eax, dword [edi]
sub eax, dword [edi + 0x10]
push edx
push eax
call fcn.0060b800
add esp, 8
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
add esi, 0x40
lea ecx, [eax + fcn.005a0000]
sub ebx, eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x58], ebx
jmp 0x6141a4
mov ebx, dword [esp + 0x58]
add ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x5c]
push ebx
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0060b9d0
mov edx, dword [edi + 8]
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x38], edx
mov eax, dword [edi + 0xc]
mov ebx, dword [esp + 0x28]
mov edx, dword [ebx + 0x3c]
add dword [esp + 0x3c], eax
push ecx
push edx
lea eax, [esp + 0x34]
push eax
call fcn.0060b9d0
mov eax, dword [esp + 0x38]
add eax, dword [edi]
mov ecx, dword [edi + 4]
add dword [esp + 0x3c], ecx
add esp, 0x18
cmp byte [ebx + 0x28], 0
mov dword [esp + 0x20], eax
je 0x614387
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov ebx, dword [ecx + edx*8 - 8]
mov edx, dword [ecx + edx*8 - 4]
mov ecx, dword [esp + 0x24]
sub ecx, edx
push ecx
sub eax, ebx
push eax
mov dword [esp + 0x5c], edx
call fcn.0060b800
mov edx, dword [esp + 0x48]
push eax
push edx
mov dword [esp + 0x48], eax
call fcn.0060b9f0
cdq
xor eax, edx
sub eax, edx
add esp, 0x10
cmp eax, fcn.005a0000
jle 0x614387
mov eax, dword [edi + 0x14]
sub eax, dword [esp + 0x54]
mov ecx, dword [edi + 0x10]
push eax
sub ecx, ebx
push ecx
call fcn.0060b800
mov edx, dword [edi + 4]
sub edx, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
mov eax, dword [edi]
sub eax, dword [esp + 0x28]
push edx
push eax
call fcn.0060b800
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
sub edx, dword [esp + 0x64]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x70]
sub ecx, ebx
push eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
call fcn.0060b930
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x28]
push eax
call fcn.0060b740
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x2c]
mov dword [esp + 0x50], eax
push ecx
call fcn.0060b740
cdq
xor eax, edx
sub eax, edx
push eax
mov eax, dword [esp + 0x58]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x54]
push eax
push edx
call fcn.00609430
mov ecx, dword [esp + 0x64]
push ecx
push eax
lea edx, [esp + 0x74]
push edx
call fcn.0060b9d0
mov eax, dword [esp + 0x88]
add dword [esp + 0x7c], eax
add dword [esp + 0x78], ebx
push 0
lea eax, [esp + 0x7c]
mov ecx, esi
mov byte [esi + 0x10], 0
call fcn.00613240
add esp, 0x38
test eax, eax
jne 0x61441b
push eax
lea eax, [esp + 0x24]
mov ecx, esi
call fcn.00613240
add esp, 4
test eax, eax
jne 0x61441b
push 2
call fcn.00613100
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
jne 0x61435e
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
lea ecx, [ecx + edx*8]
add eax, edx
mov edx, dword [esp + 0x2c]
mov dword [ecx], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x54]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edx
mov word [eax], 0x100
add dword [esi], 2
mov eax, dword [esp + 0x34]
mov byte [esi + 0x10], 0
test eax, eax
jne 0x61441b
push eax
lea eax, [esp + 0x24]
mov ecx, esi
call fcn.00613240
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x61441b
jmp 0x6143d1
push 2
call fcn.00613100
add esp, 4
test eax, eax
jne 0x6143c5
mov ebx, dword [esi]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
lea ecx, [ecx + ebx*8]
add edx, ebx
mov ebx, dword [esp + 0x2c]
mov dword [ecx], ebx
mov ebx, dword [esp + 0x30]
mov dword [ecx + 4], ebx
mov ebx, dword [esp + 0x20]
mov dword [ecx + 8], ebx
mov ebx, dword [esp + 0x24]
mov dword [ecx + 0xc], ebx
mov word [edx], 0x100
add dword [esi], 2
mov byte [esi + 0x10], 0
mov dword [esp + 0x14], eax
test eax, eax
jne 0x614417
mov eax, dword [esp + 0x4c]
sub dword [esp + 0x10], 0xb40000
inc eax
add esi, 0x20
mov dword [esp + 0x4c], eax
cmp eax, 1
jle 0x6141a0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
sub edi, 0x10
mov dword [eax], edx
mov esi, eax
lea ecx, [esp + 0x68]
cmp edi, ecx
jae 0x613f62
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov dword [esi + 8], edx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0065865c
mov esp, ebp
pop ebp
ret