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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [eax]
mov dword [esp + 0x30], eax
movzx eax, byte [eax + 0x2c]
mov dword [esp + 0x64], ebx
mov ebx, dword [ebx]
mov dword [esp + 0x6c], edx
mov word [esp + 0x60], dx
mov dword [esp + 0x68], ebx
mov byte [esp + 0x63], al
mov dword [esp + 0x54], eax
cmp eax, 1
jle 0x79ae4c
xor ebx, ebx
cmp eax, 2
setne bl
lea ebx, [ebx + ebx*4 + 5]
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x30]
cmp word [esp + 0x6c], 0
mov eax, dword [eax + 8]
je 0x79a796
test eax, eax
je 0x79a796
mov eax, dword [eax]
mov dword [esp + 0x38], eax
lea esi, [eax + eax]
jmp 0x79a7a0
mov dword [esp + 0x38], 0
xor esi, esi
mov eax, dword [esp + 0x54]
add eax, 8
imul eax, ebx
lea edx, [esi + eax*8]
mov eax, dword [esp + 0x68]
mov ecx, edx
sar ecx, 0x1f
call fcn.00769310
mov dword [esp + 0x5c], eax
test eax, eax
je 0x79b00e
shl ebx, 5
add eax, ebx
mov edx, ebx
xor ebx, ebx
lea ecx, [eax + 4]
mov dword [esp + 0x50], eax
and ecx, 0xfffffffc
mov dword [eax], 0
mov dword [eax + 0x1c], 0
sub eax, ecx
mov edi, eax
xor eax, eax
add edi, 0x20
and edi, 0xfffffffc
mov dword [ecx + eax], ebx
add eax, 4
cmp eax, edi
jb 0x79a7f3
mov eax, dword [esp + 0x54]
add edx, dword [esp + 0x50]
mov ecx, edx
lea ebp, [eax*4]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], ebp
lea edi, [eax + eax]
shl eax, 6
mov ebx, eax
mov eax, dword [esp + 0x5c]
add ebx, eax
mov dword [eax + 0x18], ecx
add eax, 0x20
add ecx, ebp
cmp ebx, eax
jne 0x79a824
imul edi, dword [esp + 0x58]
lea eax, [edx + edi]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
test edi, edi
jne 0x79ae5e
mov ebx, dword [esp + 0x64]
mov eax, 0x30
mov dword [esp + 0x4c], 0
cmp dword [ebx + 0x84], 0x30
cmovbe eax, dword [ebx + 0x84]
mov ebx, dword [esp + 0x50]
mov word [ebx + 0x10], ax
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x79b001
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], 1
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], eax
xor eax, eax
mov word [esp + 0x4a], ax
xor eax, eax
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], 0
test eax, eax
je 0x79ac3f
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], 0
shl eax, 2
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
lea esi, [esi]
nop
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 0x3c]
test ebx, ebx
je 0x79abf0
mov eax, dword [esp + 0x18]
mov ebp, ebx
and eax, 2
mov dword [esp + 0x44], eax
jmp 0x79a90b
mov ebp, dword [ebp + 0x34]
test ebp, ebp
je 0x79abf0
mov esi, dword [esp + 8]
movzx eax, byte [esi + 0x16]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov ebx, dword [esi]
mov esi, dword [esi + 4]
mov byte [esp + 0xc], al
mov eax, ebx
mov edx, esi
not eax
and eax, dword [ebp]
not edx
and edx, dword [ebp + 4]
or edx, eax
jne 0x79a900
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, ebx
mov edx, esi
and eax, ecx
and edx, edi
or edx, eax
jne 0x79a900
mov eax, dword [esp + 8]
movzx eax, word [eax + 0x10]
mov word [esp + 0x10], ax
test byte [ebp + 0x25], 0x40
je 0x79a969
cmp ax, 2
jle 0x79a900
movzx edx, word [esp + 0x10]
movsx eax, word [ebp + 0x12]
mov dword [esp + 0x1c], ecx
or esi, edi
add dx, word [ebp + 0x14]
movsx edx, dx
call fcn.0076b300
mov ecx, dword [esp + 8]
cwde
movsx edx, word [ecx + 0x14]
call fcn.0076b300
mov ecx, dword [esp + 0x1c]
movzx edx, word [esp + 0x10]
add dx, word [ebp + 0x16]
mov word [esp + 0x20], ax
or ebx, ecx
cmp byte [esp + 0xc], 0
mov word [esp + 0x22], dx
js 0x79ab50
mov eax, dword [esp + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], eax
movsx eax, byte [esp + 0xc]
cmp eax, dword [esp + 0x38]
jge 0x79ab80
mov ecx, dword [esp + 0x4c]
lea edi, [ecx + eax*2]
movsx edx, word [edi]
test dx, dx
je 0x79acbc
movsx eax, word [esp + 0x20]
mov edi, eax
call fcn.0076b300
mov ecx, dword [esp + 0x14]
mov word [esp + 0x1c], di
add eax, 5
mov word [esp + 0x20], ax
test ecx, ecx
je 0x79aba0
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x24]
xor edx, edx
mov ebp, ecx
jmp 0x79aa2e
add edx, 1
add eax, 0x20
cmp edx, ebp
je 0x79abb0
mov ecx, dword [eax]
mov edi, dword [eax + 4]
xor ecx, ebx
xor edi, esi
or edi, ecx
jne 0x79aa20
movzx ecx, byte [esp + 0xc]
xor cl, byte [eax + 0x16]
js 0x79aa20
mov ebp, dword [esp + 0x10]
movzx ebx, word [esp + 0x20]
cmp word [eax + 0x12], bx
jl 0x79a900
je 0x79ac93
mov esi, dword [esp + 8]
mov edx, dword [esi]
or edx, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [esi + 4]
or edx, dword [ebp + 0xc]
mov dword [eax + 4], edx
mov ebx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov dword [eax + 0xc], ebx
movzx ebx, word [esp + 0x22]
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0x18]
mov word [eax + 0x10], bx
movzx ebx, word [esp + 0x20]
mov word [eax + 0x12], bx
movzx ebx, word [esp + 0x1c]
mov word [eax + 0x14], bx
movzx ebx, byte [esp + 0xc]
mov byte [eax + 0x16], bl
mov ebx, dword [esp + 0x18]
mov esi, dword [esi + 0x18]
cmp ebx, 4
jae 0x79ac50
test ebx, ebx
je 0x79aace
movzx edx, byte [esi]
mov byte [ecx], dl
mov edx, dword [esp + 0x44]
test edx, edx
jne 0x79ad2a
mov ecx, dword [eax + 0x18]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
mov dword [ecx + eax], ebp
cmp dword [esp + 0x14], ebx
jl 0x79a900
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
movzx ebx, word [eax + 0x12]
movzx edi, word [eax + 0x10]
add eax, 0x20
mov word [esp + 0x48], bx
mov word [esp + 0x4a], di
cmp esi, 1
je 0x79ad1d
xor ecx, ecx
mov edx, 1
mov dword [esp + 0xc], ebp
mov dword [esp + 0x34], ecx
jmp 0x79ab38
movzx edi, word [eax + 0x14]
mov dword [esp + 0x34], edx
mov ebx, ecx
add edx, 1
add eax, 0x20
cmp esi, edx
je 0x79ac80
movzx ecx, word [eax + 0x12]
cmp cx, bx
jg 0x79ab20
jne 0x79ab2a
movzx ebp, word [eax + 0x14]
cmp bp, di
jle 0x79ab2a
mov edi, ebp
jmp 0x79ab24
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x78]
mov edx, dword [edi + 8]
push eax
movzx eax, word [edi + 0x28]
push ebp
push dword [esp + 0x44]
push eax
mov eax, edi
mov ecx, dword [esp + 0x18]
call fcn.00799b80
mov byte [esp + 0x1c], al
add esp, 0x10
test al, al
jns 0x79a9c8
movzx eax, word [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub eax, 2
mov word [esp + 0x1c], ax
test ecx, ecx
jne 0x79aa0f
lea esi, [esi]
mov ebx, dword [esp + 0x14]
mov eax, ebx
add ebx, 1
mov dword [esp + 0x14], ebx
jmp 0x79abe4
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x2c], ebx
jg 0x79aba0
movzx ebx, word [esp + 0x48]
cmp word [esp + 0x20], bx
jg 0x79a900
jne 0x79abe0
movzx ebx, word [esp + 0x4a]
cmp word [esp + 0x1c], bx
jge 0x79a900
mov eax, dword [esp + 0x34]
shl eax, 5
add eax, dword [esp + 0x24]
jmp 0x79aa5e
add dword [esp + 0x28], 1
mov eax, dword [esp + 0x28]
add dword [esp + 8], 0x20
cmp eax, dword [esp + 0x40]
jne 0x79a8e0
mov ebx, dword [esp + 0x14]
add dword [esp + 0x3c], 1
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], ebx
cmp dword [esp + 0x54], eax
je 0x79ad40
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x50], ebx
test eax, eax
jne 0x79a8b5
mov dword [esp + 0x14], 0
jmp 0x79ac08
mov edx, dword [esi]
lea edi, [ecx + 4]
and edi, 0xfffffffc
mov dword [ecx], edx
mov ebx, dword [esp + 0x18]
mov edx, dword [esi + ebx - 4]
mov dword [ecx + ebx - 4], edx
sub ecx, edi
sub esi, ecx
add ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x79aacb
mov word [esp + 0x48], bx
mov ebp, dword [esp + 0xc]
mov word [esp + 0x4a], di
jmp 0x79a900
movzx ebx, word [esp + 0x22]
cmp word [eax + 0x10], bx
jl 0x79a900
jne 0x79aa5e
movzx ebx, word [esp + 0x1c]
cmp word [eax + 0x14], bx
jg 0x79aa5e
jmp 0x79a900
mov ecx, dword [esp + 0x38]
mov edx, ecx
sub edx, eax
imul eax, edx, 0x64
cdq
idiv ecx
cdq
call fcn.00760a80
movzx edx, word [esp + 0x60]
mov ecx, dword [esp + 0x30]
lea eax, [eax + edx - 0x32]
mov word [esp + 0x10], ax
mov eax, edx
test byte [ecx + 0x29], 0x40
je 0x79acf3
cmp word [ecx + 0x2a], dx
cmovle ax, word [ecx + 0x2a]
cmp ax, 0xa
jg 0x79ad06
movsx edx, word [esp + 0x10]
mov word [edi], dx
jmp 0x79a9ea
cwde
cdq
call fcn.00760a80
movzx ecx, word [esp + 0x10]
lea eax, [eax + ecx - 0x21]
mov word [esp + 0x10], ax
jmp 0x79acf9
mov dword [esp + 0x34], 0
jmp 0x79a900
mov ebx, dword [esp + 0x18]
movzx edx, word [esi + ebx - 2]
mov word [ecx + ebx - 2], dx
mov ecx, dword [eax + 0x18]
jmp 0x79aace
mov eax, dword [esp + 0x14]
test eax, eax
je 0x79afd0
cmp dword [esp + 0x14], 1
je 0x79ad7b
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
shl edx, 5
lea eax, [ebx + 0x20]
mov ecx, ebx
add edx, ebx
movzx ebx, word [eax + 0x12]
cmp word [ecx + 0x12], bx
cmovg ecx, eax
add eax, 0x20
cmp edx, eax
jne 0x79ad65
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
xor ecx, ecx
mov edi, dword [esp + 0x54]
mov ebx, dword [eax + 0x18]
lea edx, [esi + 0x2f4]
mov eax, dword [ebx + ecx*4]
add ecx, 1
add edx, 0x58
mov dword [edx - 0x14], eax
movzx eax, byte [eax + 0x10]
mov byte [edx - 0x28], al
mov ebp, dword [esi + 4]
lea eax, [eax + eax*8]
lea eax, [ebp + eax*8]
mov eax, dword [eax + 0x34]
mov dword [edx - 0x58], eax
cmp edi, ecx
jg 0x79ad92
mov eax, dword [esp + 0x30]
movzx eax, word [eax + 0x28]
mov word [esp + 8], ax
and ax, 0x180
cmp ax, 0x100
je 0x79af60
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 8]
and byte [eax + 0x30], 0xfb
test ebx, ebx
je 0x79ae22
movzx esi, word [eax + 0x28]
mov eax, dword [esp + 0x24]
movsx ecx, byte [eax + 0x16]
test esi, 0x80
je 0x79aea7
cmp ecx, dword [ebx]
je 0x79b01e
test si, 0x200
je 0x79ae22
mov eax, dword [esp + 0x30]
movsx eax, byte [eax + 0x2d]
cmp eax, dword [ebx]
jne 0x79ae22
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x79b02b
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x5c]
movzx eax, word [eax + 0x10]
mov word [ebx + 0x34], ax
mov eax, dword [esp + 0x68]
call fcn.00767880
add esp, 0x8c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 1
mov dword [esp + 0x2c], 1
jmp 0x79a778
sub esp, 4
push esi
push 0
push dword [esp + 0x58]
call sub.msvcrt.dll_memset
add esp, 0x10
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x54]
mov eax, 0x30
cmp dword [ebx + 0x84], 0x30
cmovbe eax, dword [ebx + 0x84]
test esi, esi
mov ebx, dword [esp + 0x50]
mov word [ebx + 0x10], ax
mov eax, 0xffffffff
cmove eax, dword [esp + 0x38]
mov byte [ebx + 0x16], al
jmp 0x79a86f
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x24]
mov byte [edi + 0x2d], cl
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], edx
test cl, cl
jg 0x79ae03
mov edx, dword [esp + 0x54]
mov byte [edi + 0x2d], 0
test edx, edx
je 0x79ae22
mov eax, dword [ebp + 0x18]
mov edx, dword [esp + 0x58]
mov ecx, ebp
mov edx, dword [eax + edx - 4]
mov eax, dword [edx + 0x24]
test ah, 0x10
jne 0x79ae03
and eax, 0x104
cmp eax, 0x104
je 0x79ae03
lea eax, [esp + 0x78]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
push eax
push edx
movzx eax, byte [esp + 0x6b]
mov edx, ebx
sub eax, 1
movzx eax, ax
push eax
mov eax, edi
push 0x800
call fcn.00799b80
mov ebx, dword [edi + 8]
add esp, 0x10
movsx eax, al
cmp dword [ebx], eax
jne 0x79af52
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
or byte [esi + 0x30], 4
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], edx
mov eax, dword [esp + 0x30]
movzx esi, word [eax + 0x28]
jmp 0x79ae03
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x2f], 0
jne 0x79add4
cmp word [esp + 0x6c], 0
je 0x79add4
mov edx, dword [eax + 0xc]
mov ebx, eax
lea eax, [esp + 0x78]
push eax
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x5c]
mov eax, dword [ecx + 0x18]
push dword [eax + esi - 4]
movzx eax, byte [esp + 0x6b]
sub eax, 1
movzx eax, ax
push eax
mov eax, ebx
push 0x80
call fcn.00799b80
mov edx, dword [ebx + 0xc]
add esp, 0x10
movsx eax, al
cmp dword [edx], eax
jne 0x79add4
mov eax, dword [esp + 0x30]
mov byte [eax + 0x2f], 2
jmp 0x79add4
sub esp, 8
push str.no_query_solution
push dword [esp + 0x70]
call fcn.0078f9f0
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x6c]
call fcn.00767880
add esp, 0x10
mov eax, 1
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x50]
mov dword [esp + 0x24], eax
jmp 0x79adb9
add esp, 0x8c
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
mov byte [eax + 0x2f], 2
jmp 0x79ae03
lea eax, [esp + 0x78]
mov dword [esp + 0x78], 0
mov edx, ebx
mov dword [esp + 0x7c], 0
push eax
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x5c]
mov eax, dword [ecx + 0x18]
push dword [eax + esi - 4]
movzx eax, byte [esp + 0x6b]
sub eax, 1
movzx eax, ax
push eax
push 0
mov ebx, dword [esp + 0x40]
mov eax, ebx
call fcn.00799b80
mov edx, dword [ebx + 8]
add esp, 0x10
movsx eax, al
cmp dword [edx], eax
jne 0x79ae22
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
or byte [ebx + 0x30], 8
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], edx
jmp 0x79ae22