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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x38c
mov edi, dword [ecx + 0x18]
mov dword [esp + 0x10], ecx
cmp edi, 3
ja 0x689ba8b0
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 4]
test eax, eax
jne 0x689ba698
or dword [esi + 0x18], 3
add esp, 0x38c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x54], eax
mov ecx, 0xc0
xor eax, eax
mov esi, dword [esp + 0x10]
lea edi, [esp + 0x80]
mov dword [esp + 0x5c], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x54]
mov edx, dword [esi]
lea ecx, [esp + 0x68]
mov dword [esp], eax
lea ebp, [esi + 0x18]
mov dword [esp + 0x58], edx
mov dword [esp + 0x60], 0
mov byte [esp + 0x64], 0
call fcn.689bb8f0
sub esp, 4
cmp byte [esp + 0x70], 0
je 0x689ba904
mov eax, dword [esp + 0x68]
cmp byte [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x84], eax
movzx eax, byte [esp + 0x70]
mov byte [esp + 0x88], al
je 0x689baabe
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x90], eax
movzx eax, byte [esp + 0x7c]
mov byte [esp + 0x94], al
lea eax, [esp + 0x54]
mov dword [esp], eax
call fcn.689bb740
sub esp, 4
movzx eax, byte [esp + 0x44]
test al, al
je 0x689bab35
lea ebx, [esp + 0x98]
mov esi, ebp
lea esi, [esi]
mov edx, dword [esp + 0x3c]
mov byte [ebx + 8], al
lea eax, [esp + 0x54]
lea ecx, [esp + 0x48]
add ebx, 0xc
mov dword [ebx - 0xc], edx
mov edx, dword [esp + 0x40]
mov dword [ebx - 8], edx
mov dword [esp], eax
call fcn.689bb740
sub esp, 4
mov edx, dword [esp + 0x48]
movzx eax, byte [esp + 0x50]
lea ecx, [esp + 0x380]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x4c]
mov byte [esp + 0x44], al
mov dword [esp + 0x40], edx
test al, al
je 0x689ba930
cmp ebx, ecx
jne 0x689ba768
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x18]
mov edx, ecx
mov dword [esp + 0x14], ecx
mov ecx, 0x40
and edx, 0xfffffffc
mov dword [edi + 0x18], edx
cmp edx, 3
jbe 0x689ba7dd
mov ecx, dword [edx]
add ecx, 0x40
mov dword [esp], ecx
mov ecx, esi
mov dword [esp + 4], 0
mov byte [esp + 0x20], al
call fcn.689bb0d0
sub esp, 8
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], esi
lea ebp, [esp + 0x80]
mov ecx, dword [eax + 0x18]
mov eax, dword [esp + 0x60]
add eax, eax
mov edx, dword [ecx]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
shl edx, 5
mov dword [esp + 0x18], eax
lea ebx, [ecx + edx + 8]
lea esi, [esi]
nop
mov edi, dword [esp + 0x14]
mov eax, dword [ebp + 4]
lea ecx, [ebx + 8]
mov dword [ebx], ecx
mov edx, dword [ebp]
lea esi, [eax + edi]
mov edi, dword [esp + 0x18]
sub esi, edi
movzx edi, byte [ebp + 8]
sar esi, 1
test eax, eax
jne 0x689ba852
test edx, edx
jne 0x689bab47
lea edx, [eax + edx*2]
mov dword [esp], eax
mov ecx, ebx
add ebp, 0xc
mov dword [esp + 4], edx
add ebx, 0x20
call fcn.689eaf60
mov eax, edi
mov dword [ebx - 4], esi
sub esp, 8
movzx edi, al
mov eax, dword [esp + 0x10]
mov dword [ebx - 8], edi
mov eax, dword [eax + 0x18]
add dword [eax], 1
lea eax, [esp + 0x380]
cmp ebp, eax
jne 0x689ba828
movzx eax, byte [esp + 0x20]
mov esi, dword [esp + 0x1c]
lea ebx, [esp + 0x80]
test al, al
jne 0x689ba768
jmp 0x689ba689
and edi, 0xfffffffc
mov esi, dword [edi]
lea ebx, [edi + 8]
test esi, esi
jle 0x689ba8f9
lea esi, [esi]
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x689ba8d5
mov dword [esp], eax
lea ecx, [ebx + 0x18]
call fcn.68961bf0
sub esp, 4
mov eax, dword [ebx]
lea edx, [ebx + 8]
cmp eax, edx
je 0x689ba8f1
mov edx, dword [ebx + 8]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.689fb090
add ebx, 0x20
sub esi, 1
jne 0x689ba8c0
mov dword [edi], 0
jmp 0x689ba67a
lea eax, [esp + 0x54]
lea ecx, [esp + 0x3c]
mov dword [esp], eax
call fcn.689bb740
sub esp, 4
movzx eax, byte [esp + 0x44]
lea ebx, [esp + 0x80]
test al, al
jne 0x689ba762
jmp 0x689ba689
cmp ebx, ecx
je 0x689ba7bb
lea eax, [esp + 0x80]
mov ebp, esi
cmp ebx, eax
je 0x689ba689
sub ebx, eax
cmp ebx, 0xc
je 0x689baae5
mov eax, ebx
sar eax, 2
imul eax, eax, 0xaaaaaaab
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x14], eax
and eax, 0xfffffffc
mov dword [esi + 0x18], eax
cmp eax, 3
ja 0x689bab12
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov ecx, ebp
mov dword [esp + 4], 1
call fcn.689bb0d0
sub esp, 8
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [edx]
shl eax, 5
lea eax, [edx + eax + 8]
test ebx, ebx
jle 0x689ba689
mov esi, dword [esp + 0x60]
mov ebp, eax
mov dword [esp + 0x14], 0
lea edi, [esp + 0x80]
add esi, esi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x28], esi
jmp 0x689baa2a
cmp edx, 1
jne 0x689baa9b
movzx edx, word [esi]
mov word [ebp + 8], dx
mov edx, 2
mov dword [ebp + 4], ecx
xor ecx, ecx
mov esi, dword [esp + 0x20]
add ebp, 0x20
mov word [eax + edx], cx
movzx eax, byte [esp + 0x18]
add edi, 0xc
add dword [esp + 0x14], 1
mov dword [ebp - 8], eax
mov eax, dword [esp + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x18]
add dword [eax], 1
mov eax, dword [esp + 0x14]
cmp eax, esi
jge 0x689ba689
mov esi, dword [edi + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebx, dword [edi]
add eax, esi
sub eax, ecx
sar eax, 1
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 8]
mov byte [esp + 0x18], al
lea eax, [ebp + 8]
mov dword [ebp], eax
test esi, esi
jne 0x689baa5b
test ebx, ebx
jne 0x689bab47
add ebx, ebx
mov edx, ebx
sar edx, 1
mov dword [esp + 0x48], edx
mov ecx, edx
cmp ebx, 0xe
jbe 0x689ba9d8
lea eax, [esp + 0x48]
mov dword [esp + 4], 0
mov ecx, ebp
mov dword [esp], eax
mov dword [esp + 0x2c], edx
call fcn.689ed440
sub esp, 8
mov dword [ebp], eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
mov dword [ebp + 8], ecx
test edx, edx
je 0x689baaaf
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x48]
mov eax, dword [ebp]
lea edx, [ecx + ecx]
jmp 0x689ba9ed
lea eax, [esp + 0x54]
lea ecx, [esp + 0x3c]
mov dword [esp], eax
call fcn.689bb740
sub esp, 4
movzx eax, byte [esp + 0x44]
lea ebx, [esp + 0x8c]
test al, al
jne 0x689ba762
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x18]
mov edx, eax
and edx, 0xfffffffc
cmp eax, 3
jbe 0x689bab1f
mov eax, dword [edx]
test eax, eax
je 0x689bab1f
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], 1
mov ebx, 0xc
mov dword [esi + 0x18], edx
jmp 0x689bab14
mov eax, dword [eax]
mov esi, dword [esp + 0x20]
add eax, esi
jmp 0x689ba981
movzx eax, byte [esp + 0x88]
mov esi, dword [esp + 0x10]
or eax, edx
mov dword [esi + 0x18], eax
jmp 0x689ba689
mov dword [esp + 0x20], 2
mov ebx, 0x18
jmp 0x689ba963
mov dword [esp], 0x68a1b488
call fcn.689fd180
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ecx, 0x68a0a1b4
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [ebp + 8]
call fcn.68968ac0
mov edx, eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x689baca5
lea edi, [ebp - 0x48]
lea esi, [ebp - 0x40]
xor edx, edx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], esi
mov word [ebp - 0x40], dx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.689f74d0
test al, al
je 0x689bacaa
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
cmp eax, esi
je 0x689bac08
mov edx, dword [ebp - 0x40]
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], cx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], ecx
cmp eax, ecx
je 0x689bac50
mov dword [ebx], eax
mov dword [ebx + 8], edx
mov dword [ebx + 4], edi
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [edi + edi + 2]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x4c], eax
mov dword [esp + 8], edx
mov dword [ebp - 0x50], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
lea ecx, [ebx + 8]
mov edx, dword [ebp - 0x50]
mov dword [ebx], ecx
cmp edx, 4
jae 0x689bac60
test edx, edx
je 0x689babf8
movzx eax, byte [ebp - 0x28]
mov byte [ecx], al
test dl, 2
je 0x689babf8
movzx eax, word [ebp + edx - 0x2a]
mov word [ecx + edx - 2], ax
jmp 0x689babf8
lea ecx, [ebx + 8]
lea edx, [edi + edi + 2]
mov dword [ebx], ecx
jmp 0x689bac2d
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp + edx - 0x2c]
mov dword [ecx + edx - 4], eax
lea eax, [ecx + 4]
mov esi, dword [ebp - 0x4c]
and eax, 0xfffffffc
sub ecx, eax
add edx, ecx
sub esi, ecx
and edx, 0xfffffffc
mov dword [ebp - 0x4c], esi
cmp edx, 4
jb 0x689babf8
and edx, 0xfffffffc
xor ecx, ecx
mov esi, dword [ebp - 0x4c]
mov esi, dword [esi + ecx]
mov dword [eax + ecx], esi
add ecx, 4
cmp ecx, edx
jb 0x689bac90
jmp 0x689babf8
call fcn.689fd120
jmp 0x689ff910
mov dword [esp], 0x18
call fcn.689fb170
mov esi, eax
call fcn.689e1900
mov dword [esp], str.Cannot_convert_character_sequence
lea ecx, [ebp - 0x30]
mov ebx, eax
call fcn.689ff260
push eax
lea eax, [ebp - 0x30]
mov ecx, esi
mov dword [esp + 4], 0x2a
mov dword [esp + 8], ebx
mov dword [esp], eax
call fcn.689b8240
sub esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.689e6660
mov dword [esp + 8], 0x689b8440
mov dword [esp + 4], 0x68a1e7d4
mov dword [esp], esi
call fcn.689fb6f0
mov ebx, eax
mov ecx, edi
call fcn.689ea920
mov dword [esp], ebx
call fcn.6894d7a0
lea ecx, [ebp - 0x30]
mov ebx, eax
call fcn.689e6660
mov dword [esp], esi
call fcn.689fb3e0
jmp 0x689ff973