Function at 0x697c00
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 0x697c19
cmp eax, dword [esi + 0x3c]
jae 0x697c25
mov ecx, dword [esi]
push 0x453
call fcn.00665e00
mov ecx, dword [esi]
push ebp
call fcn.00666eb0
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
mov ebx, 1
je 0x697c3e
mov ebx, edi
mov eax, dword [esi + 0x40]
sub eax, dword [ebp]
cmp ebx, eax
jle 0x697c54
mov ecx, dword [esi]
push 0x453
call fcn.00665e00
mov ecx, dword [esi + 0x14]
push ebx
add ecx, 0x78
call fcn.0066bde0
test edi, edi
mov ecx, dword [esi + 0x14]
mov dword [ecx + 0xbc], edi
mov dword [esp + 0x10], 0
jle 0x697f74
lea esp, [esp]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x40]
lea edi, [esi + 0x18]
jae 0x697c90
cmp eax, dword [esi + 0x3c]
jae 0x697c9c
mov ecx, dword [esi]
push 0x453
call fcn.00665e00
mov ecx, dword [esi]
push edi
call fcn.00666eb0
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 0x697cbe
cmp eax, dword [esi + 0x3c]
jae 0x697cca
mov ecx, dword [esi]
push 0x453
call fcn.00665e00
mov ecx, dword [esi]
push edi
call fcn.00666eb0
cmp ebx, 1
jl 0x697cfa
mov eax, dword [edi]
cmp eax, dword [esi + 0x40]
jae 0x697ce3
cmp eax, dword [esi + 0x3c]
jae 0x697cef
mov ecx, dword [esi]
push 0x453
call fcn.00665e00
mov ecx, dword [esi]
push edi
call fcn.00666eb0
dec ebx
jne 0x697cd7
mov eax, dword [edi]
cmp eax, dword [esi + 0x40]
jae 0x697d06
cmp eax, dword [esi + 0x3c]
jae 0x697d12
mov ecx, dword [esi]
push 0x453
call fcn.00665e00
mov ecx, dword [esi]
push edi
call fcn.00666eb0
mov eax, dword [edi]
cmp eax, dword [esi + 0x3c]
jb 0x697d26
cmp eax, dword [esi + 0x40]
jb 0x697d32
mov ecx, dword [esi]
push 0x453
call fcn.00665e00
mov eax, dword [edi]
movzx ebx, byte [eax]
inc eax
test bl, 0x20
mov dword [esp + 0x1c], ebx
mov dword [edi], eax
jne 0x697d69
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
push 4
push 3
push 0x3c
call fcn.006b8500
test eax, eax
je 0x697d63
mov ecx, eax
call fcn.006ab5a0
mov ebp, eax
jmp 0x697d8d
xor eax, eax
mov ebp, eax
jmp 0x697d8d
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x697d7c
mov ecx, dword [esi]
push 0x437
call fcn.00665e00
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 0x697dad
test eax, eax
jne 0x697dad
mov dword [ecx], eax
jmp 0x697db7
push eax
push ecx
call fcn.006ba3a0
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.00699dd0
mov ecx, dword [ebp + 0x18]
or ecx, ebx
test bl, 8
mov dword [ebp + 0x18], ecx
je 0x697e52
mov eax, dword [edi]
cmp eax, dword [esi + 0x40]
jae 0x697de7
cmp eax, dword [esi + 0x3c]
jae 0x697df3
mov ecx, dword [esi]
push 0x453
call fcn.00665e00
mov ecx, dword [esi]
push edi
call fcn.00666eb0
mov ebx, eax
test ebx, ebx
mov dword [ebp + 0x10], ebx
jle 0x697e3a
mov dword [esp + 0x14], ebx
mov eax, dword [edi]
cmp eax, dword [esi + 0x40]
jae 0x697e14
cmp eax, dword [esi + 0x3c]
jae 0x697e20
mov ecx, dword [esi]
push 0x453
call fcn.00665e00
mov ecx, dword [esi]
push edi
call fcn.00666eb0
mov ecx, dword [edi]
mov eax, dword [esp + 0x14]
inc ecx
dec eax
mov dword [edi], ecx
mov dword [esp + 0x14], eax
jne 0x697e08
test ebx, ebx
je 0x697e42
cmp ebx, dword [esp + 0x18]
jle 0x697e4e
mov ecx, dword [esi]
push 0x453
call fcn.00665e00
mov ebx, dword [esp + 0x1c]
test bl, bl
jns 0x697e88
mov eax, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
jle 0x697e88
nop
mov eax, dword [edi]
cmp eax, dword [esi + 0x40]
jae 0x697e6c
cmp eax, dword [esi + 0x3c]
jae 0x697e78
mov ecx, dword [esi]
push 0x453
call fcn.00665e00
mov ecx, dword [esi]
push edi
call fcn.00666eb0
mov eax, dword [ebp + 0xc]
inc ebx
cmp ebx, eax
jl 0x697e60
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 0x697f46
test ecx, ecx
je 0x697f46
mov edx, ebx
and edx, 0xfff
cmp edx, 0x10
mov eax, ebx
jne 0x697edf
and eax, 0xfffff000
movzx eax, byte [eax + 0xc]
and eax, 1
jmp 0x697f25
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 0x697f46
push ecx
mov ecx, dword [esp + 0x18]
call fcn.006b94e0
test eax, eax
je 0x697f46
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
push ebx
call fcn.006b9ed0
mov ecx, dword [esp + 0x24]
push ebp
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.006b8910
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 4]
inc eax
cmp eax, ecx
jbe 0x697f63
mov ecx, eax
mov dword [edi + 4], ecx
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
jl 0x697c80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret