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

Disassembly:
sub esp, 0x6c
push ebx
mov ebx, dword [esp + 0x74]
push esi
push edi
mov dword [esp + 0x4c], 0
mov eax, dword [ebx]
movzx edx, byte [ebx + 0x30]
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov ecx, dword [eax]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x20], edx
cmp edx, 1
jg 0x6c4b2a
mov edi, 1
jmp 0x6c4b37
lea edi, [edx - 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 0x6c4b51
cmp word [esp + 0x80], 0
je 0x6c4b51
mov esi, dword [eax]
jmp 0x6c4b53
xor esi, esi
lea eax, [edx + 8]
mov dword [esp + 0x30], esi
imul eax, edi
lea eax, [esi + eax*4]
add eax, eax
cdq
push edx
push eax
push ecx
call fcn.00677570
mov edx, eax
add esp, 0xc
mov dword [esp + 0x2c], edx
test edx, edx
jne 0x6c4b82
pop edi
pop esi
lea eax, [edx + 7]
pop ebx
add esp, 0x6c
ret
mov eax, edi
shl eax, 5
lea ecx, [eax + edx]
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 + 0x28], ecx
mov dword [ecx + 0x1c], 0
add ecx, eax
push ebp
lea eax, [edi + edi]
mov ebp, edx
mov dword [esp + 0x1c], ebp
test eax, eax
jle 0x6c4bf0
mov esi, dword [esp + 0x24]
shl esi, 2
add edx, 0x18
nop
mov dword [edx], ecx
lea edx, [edx + 0x20]
dec eax
add ecx, esi
test eax, eax
jg 0x6c4be0
mov esi, dword [esp + 0x34]
test esi, esi
je 0x6c4c07
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 + 0x88]
cmp eax, 0x30
jb 0x6c4c1b
mov eax, 0x30
mov edi, dword [esp + 0x2c]
mov word [edi + 0x10], ax
mov eax, 1
mov dword [esp + 0x5c], eax
test esi, esi
je 0x6c4c46
cmp dword [esp + 0x24], 0
jle 0x6c4c3c
or eax, 0xffffffff
jmp 0x6c4c3e
mov eax, esi
mov byte [edi + 0x16], al
mov eax, 1
xor edx, edx
mov dword [esp + 0x38], edx
cmp dword [esp + 0x24], edx
jle 0x6c5298
mov esi, dword [esp + 0x24]
lea ebx, [ebx]
xor ecx, ecx
mov dword [esp + 0x18], ecx
test eax, eax
jle 0x6c514e
add edi, 0x10
mov dword [esp + 0x20], edi
mov ebx, dword [ebx + 0x44]
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x6c5129
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 + 0x48], 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 + 0x3c], edx
mov dword [esp + 0x40], esi
jne 0x6c51c0
mov ebp, dword [ebx + 8]
mov ecx, edx
mov eax, esi
and ecx, ebp
and eax, dword [ebx + 0xc]
or ecx, eax
jne 0x6c51b7
test dword [ebx + 0x2c], 0x4000
je 0x6c4cec
cmp word [edi], 3
jl 0x6c51b7
mov edx, dword [esp + 0x28]
movzx ebx, word [edi]
mov ax, word [edx + 0x14]
movzx edx, word [edx + 0x12]
add ax, bx
movzx ecx, ax
cmp dx, cx
jl 0x6c4d31
movsx esi, cx
movsx ecx, dx
lea eax, [esi + 0x31]
cmp ecx, eax
jle 0x6c4d17
mov esi, edx
jmp 0x6c4d5d
lea eax, [esi + 0x1f]
cmp ecx, eax
jle 0x6c4d23
lea eax, [edx + 1]
jmp 0x6c4d5a
sub ecx, esi
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add ax, dx
jmp 0x6c4d5a
movsx esi, dx
movsx edx, cx
lea eax, [esi + 0x31]
cmp edx, eax
jle 0x6c4d42
mov esi, ecx
jmp 0x6c4d5d
lea eax, [esi + 0x1f]
cmp edx, eax
jle 0x6c4d4e
lea eax, [ecx + 1]
jmp 0x6c4d5a
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 0x6c4d9b
movsx ecx, di
lea eax, [edx + 0x31]
cmp ecx, eax
jg 0x6c4dcb
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x6c4d84
inc esi
jmp 0x6c4dc4
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 0x6c4dcb
movsx esi, di
lea eax, [esi + 0x31]
cmp edx, eax
jle 0x6c4da9
mov esi, ecx
jmp 0x6c4dc4
lea eax, [esi + 0x1f]
cmp edx, eax
jle 0x6c4db5
lea eax, [ecx + 1]
jmp 0x6c4dc1
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 + 0x28]
or dword [esp + 0x3c], ebp
mov ax, word [eax + 0x16]
add ax, bx
mov ebx, dword [esp + 0x28]
movzx eax, ax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
or eax, dword [ebx + 0xc]
mov dword [esp + 0x40], eax
mov al, byte [esp + 0x13]
test al, al
jns 0x6c4e33
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x74]
push eax
push ebx
push dword [esp + 0x40]
movzx eax, word [ecx + 0x2c]
push eax
push dword [esp + 0x58]
push dword [ecx + 8]
push ecx
call fcn.006c4230
mov edx, dword [esp + 0x90]
add esp, 0x1c
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x13], al
mov dword [esp + 0x64], edx
jmp 0x6c4e41
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 0x6c4f8c
mov edx, dword [esp + 0x34]
movsx ecx, al
cmp ecx, edx
jge 0x6c4f8c
mov eax, dword [esp + 0x60]
cmp word [eax + ecx*2], 0
lea ebp, [eax + ecx*2]
jne 0x6c4eff
mov eax, dword [esp + 0x84]
movzx ebx, ax
mov eax, edx
sub eax, ecx
imul eax, eax, 0x64
cdq
idiv dword [esp + 0x34]
cdq
push edx
push eax
call fcn.0068db70
mov edx, dword [esp + 0x8c]
add esp, 8
lea ecx, [edx - 0x32]
add ax, cx
movzx eax, ax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
movzx ecx, word [eax + 0x2c]
test ecx, 0x4000
je 0x6c4ec3
movzx eax, word [eax + 0x2e]
cmp ax, dx
jge 0x6c4ec3
mov ebx, eax
jmp 0x6c4ed7
test ecx, 0x100
je 0x6c4ed7
cmp dx, 0xa
jle 0x6c4edd
lea eax, [edx - 0xa]
movzx ebx, ax
cmp bx, 0xa
jg 0x6c4ee1
xor eax, eax
jmp 0x6c4ef3
movsx eax, bx
cdq
push edx
push eax
call fcn.0068db70
cwde
add esp, 8
sub eax, 0x21
add eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov word [ebp], ax
movzx ecx, word [ebp]
movsx edx, cx
cmp di, cx
jl 0x6c4f4c
movsx ecx, di
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x6c4f20
movzx eax, di
add eax, 5
movzx edx, ax
jmp 0x6c4f99
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x6c4f35
lea eax, [esi + 1]
movzx eax, ax
add eax, 5
movzx edx, ax
jmp 0x6c4f99
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add ax, di
movzx eax, ax
add eax, 5
movzx edx, ax
jmp 0x6c4f99
movsx esi, di
lea eax, [esi + 0x31]
cmp edx, eax
jle 0x6c4f60
mov eax, ecx
add eax, 5
movzx edx, ax
jmp 0x6c4f99
lea eax, [esi + 0x1f]
cmp edx, eax
jle 0x6c4f75
lea eax, [ecx + 1]
movzx eax, ax
add eax, 5
movzx edx, ax
jmp 0x6c4f99
sub edx, esi
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, cx
movzx eax, ax
add eax, 5
movzx edx, ax
jmp 0x6c4f99
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 0x6c4fd6
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
nop
cmp dword [esi], ebp
jne 0x6c4fca
mov eax, dword [esp + 0x40]
cmp dword [esi + 4], eax
jne 0x6c4fc6
mov al, byte [esi + 0x16]
xor al, byte [esp + 0x13]
jns 0x6c5000
mov eax, dword [esp + 0x18]
inc ecx
add esi, 0x20
cmp ecx, eax
jl 0x6c4fb0
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x4c]
jl 0x6c5034
mov esi, dword [esp + 0x58]
cmp dx, si
jg 0x6c51c9
jne 0x6c4ffa
cmp di, word [esp + 0x54]
jge 0x6c51c9
mov esi, dword [esp + 0x50]
jmp 0x6c503b
cmp ecx, dword [esp + 0x18]
jge 0x6c4fd2
movzx eax, word [esi + 0x12]
cmp ax, dx
jl 0x6c510a
mov ebp, dword [esp + 0x44]
jne 0x6c5044
movzx eax, word [esi + 0x10]
cmp ax, bp
jl 0x6c510a
jne 0x6c5044
cmp word [esi + 0x14], di
jle 0x6c510a
jmp 0x6c5044
mov esi, ecx
inc ecx
mov dword [esp + 0x18], ecx
shl esi, 5
add esi, ebp
mov ebp, dword [esp + 0x44]
mov ecx, dword [ebx + 8]
mov eax, dword [esp + 0x48]
or ecx, dword [eax]
mov eax, dword [ebx + 0xc]
mov ebx, dword [esp + 0x48]
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 + 0x38]
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 + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [edi + eax], ebx
mov edi, dword [esp + 0x4c]
cmp ecx, edi
jl 0x6c510e
mov eax, dword [esp + 0x1c]
mov ecx, 1
mov dword [esp + 0x50], 0
movzx esi, word [eax + 0x12]
movzx ebp, word [eax + 0x10]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebp
cmp edi, ecx
jle 0x6c510a
add eax, 0x32
lea esp, [esp]
movzx edx, word [eax]
cmp dx, si
jg 0x6c50f0
jne 0x6c50fa
cmp word [eax + 2], bp
jle 0x6c50fa
movzx ebp, word [eax + 2]
mov esi, edx
mov dword [esp + 0x50], ecx
inc ecx
add eax, 0x20
cmp ecx, edi
jl 0x6c50e0
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], esi
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [ebx + 0x3c]
mov dword [esp + 0x28], ebx
test ebx, ebx
jne 0x6c4c84
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 0x6c4c75
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov eax, ebp
mov dword [esp + 0x1c], edi
mov ebp, edi
inc edx
mov dword [esp + 0x38], edx
mov edi, eax
mov dword [esp + 0x2c], edi
mov eax, ecx
mov dword [esp + 0x5c], eax
cmp edx, esi
jl 0x6c4c60
test ecx, ecx
jne 0x6c5298
push str.no_query_solution
push dword [esp + 0x70]
call fcn.006798b0
mov ecx, dword [esp + 0x78]
add esp, 8
test ecx, ecx
je 0x6c5224
cmp dword [ecx + 0x210], 0
je 0x6c51d2
push dword [esp + 0x30]
push ecx
call fcn.0065b6a0
add esp, 8
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
mov ecx, dword [esp + 0x18]
jmp 0x6c5112
mov ecx, dword [esp + 0x18]
jmp 0x6c5116
mov edi, dword [esp + 0x20]
jmp 0x6c5116
mov ebx, dword [esp + 0x30]
cmp ebx, dword [ecx + 0x164]
jae 0x6c5228
cmp ebx, dword [ecx + 0x15c]
jb 0x6c5201
mov eax, dword [ecx + 0x158]
pop ebp
pop edi
mov dword [ebx], eax
mov eax, 1
pop esi
mov dword [ecx + 0x158], ebx
pop ebx
add esp, 0x6c
ret
cmp ebx, dword [ecx + 0x160]
jb 0x6c5228
mov eax, dword [ecx + 0x150]
pop ebp
pop edi
mov dword [ebx], eax
mov eax, 1
pop esi
mov dword [ecx + 0x150], ebx
pop ebx
add esp, 0x6c
ret
mov ebx, dword [esp + 0x30]
cmp dword [0x9a5720], 0
je 0x6c5281
mov eax, dword [0x9b3ad8]
test eax, eax
je 0x6c5244
push eax
call dword [0x9a5770]
add esp, 4
push ebx
call dword [0x9a574c]
sub dword [0x9b3a60], eax
dec dword [0x9b3a84]
push ebx
call dword [0x9a5744]
mov eax, dword [0x9b3ad8]
add esp, 8
test eax, eax
je 0x6c528b
push eax
call dword [0x9a5778]
add esp, 4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
push ebx
call dword [0x9a5744]
add esp, 4
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x6c
ret
cmp eax, 1
jle 0x6c52b9
lea ecx, [edi + 0x20]
lea edx, [eax - 1]
mov ax, word [edi + 0x12]
cmp ax, word [ecx + 0x12]
jle 0x6c52af
mov edi, ecx
add ecx, 0x20
dec edx
jne 0x6c52a3
mov dword [esp + 0x2c], edi
mov ebx, dword [esp + 0x24]
xor esi, esi
mov edi, dword [esp + 0x80]
mov ebp, dword [esp + 0x2c]
test ebx, ebx
jle 0x6c52fe
lea edx, [edi + 0x338]
mov eax, dword [ebp + 0x18]
lea edx, [edx + 0x58]
mov eax, dword [eax + esi*4]
inc esi
mov dword [edx - 0x44], eax
mov al, byte [eax + 0x10]
mov byte [edx - 0x58], al
movzx eax, al
lea ecx, [eax + eax*8]
mov eax, dword [edi + 4]
mov eax, dword [eax + ecx*8 + 0x34]
mov dword [edx - 0x8c], eax
cmp esi, ebx
jl 0x6c52d4
movzx eax, word [edi + 0x2c]
test eax, 0x100
je 0x6c5352
test al, al
js 0x6c5352
cmp byte [edi + 0x33], 0
jne 0x6c5352
cmp word [esp + 0x84], 0
mov esi, ebx
je 0x6c5354
lea eax, [esp + 0x74]
push eax
mov eax, dword [ebp + 0x18]
push dword [eax + esi*4 - 4]
lea eax, [esi - 1]
push eax
push pe_nt_image_headers32
push ebp
push dword [edi + 0xc]
push edi
call fcn.006c4230
movsx ecx, al
add esp, 0x1c
mov eax, dword [edi + 0xc]
cmp ecx, dword [eax]
jne 0x6c5354
mov byte [edi + 0x33], 2
jmp 0x6c5354
mov esi, ebx
and dword [edi + 0x34], 0xfffffffb
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x6c5476
movzx ebx, word [edi + 0x2c]
test bl, bl
jns 0x6c5380
movsx eax, byte [ebp + 0x16]
cmp eax, dword [ecx]
jne 0x6c5416
mov byte [edi + 0x33], 2
jmp 0x6c5416
mov al, byte [ebp + 0x16]
mov byte [edi + 0x31], al
mov eax, dword [ebp + 8]
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x54], eax
mov al, byte [edi + 0x31]
test al, al
jg 0x6c5405
mov byte [edi + 0x31], 0
test esi, esi
jle 0x6c5416
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + esi*4 - 4]
mov eax, dword [edx + 0x2c]
test eax, 0x1000
jne 0x6c5416
and eax, 0x104
cmp eax, 0x104
je 0x6c5416
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0
push eax
push edx
lea eax, [esi - 1]
mov dword [esp + 0x80], 0
push eax
push 0x800
push ebp
push ecx
push edi
call fcn.006c4230
mov ecx, dword [edi + 8]
add esp, 0x1c
movsx eax, al
cmp eax, dword [ecx]
jne 0x6c5416
mov eax, dword [esp + 0x74]
mov dword [edi + 0x50], eax
mov eax, dword [esp + 0x78]
mov dword [edi + 0x54], eax
jmp 0x6c5412
test esi, esi
je 0x6c5416
cmp al, 1
jne 0x6c5416
test bl, 3
je 0x6c5416
or dword [edi + 0x34], 4
mov eax, 0x200
test word [edi + 0x2c], ax
je 0x6c5476
movsx eax, byte [edi + 0x31]
cmp eax, dword [ecx]
jne 0x6c5476
test esi, esi
jle 0x6c5476
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0
push eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x7c], 0
push dword [eax + esi*4 - 4]
lea eax, [esi - 1]
push eax
push 0
push ebp
push ecx
push edi
call fcn.006c4230
movsx ecx, al
add esp, 0x1c
mov eax, dword [edi + 8]
cmp ecx, dword [eax]
jne 0x6c5476
mov eax, dword [esp + 0x74]
or dword [edi + 0x34], 8
mov dword [edi + 0x50], eax
mov eax, dword [esp + 0x78]
mov dword [edi + 0x54], eax
mov ax, word [ebp + 0x10]
mov ecx, dword [esp + 0x70]
mov word [edi + 0x38], ax
test ecx, ecx
je 0x6c54f2
cmp dword [ecx + 0x210], 0
je 0x6c54a6
push dword [esp + 0x30]
push ecx
call fcn.0065b6a0
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
mov ebx, dword [esp + 0x30]
cmp ebx, dword [ecx + 0x164]
jae 0x6c54f6
cmp ebx, dword [ecx + 0x15c]
jb 0x6c54d2
mov eax, dword [ecx + 0x158]
pop ebp
pop edi
mov dword [ebx], eax
xor eax, eax
pop esi
mov dword [ecx + 0x158], ebx
pop ebx
add esp, 0x6c
ret
cmp ebx, dword [ecx + 0x160]
jb 0x6c54f6
mov eax, dword [ecx + 0x150]
pop ebp
pop edi
mov dword [ebx], eax
xor eax, eax
pop esi
mov dword [ecx + 0x150], ebx
pop ebx
add esp, 0x6c
ret
mov ebx, dword [esp + 0x30]
cmp dword [0x9a5720], 0
je 0x6c554c
mov eax, dword [0x9b3ad8]
test eax, eax
je 0x6c5512
push eax
call dword [0x9a5770]
add esp, 4
push ebx
call dword [0x9a574c]
sub dword [0x9b3a60], eax
dec dword [0x9b3a84]
push ebx
call dword [0x9a5744]
mov eax, dword [0x9b3ad8]
add esp, 8
test eax, eax
je 0x6c5556
push eax
call dword [0x9a5778]
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
push ebx
call dword [0x9a5744]
add esp, 4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x6c
ret