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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x685c67
sub esp, 0x70
mov eax, dword [esp + 0x74]
mov dword [eax + 0x40], 0
movzx ecx, byte [eax + 0x30]
test cl, cl
je 0x685c60
mov byte [eax + 0x30], 0
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x20]
cmp ecx, edx
jb 0x685c0d
mov dword [eax + 0x28], 0xffffffff
mov ecx, dword [eax + 0x40]
mov edx, dword [eax + 0x3c]
mov ebx, dword [eax + 0x44]
mov ebp, dword [eax + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.006860e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x74]
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x44], eax
mov eax, dword [0xc6f140]
test eax, eax
jne 0x685bfe
mov dword [ebx + 0x3c], edx
mov dword [esp], ebx
lea edi, [esp + 4]
mov dword [esp + 0x44], edi
lea esi, [esp + 0x78]
call fcn.0044ce3e
call fcn.00685c80
movzx eax, byte [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
test al, al
jne 0x685ba2
mov dword [esp + 0x40], ecx
lea edi, [esp + 0x5c]
lea esi, [esp + 0x78]
call fcn.0044ce3e
movzx eax, byte [esp + 0x6c]
test al, al
je 0x685b79
xor eax, eax
test al, al
jne 0x685b4a
lea edi, [esp + 0xc]
test edx, edx
sete cl
mov ebx, dword [esp + 0x40]
test ebx, ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
and ebp, ecx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x685adf
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x44]
mov ebx, dword [ecx + 0x40]
mov ebp, dword [ecx + 0x3c]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
lea esi, [esp + 0x78]
call fcn.0044ce3e
mov byte [esp + 0x20], al
call fcn.00685ec0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x74]
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x44], eax
mov eax, dword [0xc6f140]
test eax, eax
jne 0x685ad3
mov dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x38]
mov eax, dword [eax + 0x10]
mov edx, dword [ebx + 0x44]
mov ebp, dword [ebx + 0x40]
mov esi, dword [ebx + 0x3c]
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
test eax, eax
je 0x685aba
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edx
add esp, 0x70
ret
mov ebx, dword [esp + 0x74]
mov ebx, dword [ebx + 0x40]
cmp ecx, ebx
je 0x685aa8
mov eax, dword [0xc5c698]
mov edx, dword [0xc5c69c]
jmp 0x685aa8
lea edi, [ebx + 0x3c]
mov eax, edx
call fcn.0044c860
jmp 0x685a75
mov ecx, dword [esp + 0x74]
mov ebp, dword [ecx + 0x3c]
mov esi, eax
mov eax, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x44]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov eax, esi
lea esi, [esp + 0x78]
call fcn.0044ce3e
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x28], al
call fcn.00685fe0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x74]
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x44], edx
mov ecx, dword [0xc6f140]
test ecx, ecx
jne 0x685b3d
mov dword [ebx + 0x3c], eax
jmp 0x685a75
lea edi, [ebx + 0x3c]
call fcn.0044c860
jmp 0x685a75
mov byte [esp + 0x3b], al
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov edi, dword [esp + 0x44]
lea esi, [esp + 0x78]
call fcn.0044ce3e
call fcn.00686ab0
movzx eax, byte [esp + 0x3b]
mov edx, dword [esp + 0x3c]
jmp 0x685a06
lea edi, [esp + 0x48]
lea esi, [esp + 0x5c]
call fcn.0044ce3e
mov ecx, dword [esp + 0x74]
mov ebx, dword [ecx + 0x20]
mov ebp, dword [esp + 0x4c]
add ebp, dword [esp + 0x54]
add ebp, 0x20
cmp ebp, ebx
setbe al
jmp 0x6859fe
mov eax, dword [esp + 0x74]
mov ebx, dword [eax + 0x44]
mov ebp, dword [eax + 0x40]
mov esi, dword [eax + 0x3c]
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call fcn.00685e30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x74]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], edx
mov eax, dword [0xc6f140]
test eax, eax
jne 0x685bef
mov dword [ebx + 0x3c], ecx
jmp 0x685a75
lea edi, [ebx + 0x3c]
mov eax, ecx
call fcn.0044c860
jmp 0x685a75
lea edi, [ebx + 0x3c]
mov eax, edx
call fcn.0044c860
jmp 0x6859b0
mov edx, dword [eax + 0x44]
mov ebx, dword [eax + 0x40]
mov ebp, dword [eax + 0x3c]
mov dword [esp + 0xc], ecx
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.006860e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x74]
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x44], eax
mov eax, dword [0xc6f140]
test eax, eax
jne 0x685c54
mov dword [ebx + 0x3c], edx
mov eax, ebx
jmp 0x685962
lea edi, [ebx + 0x3c]
mov eax, edx
call fcn.0044c860
jmp 0x685c4d
mov ebx, eax
jmp 0x6859b0
call fcn.0044b100
jmp fcn.00685920