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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x88]
cmp eax, dword [ecx + 8]
jbe 0x6863c0
sub esp, 0x108
mov eax, dword [esp + 0x10c]
test byte [eax], al
lea ecx, [eax + 0x18]
mov dword [esp + 0x7c], ecx
mov dword [esp], ecx
call fcn.00451380
mov eax, dword [esp + 0x10c]
movzx ecx, byte [eax + 0x44]
test cl, cl
jne 0x68637f
mov eax, dword [esp + 0x110]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x114]
mov dword [esp], edx
call ecx
mov dword [esp], 0
call fcn.00404e90
movzx eax, byte [esp + 8]
test al, al
jne 0x686335
mov eax, dword [esp + 0x10c]
mov ecx, dword [eax + 0x5c]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x58]
mov dword [esp + 0x2c], edx
mov ebx, dword [eax + 0x20]
mov ebp, dword [eax + 0x24]
mov esi, dword [eax + 0x28]
movzx edi, byte [esp + 0x118]
xchg edi, eax
cmp al, 1
xchg edi, eax
jne 0x6859c2
test ebp, ebp
jg 0x6861a3
mov ebx, dword [eax + 0x54]
test ebx, ebx
jle 0x6859d4
mov ebp, dword [eax + 0x38]
cmp ebp, ebx
jge 0x685ce2
mov ecx, dword [eax + 0x38]
inc ecx
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp], ecx
call fcn.004516c0
mov eax, dword [esp + 0x10c]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ecx, dword [ecx + 0x10]
mov ebx, dword [esp + 0x110]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x114]
mov dword [esp + 8], ebx
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x685c84
mov dword [esp + 0x40], edx
mov dword [esp + 0x6c], ebx
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.00451380
mov edx, dword [0xac3108]
mov eax, dword [edx]
call eax
lea edi, [esp + 0xc4]
mov esi, esp
call fcn.0044ce4e
lea eax, [0x7b7740]
mov dword [esp], eax
call fcn.00409cb0
mov eax, dword [0xadb480]
mov edi, dword [esp + 4]
test eax, eax
jne 0x685c71
mov ecx, dword [esp + 0x10c]
mov dword [edi], ecx
mov dword [esp + 0x78], edi
mov edx, dword [0xadb480]
lea ebx, [edi + 4]
test edx, edx
jne 0x685c4b
mov eax, edi
mov edi, ebx
lea esi, [esp + 0xc4]
call fcn.0044ce4e
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x20], ecx
mov ecx, dword [0xadb480]
test ecx, ecx
jne 0x685c36
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x24], ecx
mov byte [eax + 0x38], 1
mov ecx, dword [esp + 0x10c]
mov edx, dword [ecx + 0x48]
test edx, edx
je 0x685bf5
lea edx, [0x843730]
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], eax
mov ebx, dword [ecx + 0x48]
mov dword [esp + 4], ebx
lea ebx, [0x774720]
mov dword [esp], ebx
lea ebp, [esp + 0x90]
mov dword [esp + 8], ebp
call fcn.0040ab30
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x685b84
lea ecx, [0x7b8e00]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x84], ecx
lea edx, [0x77f380]
mov dword [esp], edx
mov dword [esp + 4], eax
lea eax, [esp + 0x80]
mov dword [esp + 8], eax
call fcn.0040b0a0
mov eax, dword [esp + 0xc]
mov byte [eax], 1
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.004516c0
mov eax, dword [esp + 0x78]
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 0
add esp, 0x108
ret
call fcn.0040a730
mov eax, dword [esp]
mov dword [esp + 0x54], eax
lea ecx, [0x843730]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x8c], ecx
mov edx, dword [esp + 0x10c]
mov edx, dword [edx + 0x48]
mov dword [esp + 4], edx
lea edx, [0x774720]
mov dword [esp], edx
lea edx, [esp + 0x88]
mov dword [esp + 8], edx
call fcn.0040b0a0
mov edi, dword [esp + 0xc]
test byte [edi], al
mov eax, dword [0xadb480]
test eax, eax
jne 0x685bea
mov eax, dword [esp + 0x54]
mov dword [edi], eax
jmp 0x685b14
mov eax, dword [esp + 0x54]
call fcn.0044c870
jmp 0x685be5
call fcn.0040a730
mov eax, dword [0xadb480]
mov ecx, dword [esp]
test eax, eax
jne 0x685c21
mov eax, dword [esp + 0x10c]
mov dword [eax + 0x48], ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x10c]
jmp 0x685ad6
mov edx, dword [esp + 0x10c]
lea edi, [edx + 0x48]
mov eax, ecx
call fcn.0044c870
mov eax, edx
jmp 0x685c11
lea edi, [eax + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x6c]
call fcn.0044c870
mov eax, ecx
jmp 0x685ac0
lea eax, [0x7ce7c0]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [esp + 0xc4]
mov dword [esp + 8], eax
call fcn.0040f540
mov eax, dword [esp + 0x78]
jmp 0x685aa4
mov eax, dword [esp + 0x10c]
call fcn.0044c870
mov ecx, eax
jmp 0x685a7f
mov dword [esp + 0x64], eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.00451380
mov eax, dword [esp + 0x10c]
mov ecx, dword [eax + 0x38]
dec ecx
mov dword [eax + 0x38], ecx
mov dword [esp], eax
call fcn.00685320
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.004516c0
mov dword [esp + 0x11c], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x124], eax
add esp, 0x108
ret
lea eax, [0x75b900]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00403b00
mov eax, dword [esp + 0x10c]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x24], ecx
mov edx, ecx
add ecx, 1
mov ebx, dword [esp + 8]
mov dword [esp + 0x58], ebx
mov ebp, dword [eax + 0x34]
mov dword [esp + 0x28], ebp
mov dword [eax + 0x30], ecx
mov ecx, ebp
adc ebp, 0
mov dword [eax + 0x34], ebp
mov ebp, dword [eax + 0x2c]
mov dword [esp + 4], ebp
lea ebp, [0x7759a0]
mov dword [esp], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.0040dba0
mov edi, dword [esp + 0x10]
test byte [edi], al
mov eax, dword [0xadb480]
test eax, eax
jne 0x686195
mov eax, dword [esp + 0x58]
mov dword [edi], eax
mov eax, dword [esp + 0x10c]
mov ecx, dword [eax + 0x64]
add ecx, 1
mov edx, dword [eax + 0x68]
mov dword [eax + 0x64], ecx
adc edx, 0
mov dword [eax + 0x68], edx
mov ecx, dword [esp + 0x7c]
mov dword [esp], ecx
call fcn.004516c0
call fcn.00470be0
lea edi, [esp + 0xb0]
mov esi, esp
call fcn.0044ce4e
mov eax, dword [esp + 0x110]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x114]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0x74], eax
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
lea edi, [esp + 0xd8]
xor eax, eax
call fcn.0044c964
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov word [esp + 0xe0], 1
mov eax, dword [esp + 0x74]
mov dword [esp + 0xd8], eax
mov word [esp + 0xf8], 1
mov eax, dword [esp + 0x58]
mov dword [esp + 0xf0], eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0xf4], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 4], ecx
lea ecx, [esp + 0xd8]
mov dword [esp], ecx
mov dword [esp + 8], 2
call fcn.00434ec0
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x10]
test eax, eax
je 0x686052
cmp eax, 1
jne 0x6863b7
mov byte [esp + 0x22], cl
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x48], edx
mov edi, esp
lea esi, [esp + 0xb0]
call fcn.0044ce4e
call fcn.004706a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00401280
movzx eax, byte [esp + 0x22]
test al, al
je 0x686026
mov eax, dword [esp + 0x48]
test eax, eax
je 0x685fc0
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x685f9c
lea eax, [ecx + 0x18]
mov dword [esp + 0x7c], eax
mov dword [esp], eax
call fcn.00451380
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 0x30]
mov dword [esp + 0x34], edx
mov ebx, dword [esp + 0x7c]
mov dword [esp], ebx
call fcn.004516c0
mov eax, dword [0xac8dd0]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
je 0x685f41
mov eax, dword [esp + 0x78]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x124], eax
add esp, 0x108
ret
mov dword [esp], ecx
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [0xac8dd4]
mov dword [esp + 8], eax
call fcn.00402ea0
movzx eax, byte [esp + 0xc]
test al, al
je 0x685f19
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.006836d0
mov eax, dword [0xac8dd0]
mov ecx, dword [0xac8dd4]
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], ecx
add esp, 0x108
ret
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x124], eax
add esp, 0x108
ret
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], ecx
call fcn.006832c0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x685fee
mov eax, dword [esp + 0x48]
jmp 0x685ed2
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.006836d0
mov eax, dword [0xac8dd4]
mov ecx, dword [0xac8dd0]
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], eax
add esp, 0x108
ret
mov eax, dword [0xac8db4]
mov ecx, dword [0xac8db0]
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], eax
add esp, 0x108
ret
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.00451380
mov eax, dword [esp + 0x10c]
mov ecx, dword [eax + 0x2c]
mov dword [esp + 4], ecx
lea ecx, [0x7759a0]
mov dword [esp], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc], ecx
call fcn.0040deb0
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.004516c0
mov edi, esp
lea esi, [esp + 0xb0]
call fcn.0044ce4e
call fcn.004706a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00401280
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
lea eax, [esp + 0x98]
mov dword [esp], eax
lea eax, [esp + 0x23]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
call fcn.00404ee0
movzx eax, byte [esp + 0xc]
test al, al
je 0x686133
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
movzx edx, byte [esp + 0x23]
mov ebx, dword [esp + 0x98]
test dl, dl
je 0x686133
test ebx, ebx
jne 0x686171
mov eax, dword [esp + 0x110]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x114]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], eax
add esp, 0x108
ret
mov edx, dword [esp + 0x10c]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], 0
call fcn.00686570
jmp 0x686133
mov eax, dword [esp + 0x58]
call fcn.0044c870
jmp 0x685d5c
mov eax, dword [ebx]
mov dword [esp + 0x68], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
lea ecx, [0x7b8e00]
mov dword [esp], ecx
lea ecx, [esi - 1]
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 4
add ecx, ebx
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 1]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
call fcn.0040f790
mov eax, dword [esp + 0x10c]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0x44]
cmp edx, ecx
ja 0x6863b9
mov dword [eax + 0x24], edx
mov eax, dword [esp + 0x68]
mov byte [eax + 0x38], 1
mov ecx, dword [esp + 0x7c]
mov dword [esp], ecx
call fcn.004516c0
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], ecx
call fcn.006832c0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x6862fd
mov eax, dword [esp + 0x68]
lea ecx, [eax + 0x18]
mov dword [esp + 0x7c], ecx
mov dword [esp], ecx
call fcn.00451380
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x5c], edx
mov ebx, dword [esp + 0x7c]
mov dword [esp], ebx
call fcn.004516c0
mov eax, dword [0xac8dd0]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
je 0x6862a2
mov eax, dword [esp + 0x68]
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 0
add esp, 0x108
ret
mov dword [esp], ecx
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [0xac8dd4]
mov dword [esp + 8], eax
call fcn.00402ea0
movzx eax, byte [esp + 0xc]
test al, al
je 0x68627a
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.006836d0
mov eax, dword [0xac8dd0]
mov ecx, dword [0xac8dd4]
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], ecx
add esp, 0x108
ret
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.006836d0
mov eax, dword [0xac8dd4]
mov ecx, dword [0xac8dd0]
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], eax
add esp, 0x108
ret
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.004516c0
mov eax, dword [esp + 0x110]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x114]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], eax
add esp, 0x108
ret
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.004516c0
mov eax, dword [0xac8db4]
mov ecx, dword [0xac8db0]
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], eax
add esp, 0x108
ret
ud2
call fcn.00426530
ud2
call fcn.0044b110
jmp fcn.00685910