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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x40]
lea ebp, [esi + 0x18]
push edi
jae 0x698c19
cmp eax, dword [esi + 0x3c]
jae 0x698c25
mov ecx, dword [esi]
push 0x453
call fcn.00666e00
mov ecx, dword [esi]
push ebp
call fcn.00667eb0
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
mov ebx, 1
je 0x698c3e
mov ebx, edi
mov eax, dword [esi + 0x40]
sub eax, dword [ebp]
cmp ebx, eax
jle 0x698c54
mov ecx, dword [esi]
push 0x453
call fcn.00666e00
mov ecx, dword [esi + 0x14]
push ebx
add ecx, 0x78
call fcn.0066cde0
test edi, edi
mov ecx, dword [esi + 0x14]
mov dword [ecx + 0xbc], edi
mov dword [esp + 0x10], 0
jle 0x698f74
lea esp, [esp]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x40]
lea edi, [esi + 0x18]
jae 0x698c90
cmp eax, dword [esi + 0x3c]
jae 0x698c9c
mov ecx, dword [esi]
push 0x453
call fcn.00666e00
mov ecx, dword [esi]
push edi
call fcn.00667eb0
mov edx, dword [edi]
mov ecx, dword [esi + 0x40]
mov ebx, eax
mov eax, edx
cmp eax, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
jae 0x698cbe
cmp eax, dword [esi + 0x3c]
jae 0x698cca
mov ecx, dword [esi]
push 0x453
call fcn.00666e00
mov ecx, dword [esi]
push edi
call fcn.00667eb0
cmp ebx, 1
jl 0x698cfa
mov eax, dword [edi]
cmp eax, dword [esi + 0x40]
jae 0x698ce3
cmp eax, dword [esi + 0x3c]
jae 0x698cef
mov ecx, dword [esi]
push 0x453
call fcn.00666e00
mov ecx, dword [esi]
push edi
call fcn.00667eb0
dec ebx
jne 0x698cd7
mov eax, dword [edi]
cmp eax, dword [esi + 0x40]
jae 0x698d06
cmp eax, dword [esi + 0x3c]
jae 0x698d12
mov ecx, dword [esi]
push 0x453
call fcn.00666e00
mov ecx, dword [esi]
push edi
call fcn.00667eb0
mov eax, dword [edi]
cmp eax, dword [esi + 0x3c]
jb 0x698d26
cmp eax, dword [esi + 0x40]
jb 0x698d32
mov ecx, dword [esi]
push 0x453
call fcn.00666e00
mov eax, dword [edi]
movzx ebx, byte [eax]
inc eax
test bl, 0x20
mov dword [esp + 0x1c], ebx
mov dword [edi], eax
jne 0x698d69
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
push 4
push 3
push 0x3c
call fcn.006b9500
test eax, eax
je 0x698d63
mov ecx, eax
call fcn.006ac5a0
mov ebp, eax
jmp 0x698d8d
xor eax, eax
mov ebp, eax
jmp 0x698d8d
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x698d7c
mov ecx, dword [esi]
push 0x437
call fcn.00666e00
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x10]
mov ebp, dword [ecx + edx*4]
or dword [ebp + 0x18], 0x8000000
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x20], eax
mov eax, dword [esi + 0x14]
mov edx, dword [ebp + 8]
cmp edx, eax
lea ecx, [ebp + 8]
mov dword [esp + 0x20], ebp
jne 0x698dad
test eax, eax
jne 0x698dad
mov dword [ecx], eax
jmp 0x698db7
push eax
push ecx
call fcn.006bb3a0
add esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0xc], eax
inc eax
mov dword [ebp + 0x1c], ecx
push eax
mov ecx, ebp
call fcn.0069add0
mov ecx, dword [ebp + 0x18]
or ecx, ebx
test bl, 8
mov dword [ebp + 0x18], ecx
je 0x698e52
mov eax, dword [edi]
cmp eax, dword [esi + 0x40]
jae 0x698de7
cmp eax, dword [esi + 0x3c]
jae 0x698df3
mov ecx, dword [esi]
push 0x453
call fcn.00666e00
mov ecx, dword [esi]
push edi
call fcn.00667eb0
mov ebx, eax
test ebx, ebx
mov dword [ebp + 0x10], ebx
jle 0x698e3a
mov dword [esp + 0x14], ebx
mov eax, dword [edi]
cmp eax, dword [esi + 0x40]
jae 0x698e14
cmp eax, dword [esi + 0x3c]
jae 0x698e20
mov ecx, dword [esi]
push 0x453
call fcn.00666e00
mov ecx, dword [esi]
push edi
call fcn.00667eb0
mov ecx, dword [edi]
mov eax, dword [esp + 0x14]
inc ecx
dec eax
mov dword [edi], ecx
mov dword [esp + 0x14], eax
jne 0x698e08
test ebx, ebx
je 0x698e42
cmp ebx, dword [esp + 0x18]
jle 0x698e4e
mov ecx, dword [esi]
push 0x453
call fcn.00666e00
mov ebx, dword [esp + 0x1c]
test bl, bl
jns 0x698e88
mov eax, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
jle 0x698e88
nop
mov eax, dword [edi]
cmp eax, dword [esi + 0x40]
jae 0x698e6c
cmp eax, dword [esi + 0x3c]
jae 0x698e78
mov ecx, dword [esi]
push 0x453
call fcn.00666e00
mov ecx, dword [esi]
push edi
call fcn.00667eb0
mov eax, dword [ebp + 0xc]
inc ebx
cmp ebx, eax
jl 0x698e60
mov edi, dword [esi + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [edi + 0x78]
add edi, 0x78
lea eax, [ebx + edx*4]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xc]
mov dl, byte [eax + 0x119]
mov ecx, ebp
and ecx, 0xfffffff8
test dl, dl
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
je 0x698f46
test ecx, ecx
je 0x698f46
mov edx, ebx
and edx, 0xfff
cmp edx, 0x10
mov eax, ebx
jne 0x698edf
and eax, 0xfffff000
movzx eax, byte [eax + 0xc]
and eax, 1
jmp 0x698f25
mov edx, ebx
and edx, 0xfffff000
mov ecx, dword [edx + 0xc]
sub eax, dword [edx + 0x2c]
movzx ebp, word [ecx + 0x30]
mov cl, byte [ecx + 0x32]
imul eax, ebp
mov edx, dword [edx + 0x24]
sar eax, cl
mov ecx, eax
mov ebp, eax
and ecx, 7
shl ecx, 2
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x1c]
sar ebp, 3
mov dword [esp + 0x18], eax
mov eax, dword [edx + ebp*4]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
and eax, edx
test eax, eax
je 0x698f46
push ecx
mov ecx, dword [esp + 0x18]
call fcn.006ba4e0
test eax, eax
je 0x698f46
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
push ebx
call fcn.006baed0
mov ecx, dword [esp + 0x24]
push ebp
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.006b9910
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 4]
inc eax
cmp eax, ecx
jbe 0x698f63
mov ecx, eax
mov dword [edi + 4], ecx
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
jl 0x698c80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret