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

Disassembly:
sub esp, 0x570
push ebx
push ebp
push esi
lea eax, [esp + 0x20]
push edi
mov esi, ecx
xor ebx, ebx
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], ebx
call fcn.00684d30
test eax, eax
jne 0x68512f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x570
ret
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x6854a9
cmp eax, 0x40
jbe 0x68514d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x570
ret
cmp eax, ebx
mov dword [esp + 0x1c], ebx
jbe 0x6854a9
mov dword [esp + 0x14], ebx
jmp 0x685163
mov ebx, dword [esp + 0x14]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ecx, 0x143
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x6851ec
mov ecx, dword [esi + 0x60]
sub ecx, eax
test ecx, 0xfffffffc
je 0x6851ec
mov ebp, dword [esi + 0x60]
mov edx, dword [esp + 0x28]
mov edi, eax
mov ecx, ebp
sub ecx, edi
add ebx, edx
sar ecx, 2
test ecx, ecx
jle 0x6851c4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp dword [edi + eax*4], ebx
jae 0x6851be
or edx, 0xffffffff
lea edi, [edi + eax*4 + 4]
sub edx, eax
add ecx, edx
jmp 0x6851c0
mov ecx, eax
test ecx, ecx
jg 0x6851a5
cmp edi, ebp
je 0x685489
cmp ebx, dword [edi]
jb 0x685489
mov ecx, dword [esi + 4]
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.0064a460
test eax, eax
je 0x685140
jmp 0x685208
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x50]
add ebx, edx
push ecx
mov ecx, dword [esi + 4]
push ebx
call fcn.0064a460
test eax, eax
je 0x685140
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
inc eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x4c], ecx
lea ecx, [esi + 0x68]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edx
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x50]
test eax, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], edx
jne 0x68525d
xor edx, edx
jmp 0x685273
mov edx, dword [ecx + 8]
sub edx, eax
mov eax, 0x6572ec3
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
test edx, edx
jle 0x68528f
mov edi, dword [esi + 0x6c]
cmp dword [edi], ebx
je 0x685317
inc eax
add edi, 0x50c
cmp eax, edx
jl 0x68527c
mov eax, dword [ecx + 8]
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x74]
mov dword [esp + 0x34], edi
push edx
push 1
push eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebp
call fcn.00685e80
inc edi
mov dword [esp + 0x20], edi
mov ecx, dword [esi + 0x80]
mov edx, dword [esi + 0x84]
lea ebx, [esi + 0x78]
sub edx, ecx
mov eax, 0x38e38e39
mov ebp, ecx
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x6853c1
mov esi, dword [ebx + 4]
test esi, esi
je 0x68530a
mov edx, ecx
mov eax, 0x38e38e39
sub edx, esi
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov edi, edx
ja 0x68530f
mov edi, 1
test esi, esi
jne 0x68531d
xor edx, edx
jmp 0x685330
mov dword [esp + 0x34], eax
jmp 0x6852ba
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea esi, [edx + edi]
test esi, esi
mov eax, esi
jge 0x68533b
xor eax, eax
lea edx, [eax + eax*8]
shl edx, 2
push edx
call fcn.006a6832
add esp, 4
mov edi, eax
mov eax, dword [ebx + 4]
mov ecx, ebx
push edi
push ebp
push eax
call fcn.00649380
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], eax
push ecx
push 1
push eax
mov ecx, ebx
call fcn.006864c0
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 8]
add edx, 0x24
mov ecx, ebx
push edx
push eax
push ebp
call fcn.00649380
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
mov ecx, ebx
call fcn.00641c50
mov eax, dword [ebx + 4]
push eax
call fcn.006a64d0
lea ecx, [esi + esi*8]
add esp, 4
lea edx, [edi + ecx*4]
mov ecx, ebx
mov dword [ebx + 0xc], edx
call fcn.00649350
inc eax
mov esi, dword [esp + 0x10]
mov dword [ebx + 4], edi
lea eax, [eax + eax*8]
lea ecx, [edi + eax*4]
mov dword [ebx + 8], ecx
jmp 0x685489
mov edx, ecx
mov eax, 0x38e38e39
sub edx, ebp
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x685432
lea edx, [ebp + 0x24]
push edx
push ecx
push ebp
mov ecx, ebx
call fcn.00649380
mov edi, dword [ebx + 8]
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
sub ecx, ebp
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, ebx
sub eax, edx
push eax
push edi
call fcn.006864c0
mov eax, dword [ebx + 8]
cmp ebp, eax
je 0x685485
mov edi, ebp
add ebp, 0x24
mov ecx, 9
lea esi, [esp + 0x2c]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x68541c
jmp 0x685481
lea eax, [ecx - 0x24]
push ecx
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.00649380
mov edx, dword [ebx + 8]
lea eax, [edx - 0x24]
cmp ebp, eax
je 0x685466
sub eax, 0x24
sub edx, 0x24
mov ecx, 9
mov esi, eax
mov edi, edx
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x68544d
mov esi, dword [esp + 0x10]
lea eax, [ebp + 0x24]
cmp ebp, eax
je 0x685485
mov edi, ebp
add ebp, 0x24
mov ecx, 9
lea esi, [esp + 0x2c]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x68546d
mov esi, dword [esp + 0x10]
add dword [ebx + 8], 0x24
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
add edx, 0x24
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
jb 0x68515f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x570
ret