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

Disassembly:
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx]
push ebp
push esi
mov esi, dword [esp + 0x14]
mov dword [ebx], 0
mov dword [ecx], 0
cmp dword [esi + 0x78], 8
push edi
mov dword [esp + 0x10], eax
jne 0x682954
mov eax, ecx
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x78]
mov ebp, dword [esi + 0x24]
cmp ecx, 9
je 0x682b94
mov edi, dword [esp + 0x1c]
cmp ebp, edi
jne 0x682976
cmp dword [esp + 0x28], 0
je 0x682b9f
cmp ecx, 6
je 0x6829a7
cmp ecx, 7
je 0x6829a7
mov ecx, dword [ebx]
cmp ecx, eax
je 0x682bb1
mov edi, dword [esp + 0x20]
inc ecx
mov dword [ebx], ecx
mov al, byte [edi]
mov ecx, esi
call fcn.006827f0
inc edi
mov dword [esi + 0x78], eax
mov dword [esp + 0x20], edi
jmp 0x682b78
mov edx, dword [ebx]
mov ecx, dword [esi + 0x74]
sub edi, ebp
sub eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], 0
cmp ecx, edi
ja 0x6829ca
mov edi, ecx
mov dword [esp + 0x18], 1
mov cl, byte [esi + 0x7c]
test cl, cl
js 0x682a8e
cmp edx, dword [esp + 0x10]
je 0x682bc3
cmp dword [esi + 0x78], 6
jne 0x682a2b
xor eax, eax
cmp cl, 1
sete al
test eax, eax
je 0x682a04
mov ecx, 1
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], ecx
jmp 0x682a11
cmp dword [esi + 0x80], 0
jne 0x682b94
push 0
push eax
push esi
mov dword [esi + 0x80], 0
call fcn.00657b50
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, edi
jbe 0x682a35
mov eax, edi
mov dword [esp + 0x24], eax
test eax, eax
je 0x682b94
mov edx, dword [esp + 0x20]
push eax
mov edi, eax
mov eax, dword [esi + 0x14]
add eax, dword [esi + 0x24]
push edx
push eax
call fcn.0065b3c0
add dword [esi + 0x24], edi
add esp, 0xc
cmp dword [esi + 0x30], 0
jne 0x682a6c
mov eax, dword [esi + 0xc]
mov ecx, eax
sub ecx, dword [esi + 0x2c]
cmp ecx, edi
ja 0x682a6c
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x24]
add dword [esi + 0x2c], edi
add dword [ebx], eax
add dword [esp + 0x20], eax
sub dword [esi + 0x74], eax
mov eax, dword [esi + 0x74]
neg eax
sbb eax, eax
and eax, 7
mov dword [esi + 0x78], eax
jmp 0x682b78
cmp dword [esi + 0x78], 6
jne 0x682af2
movzx eax, cl
shr eax, 5
and eax, 3
xor ecx, ecx
cmp eax, 3
sete cl
xor edx, edx
test eax, eax
setg dl
mov eax, edx
test ecx, ecx
jne 0x682abe
cmp dword [esi + 0x80], ecx
jne 0x682b94
test eax, eax
jne 0x682ace
cmp dword [esi + 0x84], eax
jne 0x682b94
push eax
push ecx
push esi
call fcn.00657b50
add esp, 0xc
xor eax, eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x78], 7
mov ecx, dword [esi + 0x70]
cmp eax, ecx
jbe 0x682afd
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
add edi, ebp
push edi
push esi
call fcn.00657bb0
mov edx, dword [esp + 0x3c]
add dword [ebx], edx
mov ecx, dword [esi + 0x24]
sub dword [esi + 0x70], edx
add dword [esp + 0x38], edx
mov edi, dword [esi + 0x70]
sub ecx, ebp
sub dword [esi + 0x74], ecx
mov ebp, dword [esi + 0x74]
add esp, 0x18
test eax, eax
jne 0x682943
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
cmp eax, 3
je 0x682941
test edx, edx
jne 0x682b67
test ecx, ecx
jne 0x682b67
cmp eax, 4
jne 0x682b94
test ebp, ebp
jne 0x682b94
test edi, edi
jne 0x682b94
mov dword [esi + 0x78], ecx
mov ecx, dword [esp + 0x2c]
cmp dword [ecx], 4
jne 0x682b78
mov edx, ecx
mov dword [edx], 2
cmp dword [esi + 0x78], 8
jne 0x682950
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [eax], 1
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [eax], 2
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [ecx], 3
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [edx], 3
xor eax, eax
pop ebx
pop ecx
ret