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

Disassembly:
sub esp, 0x6c
push ebx
mov ebx, dword [esp + 0x74]
push ebp
push esi
push edi
mov eax, dword [ebx]
movzx ecx, byte [ebx + 0x2e]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], 0
mov ebp, dword [eax]
mov dword [esp + 0x50], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ebp
mov dword [esp + 0x28], ecx
cmp ecx, 1
jg 0x6892bb
mov edi, 1
jmp 0x6892c8
lea edi, [ecx - 2]
neg edi
sbb edi, edi
and edi, 5
add edi, 5
mov eax, dword [ebx + 8]
mov dword [esp + 0x48], edi
test eax, eax
je 0x6892e2
cmp word [esp + 0x84], 0
je 0x6892e2
mov esi, dword [eax]
jmp 0x6892e4
xor esi, esi
lea eax, [ecx + 8]
mov dword [esp + 0x30], esi
imul eax, edi
lea eax, [esi + eax*4]
add eax, eax
cdq
push edx
push eax
push ebp
call fcn.006478f0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x2c], edx
test edx, edx
jne 0x689314
pop edi
pop esi
pop ebp
lea eax, [edx + 7]
pop ebx
add esp, 0x6c
ret
mov eax, edi
mov ebp, edx
shl eax, 5
lea ecx, [eax + edx]
mov dword [esp + 0x1c], ebp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [esp + 0x58], ecx
mov dword [ecx + 0x1c], 0
add ecx, eax
lea eax, [edi + edi]
test eax, eax
jle 0x689380
mov esi, dword [esp + 0x28]
shl esi, 2
add edx, 0x18
mov dword [edx], ecx
lea edx, [edx + 0x20]
dec eax
add ecx, esi
test eax, eax
jg 0x689370
mov esi, dword [esp + 0x30]
test esi, esi
je 0x689397
lea eax, [esi + esi]
mov dword [esp + 0x60], ecx
push eax
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0x84]
cmp eax, 0x30
jb 0x6893ab
mov eax, 0x30
mov edi, dword [esp + 0x58]
mov word [edi + 0x10], ax
mov eax, 1
mov dword [esp + 0x5c], eax
test esi, esi
je 0x6893d6
cmp dword [esp + 0x28], 0
jle 0x6893cc
or eax, 0xffffffff
jmp 0x6893ce
mov eax, esi
mov byte [edi + 0x16], al
mov eax, 1
xor edx, edx
mov dword [esp + 0x34], edx
cmp dword [esp + 0x28], edx
jle 0x6899c1
mov esi, dword [esp + 0x28]
lea ebx, [ebx]
xor ecx, ecx
mov dword [esp + 0x18], ecx
test eax, eax
jle 0x68989e
add edi, 0x10
mov dword [esp + 0x20], edi
mov ebx, dword [ebx + 0x3c]
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x689879
mov al, byte [edi + 6]
mov edx, dword [edi - 0x10]
mov ecx, edx
mov esi, dword [edi - 0xc]
not ecx
and ecx, dword [ebx]
mov byte [esp + 0x13], al
lea eax, [edi - 0x10]
mov dword [esp + 0x44], eax
mov eax, esi
not eax
mov dword [esp + 0x74], 0
and eax, dword [ebx + 4]
or ecx, eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], esi
jne 0x68990c
mov ebp, dword [ebx + 8]
mov ecx, edx
mov eax, esi
and ecx, ebp
and eax, dword [ebx + 0xc]
or ecx, eax
jne 0x689903
test dword [ebx + 0x24], 0x4000
je 0x68947c
cmp word [edi], 0xa
jl 0x689903
mov edx, dword [esp + 0x24]
movzx ebx, word [edi]
mov ax, word [edx + 0x14]
movzx edx, word [edx + 0x12]
add ax, bx
movzx ecx, ax
cmp dx, cx
jl 0x6894c1
movsx esi, cx
movsx ecx, dx
lea eax, [esi + 0x31]
cmp ecx, eax
jle 0x6894a7
mov esi, edx
jmp 0x6894ed
lea eax, [esi + 0x1f]
cmp ecx, eax
jle 0x6894b3
lea eax, [edx + 1]
jmp 0x6894ea
sub ecx, esi
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add ax, dx
jmp 0x6894ea
movsx esi, dx
movsx edx, cx
lea eax, [esi + 0x31]
cmp edx, eax
jle 0x6894d2
mov esi, ecx
jmp 0x6894ed
lea eax, [esi + 0x1f]
cmp edx, eax
jle 0x6894de
lea eax, [ecx + 1]
jmp 0x6894ea
sub edx, esi
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, cx
movzx esi, ax
movzx ecx, word [edi + 4]
mov di, si
mov dword [esp + 0x14], esi
movsx edx, cx
cmp di, cx
jl 0x68952b
movsx ecx, di
lea eax, [edx + 0x31]
cmp ecx, eax
jg 0x68955b
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x689514
inc esi
jmp 0x689554
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add di, ax
mov word [esp + 0x14], di
mov esi, dword [esp + 0x14]
jmp 0x68955b
movsx esi, di
lea eax, [esi + 0x31]
cmp edx, eax
jle 0x689539
mov esi, ecx
jmp 0x689554
lea eax, [esi + 0x1f]
cmp edx, eax
jle 0x689545
lea eax, [ecx + 1]
jmp 0x689551
sub edx, esi
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, cx
movzx esi, ax
mov dword [esp + 0x14], esi
mov di, si
mov eax, dword [esp + 0x24]
or dword [esp + 0x38], ebp
mov ax, word [eax + 0x16]
add ax, bx
mov ebx, dword [esp + 0x24]
movzx eax, ax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
or eax, dword [ebx + 0xc]
mov dword [esp + 0x3c], eax
mov al, byte [esp + 0x13]
test al, al
jns 0x6895c3
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x74]
push eax
push ebx
push dword [esp + 0x3c]
movzx eax, word [ecx + 0x2c]
push eax
push dword [esp + 0x54]
push dword [ecx + 8]
push ecx
call fcn.00688b10
mov edx, dword [esp + 0x90]
add esp, 0x1c
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x13], al
mov dword [esp + 0x64], edx
jmp 0x6895d1
mov edx, dword [esp + 0x20]
mov ecx, dword [edx - 8]
mov dword [esp + 0x64], ecx
mov ecx, dword [edx - 4]
mov dword [esp + 0x68], ecx
test al, al
js 0x6896db
movsx ecx, al
mov eax, dword [esp + 0x30]
cmp ecx, eax
jge 0x6896db
mov edx, dword [esp + 0x60]
cmp word [edx + ecx*2], 0
lea ebp, [edx + ecx*2]
jne 0x689672
mov edx, dword [esp + 0x84]
sub eax, ecx
imul eax, eax, 0x64
movzx ebx, dx
cdq
idiv dword [esp + 0x30]
cdq
push edx
push eax
call fcn.0065ad30
mov edx, dword [esp + 0x8c]
add esp, 8
lea ecx, [edx - 0x32]
add ax, cx
mov ecx, 0x4000
movzx eax, ax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
test word [eax + 0x2c], cx
je 0x68964a
movzx eax, word [eax + 0x14]
cmp ax, dx
jge 0x68964a
mov ebx, eax
cmp bx, 0xa
jg 0x689654
xor eax, eax
jmp 0x689666
movsx eax, bx
cdq
push edx
push eax
call fcn.0065ad30
cwde
add esp, 8
sub eax, 0x21
add eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov word [ebp], ax
movzx ecx, word [ebp]
movsx edx, cx
cmp di, cx
jl 0x6896ad
movsx ecx, di
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x68968d
movzx edx, di
jmp 0x6896e8
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x68969c
lea eax, [esi + 1]
movzx edx, ax
jmp 0x6896e8
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add ax, di
movzx edx, ax
jmp 0x6896e8
movsx esi, di
lea eax, [esi + 0x31]
cmp edx, eax
jle 0x6896bb
mov edx, ecx
jmp 0x6896e8
lea eax, [esi + 0x1f]
cmp edx, eax
jle 0x6896ca
lea eax, [ecx + 1]
movzx edx, ax
jmp 0x6896e8
sub edx, esi
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, cx
movzx edx, ax
jmp 0x6896e8
sub esi, 2
movzx edx, di
mov dword [esp + 0x14], esi
mov di, si
mov ebp, dword [esp + 0x1c]
xor ecx, ecx
mov esi, ebp
cmp dword [esp + 0x18], ecx
jle 0x689726
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov edi, edi
cmp dword [esi], ebp
jne 0x68971a
mov eax, dword [esp + 0x3c]
cmp dword [esi + 4], eax
jne 0x689716
mov al, byte [esi + 0x16]
xor al, byte [esp + 0x13]
jns 0x689750
mov eax, dword [esp + 0x18]
inc ecx
add esi, 0x20
cmp ecx, eax
jl 0x689700
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x48]
jl 0x689784
mov esi, dword [esp + 0x54]
cmp dx, si
jg 0x689915
jne 0x68974a
cmp di, word [esp + 0x50]
jge 0x689915
mov esi, dword [esp + 0x4c]
jmp 0x68978b
cmp ecx, dword [esp + 0x18]
jge 0x689722
movzx eax, word [esi + 0x12]
cmp ax, dx
jl 0x68985a
mov ebp, dword [esp + 0x40]
jne 0x689794
movzx eax, word [esi + 0x10]
cmp ax, bp
jl 0x68985a
jne 0x689794
cmp word [esi + 0x14], di
jle 0x68985a
jmp 0x689794
mov esi, ecx
inc ecx
mov dword [esp + 0x18], ecx
shl esi, 5
add esi, ebp
mov ebp, dword [esp + 0x40]
mov ecx, dword [ebx + 8]
mov eax, dword [esp + 0x44]
or ecx, dword [eax]
mov eax, dword [ebx + 0xc]
mov ebx, dword [esp + 0x44]
or eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esi + 0xc], eax
mov al, byte [esp + 0x13]
mov byte [esi + 0x16], al
mov eax, dword [esp + 0x34]
mov word [esi + 0x14], di
mov dword [esi], ecx
mov word [esi + 0x10], bp
lea edi, [eax*4]
mov word [esi + 0x12], dx
mov eax, dword [esp + 0x20]
push edi
push dword [eax + 8]
push dword [esi + 0x18]
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x18]
add esp, 0xc
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov dword [edi + eax], ebx
mov edi, dword [esp + 0x48]
cmp ecx, edi
jl 0x68985e
mov eax, dword [esp + 0x1c]
mov ecx, 1
mov dword [esp + 0x4c], 0
movzx esi, word [eax + 0x12]
movzx ebp, word [eax + 0x10]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebp
cmp edi, ecx
jle 0x68985a
add eax, 0x32
lea esp, [esp]
movzx edx, word [eax]
cmp dx, si
jg 0x689840
jne 0x68984a
cmp word [eax + 2], bp
jle 0x68984a
movzx ebp, word [eax + 2]
mov esi, edx
mov dword [esp + 0x4c], ecx
inc ecx
add eax, 0x20
cmp ecx, edi
jl 0x689830
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], esi
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [ebx + 0x34]
mov dword [esp + 0x24], ebx
test ebx, ebx
jne 0x689414
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x80]
add edi, 0x20
dec eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x5c], eax
jne 0x689405
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x28]
mov eax, ebp
mov dword [esp + 0x1c], edi
mov ebp, edi
inc edx
mov dword [esp + 0x34], edx
mov edi, eax
mov dword [esp + 0x58], edi
mov eax, ecx
mov dword [esp + 0x5c], eax
cmp edx, esi
jl 0x6893f0
test ecx, ecx
jne 0x6899c1
push str.no_query_solution
push dword [esp + 0x70]
call fcn.00649670
mov ecx, dword [esp + 0x78]
add esp, 8
test ecx, ecx
je 0x68994d
cmp dword [ecx + 0x1d0], 0
je 0x68991e
push dword [esp + 0x2c]
push ecx
call fcn.006311f0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov ecx, dword [esp + 0x18]
jmp 0x689862
mov ecx, dword [esp + 0x18]
jmp 0x689866
mov edi, dword [esp + 0x20]
jmp 0x689866
mov ebx, dword [esp + 0x2c]
cmp ebx, dword [ecx + 0x128]
jb 0x689951
cmp ebx, dword [ecx + 0x12c]
jae 0x689951
mov eax, dword [ecx + 0x124]
pop edi
pop esi
mov dword [ebx], eax
mov eax, 1
pop ebp
mov dword [ecx + 0x124], ebx
pop ebx
add esp, 0x6c
ret
mov ebx, dword [esp + 0x2c]
cmp dword [0xb26600], 0
je 0x6899aa
mov eax, dword [0xb2e130]
test eax, eax
je 0x68996d
push eax
call dword [0xb2665c]
add esp, 4
push ebx
call dword [0xb26638]
sub dword [0xb2df80], eax
dec dword [0xb2dfa4]
push ebx
call dword [0xb26630]
mov eax, dword [0xb2e130]
add esp, 8
test eax, eax
je 0x6899b4
push eax
call dword [0xb26664]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
push ebx
call dword [0xb26630]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c
ret
cmp eax, 1
jle 0x6899e2
lea ecx, [edi + 0x20]
lea edx, [eax - 1]
lea esp, [esp]
mov ax, word [edi + 0x12]
cmp ax, word [ecx + 0x12]
jle 0x6899dc
mov edi, ecx
add ecx, 0x20
dec edx
jne 0x6899d0
mov ebp, dword [esp + 0x28]
xor esi, esi
test ebp, ebp
jle 0x689a1b
lea edx, [ebx + 0x31c]
mov eax, dword [edi + 0x18]
lea edx, [edx + 0x50]
mov eax, dword [eax + esi*4]
inc esi
mov dword [edx - 0x3c], eax
mov al, byte [eax + 0x10]
mov byte [edx - 0x50], al
movzx eax, al
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 4]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 0x38]
mov dword [edx - 0x78], eax
cmp esi, ebp
jl 0x6899f2
movzx eax, word [ebx + 0x2c]
test eax, 0x100
je 0x689a6b
test al, al
js 0x689a6b
cmp byte [ebx + 0x33], 0
jne 0x689a6b
cmp word [esp + 0x84], 0
je 0x689a6b
lea eax, [esp + 0x74]
push eax
mov eax, dword [edi + 0x18]
push dword [eax + ebp*4 - 4]
lea eax, [ebp - 1]
push eax
push pe_nt_image_headers32
push edi
push dword [ebx + 0xc]
push ebx
call fcn.00688b10
movsx ecx, al
add esp, 0x1c
mov eax, dword [ebx + 0xc]
cmp ecx, dword [eax]
jne 0x689a6b
mov byte [ebx + 0x33], 2
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x689b77
test byte [ebx + 0x2c], 0x80
je 0x689a91
movsx eax, byte [edi + 0x16]
cmp eax, dword [ecx]
jne 0x689b17
mov byte [ebx + 0x33], 2
jmp 0x689b17
mov al, byte [edi + 0x16]
mov byte [ebx + 0x2f], al
cmp byte [ebx + 0x2f], 0
mov eax, dword [edi + 8]
mov dword [ebx + 0x40], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x44], eax
jg 0x689b17
mov byte [ebx + 0x2f], 0
test ebp, ebp
jle 0x689b17
mov eax, dword [edi + 0x18]
mov edx, dword [eax + ebp*4 - 4]
mov eax, dword [edx + 0x24]
test eax, 0x1000
jne 0x689b17
and eax, 0x104
cmp eax, 0x104
je 0x689b17
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0
push eax
push edx
lea eax, [ebp - 1]
mov dword [esp + 0x80], 0
push eax
push 0x800
push edi
push ecx
push ebx
call fcn.00688b10
mov ecx, dword [ebx + 8]
add esp, 0x1c
movsx eax, al
cmp eax, dword [ecx]
jne 0x689b17
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x40], eax
mov eax, dword [esp + 0x78]
mov byte [ebx + 0x34], 1
mov dword [ebx + 0x44], eax
mov eax, 0x200
test word [ebx + 0x2c], ax
je 0x689b77
movsx eax, byte [ebx + 0x2f]
cmp eax, dword [ecx]
jne 0x689b77
test ebp, ebp
jle 0x689b77
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0
push eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x7c], 0
push dword [eax + ebp*4 - 4]
lea eax, [ebp - 1]
push eax
push 0
push edi
push ecx
push ebx
call fcn.00688b10
movsx ecx, al
add esp, 0x1c
mov eax, dword [ebx + 8]
cmp ecx, dword [eax]
jne 0x689b77
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x40], eax
mov eax, dword [esp + 0x78]
mov byte [ebx + 0x30], 1
mov dword [ebx + 0x44], eax
mov ax, word [edi + 0x10]
mov ecx, dword [esp + 0x70]
mov word [ebx + 0x48], ax
test ecx, ecx
je 0x689bd3
cmp dword [ecx + 0x1d0], 0
je 0x689ba7
push dword [esp + 0x2c]
push ecx
call fcn.006311f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov ebx, dword [esp + 0x2c]
cmp ebx, dword [ecx + 0x128]
jb 0x689bd7
cmp ebx, dword [ecx + 0x12c]
jae 0x689bd7
mov eax, dword [ecx + 0x124]
pop edi
pop esi
mov dword [ebx], eax
xor eax, eax
pop ebp
mov dword [ecx + 0x124], ebx
pop ebx
add esp, 0x6c
ret
mov ebx, dword [esp + 0x2c]
cmp dword [0xb26600], 0
je 0x689c2d
mov eax, dword [0xb2e130]
test eax, eax
je 0x689bf3
push eax
call dword [0xb2665c]
add esp, 4
push ebx
call dword [0xb26638]
sub dword [0xb2df80], eax
dec dword [0xb2dfa4]
push ebx
call dword [0xb26630]
mov eax, dword [0xb2e130]
add esp, 8
test eax, eax
je 0x689c37
push eax
call dword [0xb26664]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
push ebx
call dword [0xb26630]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret