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

Disassembly:
sub esp, 0x6c
push ebx
mov ebx, dword [esp + 0x74]
push ebp
push edi
mov dword [esp + 0x48], 0
mov eax, dword [ebx]
mov dword [esp + 0x68], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov ecx, dword [eax]
mov al, byte [ebx + 0x2e]
movzx edx, al
mov dword [esp + 0x5c], 0
mov dword [esp + 0x6c], ecx
mov byte [esp + 0xe], al
mov dword [esp + 0x30], edx
cmp edx, 1
ja 0x1007bef0
mov edi, 1
jmp 0x1007befd
lea edi, [edx - 2]
neg edi
sbb edi, edi
and edi, 5
add edi, 5
mov eax, dword [ebx + 8]
mov dword [esp + 0x44], edi
test eax, eax
je 0x1007bf17
cmp word [esp + 0x80], 0
je 0x1007bf17
mov ebp, dword [eax]
jmp 0x1007bf19
xor ebp, ebp
lea eax, [edx*4]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x58], eax
add eax, 0x20
imul eax, edi
add eax, ebp
add eax, eax
cdq
push edx
push eax
push ecx
call fcn.1003de20
mov edx, eax
add esp, 0xc
mov dword [esp + 0x20], edx
test edx, edx
jne 0x1007bf52
pop edi
pop ebp
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
push esi
mov esi, edx
mov dword [esp + 0x2c], ecx
mov dword [ecx + 0x1c], 0
add ecx, eax
lea eax, [edi + edi]
mov dword [esp + 0x28], esi
mov edi, dword [esp + 0x5c]
add edx, 0x18
mov dword [edx], ecx
lea edx, [edx + 0x20]
dec eax
add ecx, edi
test eax, eax
jg 0x1007bfa8
test ebp, ebp
je 0x1007bfcf
lea eax, [ebp*2]
mov dword [esp + 0x60], ecx
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0x84]
cmp eax, 0x30
jb 0x1007bfe3
mov eax, 0x30
mov edi, dword [esp + 0x2c]
mov cl, byte [esp + 0x12]
mov word [edi + 0x10], ax
mov eax, 1
mov dword [esp + 0x58], eax
test ebp, ebp
je 0x1007c01f
test cl, cl
je 0x1007c00f
mov ebp, edi
or eax, 0xffffffff
mov byte [ebp + 0x16], al
mov eax, 1
jmp 0x1007c023
mov eax, ebp
mov ebp, dword [esp + 0x2c]
mov byte [ebp + 0x16], al
mov eax, 1
jmp 0x1007c023
mov ebp, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x30], edx
test cl, cl
je 0x1007c650
xor ecx, ecx
mov dword [esp + 0x18], ecx
test eax, eax
jle 0x1007c44f
add ebp, 0x10
mov dword [esp + 0x1c], ebp
mov ebx, dword [ebx + 0x3c]
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x1007c42c
mov al, byte [ebp + 6]
mov edx, dword [ebp - 0x10]
mov ecx, edx
mov esi, dword [ebp - 0xc]
not ecx
and ecx, dword [ebx]
mov byte [esp + 0x13], al
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 0x1007c415
mov ecx, edx
mov eax, esi
and ecx, dword [ebx + 8]
and eax, dword [ebx + 0xc]
or ecx, eax
jne 0x1007c415
test dword [ebx + 0x24], 0x4000
je 0x1007c0b5
cmp word [ebp], 3
jl 0x1007c415
movzx ebp, word [ebp]
mov ax, word [ebx + 0x14]
movzx edi, word [ebx + 0x12]
add ax, bp
movzx esi, ax
movsx ecx, di
movsx edx, si
cmp di, si
jl 0x1007c0f7
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x1007c0dd
mov esi, edi
jmp 0x1007c119
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x1007c0e9
lea eax, [edi + 1]
jmp 0x1007c116
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add ax, di
jmp 0x1007c116
lea eax, [ecx + 0x31]
cmp edx, eax
jg 0x1007c119
lea eax, [ecx + 0x1f]
cmp edx, eax
jle 0x1007c10a
lea eax, [esi + 1]
jmp 0x1007c116
sub edx, ecx
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, si
movzx esi, ax
mov eax, dword [esp + 0x1c]
mov bx, si
mov dword [esp + 0x14], esi
movsx ecx, bx
movzx edi, word [eax + 4]
movsx edx, di
cmp bx, di
jl 0x1007c15b
lea eax, [edx + 0x31]
cmp ecx, eax
jg 0x1007c188
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x1007c144
inc esi
jmp 0x1007c181
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add bx, ax
mov word [esp + 0x14], bx
mov esi, dword [esp + 0x14]
jmp 0x1007c188
lea eax, [ecx + 0x31]
cmp edx, eax
jle 0x1007c166
mov esi, edi
jmp 0x1007c181
lea eax, [ecx + 0x1f]
cmp edx, eax
jle 0x1007c172
lea eax, [edi + 1]
jmp 0x1007c17e
sub edx, ecx
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, di
movzx esi, ax
mov dword [esp + 0x14], esi
mov bx, si
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x40]
mov ax, word [ecx + 0x16]
or edi, dword [ecx + 0xc]
add ax, bp
mov ebp, dword [esp + 0x3c]
or ebp, dword [ecx + 8]
movzx eax, ax
mov dword [esp + 0x44], eax
mov ah, byte [esp + 0x13]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], edi
test ah, ah
jns 0x1007c1f9
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x74]
push eax
push ecx
push dword [esp + 0x38]
movzx eax, word [edx + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
push eax
push dword [edx + 8]
push edx
call fcn.1007b6e0
mov edx, dword [esp + 0x90]
add esp, 0x1c
mov ecx, dword [esp + 0x78]
mov ah, al
mov byte [esp + 0x13], al
mov dword [esp + 0x64], edx
jmp 0x1007c207
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 8]
mov dword [esp + 0x64], ecx
mov ecx, dword [edx - 4]
mov dword [esp + 0x68], ecx
test ah, ah
js 0x1007c375
movsx ecx, ah
cmp ecx, dword [esp + 0x38]
jge 0x1007c375
mov eax, dword [esp + 0x60]
lea eax, [eax + ecx*2]
mov dword [esp + 0x14], eax
movzx eax, word [eax]
mov edx, eax
test ax, ax
jne 0x1007c2b6
mov ebp, dword [esp + 0x38]
mov eax, ebp
sub eax, ecx
movzx edi, word [esp + 0x84]
imul eax, eax, 0x64
cdq
idiv ebp
cdq
push edx
push eax
call fcn.1004cf40
mov dx, word [esp + 0x8c]
mov ecx, 0x4000
add esp, 8
lea ebp, [edx + eax]
mov eax, dword [esp + 0x80]
test word [eax + 0x2c], cx
je 0x1007c282
movzx ecx, word [eax + 0x14]
cmp cx, dx
jge 0x1007c282
mov edi, ecx
movzx eax, di
cmp di, 0xa
jg 0x1007c290
movzx eax, bp
jmp 0x1007c2a5
cwde
cdq
push edx
push eax
call fcn.1004cf40
lea ecx, [ebp - 0x21]
add esp, 8
add ax, cx
movzx eax, ax
mov ecx, dword [esp + 0x14]
add eax, 0xffffffce
mov ebp, dword [esp + 0x3c]
movzx edx, ax
mov word [ecx], ax
movzx edi, dx
movsx ecx, bx
movsx edx, di
cmp bx, di
jl 0x1007c320
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x1007c2e1
mov edi, dword [esp + 0x40]
movzx eax, bx
add eax, 5
movzx edx, ax
mov ah, byte [esp + 0x13]
jmp 0x1007c382
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x1007c301
mov edi, dword [esp + 0x40]
lea eax, [esi + 1]
movzx eax, ax
add eax, 5
movzx edx, ax
mov ah, byte [esp + 0x13]
jmp 0x1007c382
mov edi, dword [esp + 0x40]
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add ax, bx
movzx eax, ax
add eax, 5
movzx edx, ax
mov ah, byte [esp + 0x13]
jmp 0x1007c382
lea eax, [ecx + 0x31]
cmp edx, eax
jle 0x1007c339
mov eax, edi
mov edi, dword [esp + 0x40]
add eax, 5
movzx edx, ax
mov ah, byte [esp + 0x13]
jmp 0x1007c382
lea eax, [ecx + 0x1f]
cmp edx, eax
jle 0x1007c356
lea eax, [edi + 1]
mov edi, dword [esp + 0x40]
movzx eax, ax
add eax, 5
movzx edx, ax
mov ah, byte [esp + 0x13]
jmp 0x1007c382
sub edx, ecx
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, di
mov edi, dword [esp + 0x40]
movzx eax, ax
add eax, 5
movzx edx, ax
mov ah, byte [esp + 0x13]
jmp 0x1007c382
sub esi, 2
movzx edx, bx
mov dword [esp + 0x14], esi
mov bx, si
mov esi, dword [esp + 0x28]
xor ecx, ecx
cmp dword [esp + 0x18], ecx
jle 0x1007c3aa
mov edi, edi
cmp dword [esi], ebp
jne 0x1007c3a0
cmp dword [esi + 4], edi
jne 0x1007c3a0
mov al, byte [esi + 0x16]
xor al, ah
jge 0x1007c3db
inc ecx
add esi, 0x20
cmp ecx, dword [esp + 0x18]
jl 0x1007c390
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x48]
jl 0x1007c4c2
mov ebp, dword [esp + 0x54]
cmp dx, bp
jg 0x1007c5a0
jne 0x1007c3d2
cmp bx, word [esp + 0x50]
jge 0x1007c5a0
mov esi, dword [esp + 0x4c]
jmp 0x1007c4c9
cmp ecx, dword [esp + 0x18]
jge 0x1007c3aa
movzx eax, word [esi + 0x12]
cmp ax, dx
jl 0x1007c40d
mov ebp, dword [esp + 0x44]
jne 0x1007c4d4
movzx eax, word [esi + 0x10]
cmp ax, bp
jl 0x1007c40d
jne 0x1007c4d4
cmp word [esi + 0x14], bx
jg 0x1007c4d4
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [ebx + 0x34]
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x1007c055
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x80]
add ebp, 0x20
sub eax, 1
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x58], eax
jne 0x1007c046
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov ebp, esi
inc edx
mov dword [esp + 0x28], edi
mov esi, edi
mov dword [esp + 0x2c], ebp
mov edi, dword [esp + 0x34]
mov eax, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], edx
cmp edx, edi
jl 0x1007c031
test ecx, ecx
jne 0x1007c654
push str.no_query_solution
push dword [esp + 0x70]
call fcn.1003fb40
mov ecx, dword [esp + 0x78]
add esp, 8
test ecx, ecx
je 0x1007c5dc
cmp dword [ecx + 0x1e8], 0
je 0x1007c5ad
push dword [esp + 0x24]
push ecx
call fcn.100281e0
add esp, 8
mov eax, 1
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x6c
ret
mov esi, ecx
inc ecx
mov dword [esp + 0x18], ecx
mov ebp, dword [esp + 0x44]
shl esi, 5
add esi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov ecx, dword [eax - 0x10]
mov eax, dword [eax - 0xc]
or eax, dword [edi + 0xc]
or ecx, dword [edi + 8]
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 + 0x30]
mov word [esi + 0x10], bp
mov ebp, dword [esp + 0x1c]
mov dword [esi], ecx
lea edi, [eax*4]
mov word [esi + 0x12], dx
push edi
mov word [esi + 0x14], bx
push dword [ebp + 8]
push dword [esi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 0x18]
add esp, 0xc
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [edi + eax], ebx
mov edi, dword [esp + 0x48]
cmp ecx, edi
jl 0x1007c419
mov eax, dword [esp + 0x28]
mov ecx, 1
mov dword [esp + 0x4c], 0
movzx ebp, word [eax + 0x12]
movzx esi, word [eax + 0x10]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], esi
cmp edi, ecx
jbe 0x1007c411
add eax, 0x34
movzx edx, word [eax - 2]
cmp dx, bp
jg 0x1007c582
jne 0x1007c58b
cmp word [eax], si
jle 0x1007c58b
movzx esi, word [eax]
mov ebp, edx
mov dword [esp + 0x4c], ecx
inc ecx
add eax, 0x20
cmp ecx, edi
jl 0x1007c572
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebp
jmp 0x1007c411
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
jmp 0x1007c419
mov ebx, dword [esp + 0x24]
cmp ebx, dword [ecx + 0x138]
jb 0x1007c5e0
cmp ebx, dword [ecx + 0x13c]
jae 0x1007c5e0
mov eax, dword [ecx + 0x134]
pop esi
pop edi
mov dword [ebx], eax
mov eax, 1
pop ebp
mov dword [ecx + 0x134], ebx
pop ebx
add esp, 0x6c
ret
mov ebx, dword [esp + 0x24]
cmp dword [0x10094018], 0
je 0x1007c639
mov eax, dword [0x100956d0]
test eax, eax
je 0x1007c5fc
push eax
call dword [0x10094074]
add esp, 4
push ebx
call dword [0x10094050]
sub dword [0x10095670], eax
dec dword [0x10095694]
push ebx
call dword [0x10094048]
mov eax, dword [0x100956d0]
add esp, 8
test eax, eax
je 0x1007c643
push eax
call dword [0x1009407c]
add esp, 4
mov eax, 1
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x6c
ret
push ebx
call dword [0x10094048]
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c
ret
mov edi, dword [esp + 0x34]
cmp eax, 1
jle 0x1007c674
lea ecx, [ebp + 0x20]
lea edx, [eax - 1]
nop
mov ax, word [ebp + 0x12]
cmp ax, word [ecx + 0x12]
jle 0x1007c66c
mov ebp, ecx
add ecx, 0x20
sub edx, 1
jne 0x1007c660
xor esi, esi
cmp byte [esp + 0x12], 0
jbe 0x1007c6aa
lea edx, [ebx + 0x31c]
mov eax, dword [ebp + 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*8]
mov eax, dword [ebx + 4]
mov eax, dword [eax + ecx*8 + 0x34]
mov dword [edx - 0x78], eax
cmp esi, edi
jl 0x1007c683
mov ax, word [ebx + 0x2c]
mov ecx, 0x180
and ax, cx
mov ecx, 0x100
cmp ax, cx
jne 0x1007c708
cmp byte [ebx + 0x33], 0
jne 0x1007c708
cmp word [esp + 0x84], 0
je 0x1007c708
lea eax, [esp + 0x74]
push eax
mov eax, dword [ebp + 0x18]
lea ecx, [edi*4]
push dword [eax + ecx - 4]
lea eax, [edi - 1]
push eax
push 0x80
push ebp
push dword [ebx + 0xc]
push ebx
call fcn.1007b6e0
movsx ecx, al
add esp, 0x1c
mov eax, dword [ebx + 0xc]
cmp ecx, dword [eax]
jne 0x1007c708
mov byte [ebx + 0x33], 2
mov edi, dword [ebx + 8]
mov byte [ebx + 0x34], 0
test edi, edi
je 0x1007c847
test byte [ebx + 0x2c], 0x80
mov cl, byte [ebp + 0x16]
je 0x1007c732
movsx eax, cl
cmp eax, dword [edi]
jne 0x1007c72b
mov byte [ebx + 0x33], 2
mov esi, edi
jmp 0x1007c7dd
mov byte [ebx + 0x2f], cl
test cl, cl
mov eax, dword [ebp + 8]
mov esi, edi
mov cl, byte [esp + 0x12]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x44], eax
jg 0x1007c7e1
mov byte [ebx + 0x2f], 0
test cl, cl
je 0x1007c7e1
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [eax + ecx - 4]
mov eax, dword [ebx + 0x24]
and eax, 0x104
cmp eax, 0x104
setne cl
bt dword [ebx + 0x24], 0xc
setae al
test al, cl
je 0x1007c7d6
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0
push eax
mov eax, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x88]
dec eax
push eax
push 0x800
push ebp
push edi
push ebx
mov dword [esp + 0x94], 0
call fcn.1007b6e0
mov esi, dword [ebx + 8]
add esp, 0x1c
movsx eax, al
cmp eax, dword [esi]
jne 0x1007c7dd
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
jmp 0x1007c7dd
mov ebx, dword [esp + 0x80]
mov cl, byte [esp + 0x12]
mov eax, 0x200
test word [ebx + 0x2c], ax
je 0x1007c847
movsx eax, byte [ebx + 0x2f]
cmp eax, dword [esi]
jne 0x1007c847
test cl, cl
je 0x1007c847
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x74]
push eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
push dword [eax + ecx - 4]
mov eax, dword [esp + 0x3c]
dec eax
push eax
push 0
push ebp
push esi
push ebx
call fcn.1007b6e0
movsx ecx, al
add esp, 0x1c
mov eax, dword [ebx + 8]
cmp ecx, dword [eax]
jne 0x1007c847
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 [ebp + 0x10]
mov ecx, dword [esp + 0x70]
mov word [ebx + 0x48], ax
test ecx, ecx
je 0x1007c8a3
cmp dword [ecx + 0x1e8], 0
je 0x1007c877
push dword [esp + 0x24]
push ecx
call fcn.100281e0
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x6c
ret
mov ebx, dword [esp + 0x24]
cmp ebx, dword [ecx + 0x138]
jb 0x1007c8a7
cmp ebx, dword [ecx + 0x13c]
jae 0x1007c8a7
mov eax, dword [ecx + 0x134]
pop esi
pop edi
mov dword [ebx], eax
xor eax, eax
pop ebp
mov dword [ecx + 0x134], ebx
pop ebx
add esp, 0x6c
ret
mov ebx, dword [esp + 0x24]
cmp dword [0x10094018], 0
je 0x1007c8fd
mov eax, dword [0x100956d0]
test eax, eax
je 0x1007c8c3
push eax
call dword [0x10094074]
add esp, 4
push ebx
call dword [0x10094050]
sub dword [0x10095670], eax
dec dword [0x10095694]
push ebx
call dword [0x10094048]
mov eax, dword [0x100956d0]
add esp, 8
test eax, eax
je 0x1007c907
push eax
call dword [0x1009407c]
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x6c
ret
push ebx
call dword [0x10094048]
add esp, 4
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret