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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov ebx, ecx
movzx ecx, byte [ecx + 0x2c]
xor eax, eax
mov esi, 1
mov dword [esp + 8], 0
mov dword [esp + 0x50], edx
cmp ecx, 2
setne al
lea eax, [eax + eax*4 + 5]
cmovae esi, eax
mov eax, dword [ebx]
test dx, dx
mov dword [esp + 0x5c], eax
mov eax, dword [eax]
mov dword [esp + 0x60], eax
je 0x4a8b83
mov eax, dword [ebx + 8]
test eax, eax
je 0x4a8b83
mov eax, dword [eax]
mov dword [esp + 8], eax
lea eax, [ecx*4 + 0x20]
lea edi, [esi + esi]
mov dword [esp + 0x48], esi
mov esi, ecx
mov ecx, dword [esp + 8]
imul eax, edi
lea edx, [eax + ecx*2]
mov ecx, dword [esp + 0x60]
mov eax, edx
sar eax, 0x1f
push eax
call fcn.00435490
add esp, 4
test eax, eax
je 0x4a95c3
mov ecx, esi
mov esi, eax
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x48]
inc edi
mov dword [esp + 0x14], ecx
lea ecx, [ecx*4]
mov dword [esp + 0x34], esi
add eax, eax
mov dword [esp + 0x24], eax
mov eax, edx
shl edx, 6
shl eax, 5
add edx, esi
mov dword [esp + 0x38], edx
mov dword [esi + eax + 4], 0
mov dword [esi + eax], 0
mov dword [esi + eax + 0xc], 0
mov dword [esi + eax + 8], 0
mov dword [esi + eax + 0x14], 0
mov dword [esi + eax + 0x10], 0
mov dword [esi + eax + 0x1c], 0
mov dword [esi + eax + 0x18], 0
mov dword [esp + 4], eax
lea eax, [esi + eax]
mov edx, esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
add edx, 0x18
nop word [eax + eax]
dec edi
mov dword [edx], eax
add eax, ecx
add edx, 0x20
cmp edi, 1
jg 0x4a8c40
cmp dword [esp + 8], 0
je 0x4a8c69
push dword [esp + 0x24]
push 0
mov dword [esp + 0x40], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
jmp 0x4a8c71
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x5c]
mov ecx, 0x30
mov esi, dword [esp + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x84]
cmp eax, 0x30
cmovb ecx, eax
mov eax, dword [esp + 0x34]
mov word [eax + esi + 0x10], cx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4a8cb6
xor eax, eax
cmp dl, 1
mov edi, dword [esp + 0x34]
sbb eax, eax
not al
or al, cl
mov byte [edi + esi + 0x16], al
mov eax, dword [esp + 0x34]
test dl, dl
je 0x4a93e9
mov ecx, dword [esp + 0x50]
mov edx, 1
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], ebx
add ecx, 0x10
mov dword [esp + 0x74], ecx
jmp 0x4a8d2f
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x3c]
inc ecx
mov eax, ecx
mov dword [esp + 0x3c], ecx
cmp ecx, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
mov edx, ecx
je 0x4a934b
test edx, edx
mov dword [esp + 0x30], eax
jle 0x4a8d00
mov ecx, dword [esp + 0x3c]
add eax, 0x34
mov dword [esp + 0x10], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x7c], edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x18]
lea ecx, [ecx*4]
mov dword [esp + 0x78], ecx
mov dword [esp + 4], eax
jmp 0x4a8d8e
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x40]
add dword [esp + 4], 0x20
inc eax
cmp eax, edx
mov dword [esp + 0x68], eax
je 0x4a8d08
mov ebx, dword [ebx + 0x38]
jmp 0x4a8da3
mov ebx, dword [ebx + 0x34]
test ebx, ebx
je 0x4a8d70
mov eax, dword [esp + 4]
mov dl, byte [eax + 0x16]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov edi, dword [eax + 4]
mov esi, dword [eax]
mov eax, esi
mov ecx, edi
not eax
not ecx
and ecx, dword [ebx + 4]
and eax, dword [ebx]
or eax, ecx
jne 0x4a8da0
mov byte [esp + 0xc], dl
mov edx, esi
mov esi, edi
mov edi, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov eax, edi
mov dword [esp + 0x88], ecx
and ecx, edx
and eax, esi
or ecx, eax
jne 0x4a8da0
mov eax, dword [esp + 4]
test byte [ebx + 0x25], 0x40
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], esi
mov dword [esp + 0x24], edi
movzx eax, word [eax + 0x10]
je 0x4a8e19
cmp ax, 3
jl 0x4a8da0
movzx edx, word [ebx + 0x14]
movzx edi, word [ebx + 0x12]
mov esi, eax
add dx, ax
movsx eax, di
movsx ecx, dx
cmp ax, cx
jge 0x4a8e3c
lea edi, [eax + 0x31]
cmp edi, ecx
jge 0x4a8e4d
mov edi, edx
jmp 0x4a8e79
lea edx, [ecx + 0x31]
cmp edx, eax
jl 0x4a8e79
lea edx, [ecx + 0x1f]
cmp edx, eax
jge 0x4a8e59
inc edi
jmp 0x4a8e79
lea edi, [eax + 0x1f]
cmp edi, ecx
jge 0x4a8e6a
inc edx
mov edi, edx
jmp 0x4a8e79
mov edx, eax
sub edx, ecx
movzx ecx, byte [edx + str._n_n_t_t_b_b_a_a_a]
add eax, ecx
mov edi, eax
jmp 0x4a8e79
mov edx, ecx
sub edx, eax
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ecx, eax
mov edi, ecx
mov eax, dword [esp + 4]
movzx edx, word [eax + 0x14]
movsx eax, di
movsx ecx, dx
cmp ax, cx
jge 0x4a8e97
lea edi, [eax + 0x31]
cmp edi, ecx
jge 0x4a8ea8
mov edi, edx
jmp 0x4a8ed4
lea edx, [ecx + 0x31]
cmp edx, eax
jl 0x4a8ed4
lea edx, [ecx + 0x1f]
cmp edx, eax
jge 0x4a8eb4
inc edi
jmp 0x4a8ed4
lea edi, [eax + 0x1f]
cmp edi, ecx
jge 0x4a8ec5
inc edx
mov edi, edx
jmp 0x4a8ed4
mov edx, eax
sub edx, ecx
movzx ecx, byte [edx + str._n_n_t_t_b_b_a_a_a]
add eax, ecx
mov edi, eax
jmp 0x4a8ed4
mov edx, ecx
sub edx, eax
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ecx, eax
mov edi, ecx
mov dl, byte [esp + 0xc]
add si, word [ebx + 0x16]
mov ecx, dword [esp + 8]
test dl, dl
mov word [esp + 0x4e], si
js 0x4a8efa
mov eax, dword [esp + 4]
movsd xmm0, qword [eax + 8]
movsd qword [esp + 0x28], xmm0
jmp 0x4a8f2f
mov ecx, dword [esp + 0x40]
lea esi, [esp + 0x28]
movzx eax, word [ecx + 0x28]
mov edx, dword [ecx + 8]
mov dword [esp + 0xc], eax
mov eax, edi
movzx edi, word [esp + 0x3c]
push esi
push ebx
push edi
mov edi, eax
push dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.004b45b0
mov ecx, dword [esp + 0x1c]
add esp, 0x14
mov edx, eax
test dl, dl
mov byte [esp + 0xc], dl
js 0x4a8f9e
movsx esi, dl
mov eax, ecx
sub eax, esi
jle 0x4a8f9e
mov edx, dword [esp + 0x38]
mov dword [esp + 0x20], edi
movzx edx, word [edx + esi*2]
test dx, dx
jne 0x4a9103
imul eax, eax, 0x64
mov dword [esp + 0x64], esi
cdq
idiv ecx
cmp eax, 8
jae 0x4a8fb0
mov si, 0xffbe
cmp eax, 2
jb 0x4a902b
mov ecx, eax
mov dx, 0x1e
sar ecx, 0x1f
nop word [eax + eax]
mov esi, 3
lea edi, [eax + eax]
cmp esi, eax
mov esi, 0
sbb esi, ecx
jb 0x4a8fdd
shld ecx, eax, 1
add edx, 0xfffffff6
mov eax, edi
jmp 0x4a8f80
mov eax, edi
mov dword [esp + 0x1c], eax
lea eax, [edi - 2]
mov dword [esp + 0x20], eax
jmp 0x4a9159
mov ecx, eax
sar ecx, 0x1f
cmp eax, 0x100
jb 0x4a8fe1
mov dx, 0x50
mov edi, eax
mov eax, ecx
mov esi, ecx
shr ecx, 4
shld eax, edi, 0x1c
cmp edi, 0x1000
sbb esi, 0
jb 0x4a8fe5
add edx, 0x28
jmp 0x4a8fc0
mov eax, edi
jmp 0x4a9017
mov dx, 0x28
cmp eax, 0x10
mov esi, ecx
sbb esi, 0
jb 0x4a9017
nop
mov esi, eax
mov dword [esp + 0x1c], eax
mov eax, ecx
mov edi, ecx
add edx, 0xa
shld eax, esi, 0x1f
mov esi, 0x1f
shr edi, 1
cmp esi, dword [esp + 0x1c]
mov esi, 0
sbb esi, ecx
mov ecx, edi
jb 0x4a8ff0
and eax, 7
mov edi, dword [esp + 0x20]
add dx, word [eax + eax + 0x50ef44]
add edx, 0xffffffb4
mov esi, edx
mov eax, dword [esp + 0x40]
test byte [eax + 0x29], 0x40
mov eax, dword [esp + 0x50]
je 0x4a904d
mov eax, dword [esp + 0x40]
movzx ecx, word [eax + 0x2a]
mov eax, dword [esp + 0x50]
cmp cx, ax
cmovg ecx, eax
mov eax, ecx
mov ecx, dword [esp + 0x64]
xor edx, edx
cmp ax, 0xb
jl 0x4a90f5
movzx ecx, ax
mov dword [esp + 0x70], esi
mov esi, eax
mov ax, 0x28
cmp ecx, 0x100
jb 0x4a909f
movzx ecx, si
xor esi, esi
mov ax, 0x50
nop dword [eax + eax]
mov edx, ecx
mov ecx, esi
mov edi, esi
shr esi, 4
shld ecx, edx, 0x1c
cmp edx, 0x1000
sbb edi, 0
jb 0x4a909d
add eax, 0x28
jmp 0x4a9080
mov edx, esi
cmp ecx, 0x10
mov esi, edx
mov edi, edx
sbb esi, 0
jb 0x4a90d9
nop dword [eax + eax]
add eax, 0xa
mov esi, edi
mov edx, ecx
mov ecx, edi
mov dword [esp + 0x1c], eax
mov eax, 0x1f
shld ecx, edx, 0x1f
shr esi, 1
cmp eax, edx
mov eax, dword [esp + 0x1c]
mov edx, 0
sbb edx, edi
mov edi, esi
jb 0x4a90b0
and ecx, 7
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x70]
add ax, word [ecx + ecx + 0x50ef44]
mov ecx, dword [esp + 0x64]
add eax, 0xffffffd5
mov edx, eax
add esi, dword [esp + 0x74]
mov eax, dword [esp + 0x38]
add edx, esi
mov word [eax + ecx*2], dx
movsx eax, dx
movsx ecx, di
cmp di, ax
jge 0x4a9121
lea edi, [ecx + 0x31]
mov esi, edx
cmp edi, eax
jl 0x4a9152
lea edx, [ecx + 0x1f]
cmp edx, eax
jge 0x4a9136
inc esi
jmp 0x4a9152
lea edx, [eax + 0x31]
mov esi, edi
cmp edx, ecx
jl 0x4a9152
lea edx, [eax + 0x1f]
cmp edx, ecx
jge 0x4a9147
lea esi, [edi + 1]
jmp 0x4a9152
mov edx, eax
sub edx, ecx
movzx ecx, byte [edx + str._n_n_t_t_b_b_a_a_a]
add eax, ecx
mov esi, eax
jmp 0x4a9152
sub ecx, eax
movzx esi, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add esi, edi
add esi, 5
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x10], 0
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
jle 0x4a91f0
or dword [esp + 0x24], eax
or edx, dword [esp + 0x80]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
jmp 0x4a9198
add esi, 0x20
dec eax
mov edx, edi
je 0x4a91f0
mov ecx, dword [esi]
mov edi, edx
xor ecx, edx
mov edx, dword [esi + 4]
xor edx, dword [esp + 0x24]
or edx, ecx
jne 0x4a9190
movzx ecx, byte [esi + 0x16]
xor cl, byte [esp + 0xc]
js 0x4a9190
mov eax, dword [esp + 0x1c]
cmp word [esi + 0x12], ax
jl 0x4a8da0
jne 0x4a9335
movzx eax, word [esp + 0x4e]
mov edx, dword [esp + 0x20]
cmp word [esi + 0x10], ax
jl 0x4a8da0
jne 0x4a9342
cmp word [esi + 0x14], dx
mov ecx, dword [esp + 0x10]
jle 0x4a8da0
jmp 0x4a921a
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
cmp esi, dword [esp + 0x48]
jge 0x4a9308
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, edi
setl al
shl esi, 5
add esi, dword [esp + 0x30]
add ecx, eax
mov dword [esp + 0x20], edx
mov edi, ecx
mov eax, dword [ebx + 8]
mov edx, dword [esp + 4]
mov ecx, dword [ebx + 0xc]
or eax, dword [edx]
or ecx, dword [edx + 4]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xc], eax
movzx eax, word [esp + 0x4e]
mov dword [esi + 8], ecx
mov word [esi + 0x10], ax
mov eax, dword [esp + 0x1c]
mov word [esi + 0x12], ax
mov eax, dword [esp + 0x20]
mov word [esi + 0x14], ax
mov al, byte [esp + 0xc]
mov byte [esi + 0x16], al
push dword [esp + 0x78]
push dword [edx + 0x18]
push dword [esi + 0x18]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], edi
mov dword [eax + ecx*4], ebx
mov eax, dword [esp + 0x48]
cmp edi, eax
jl 0x4a8da0
cmp eax, 2
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], 0
movzx ecx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
jb 0x4a8da0
mov ecx, dword [esp + 0x6c]
mov eax, 1
mov dword [esp + 0x44], 0
jmp 0x4a92ef
movzx esi, word [ecx]
mov dword [esp + 0x58], edx
mov edx, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], edx
inc eax
add ecx, 0x20
cmp dword [esp + 0x48], eax
je 0x4a8da0
movzx edx, word [ecx - 2]
cmp dx, word [esp + 0x58]
jg 0x4a92d0
jne 0x4a92e1
movzx esi, word [ecx]
cmp si, word [esp + 0x54]
jg 0x4a92d3
jmp 0x4a92e1
mov ecx, dword [esp + 0x1c]
cmp cx, word [esp + 0x58]
jg 0x4a8da0
mov esi, dword [esp + 0x44]
jne 0x4a9202
cmp dx, word [esp + 0x54]
mov esi, dword [esp + 0x44]
jge 0x4a8da0
jmp 0x4a9202
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
jmp 0x4a921a
mov ecx, dword [esp + 0x10]
jmp 0x4a921a
test ecx, ecx
je 0x4a9378
cmp ecx, 2
jl 0x4a938e
mov edx, dword [esp + 0x30]
dec ecx
mov esi, ecx
lea eax, [edx + 0x20]
jmp 0x4a9368
add eax, 0x20
dec esi
mov edx, ecx
je 0x4a9392
movzx ecx, word [edx + 0x12]
cmp cx, word [eax + 0x12]
mov ecx, eax
jg 0x4a9360
mov ecx, edx
jmp 0x4a9360
push str.no_query_solution
push dword [esp + 0x60]
call fcn.0042af90
add esp, 8
jmp 0x4a95b6
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
test al, al
je 0x4a93e9
mov ecx, dword [ebx + 4]
mov edi, eax
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 4], ecx
lea ecx, [ebx + 0x330]
nop word cs:[eax + eax]
nop dword [eax]
mov esi, dword [eax + 0x18]
mov esi, dword [esi + edx*4]
inc edx
mov dword [ecx], esi
movzx ebx, byte [esi + 0x10]
mov byte [ecx - 0x14], bl
lea esi, [ebx + ebx*8]
mov ebx, dword [esp + 4]
mov esi, dword [ebx + esi*8 + 0x30]
mov dword [ecx - 0x44], esi
add ecx, 0x58
cmp edi, edx
jne 0x4a93c0
mov ebx, dword [esp + 0x40]
movzx eax, word [ebx + 0x28]
mov esi, dword [esp + 0x18]
and eax, 0x180
cmp eax, 0x100
jne 0x4a9466
cmp word [esp + 0x50], 0
je 0x4a9466
cmp byte [ebx + 0x2f], 0
jne 0x4a9466
mov edi, dword [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0xffffffff
mov ecx, dword [esi + 0x18]
mov edx, dword [ebx + 0xc]
lea eax, [edi - 1]
movzx eax, ax
mov dword [esp + 4], ecx
mov ecx, ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 8]
push dword [eax + edi*4 - 4]
push dword [esp + 0x2c]
push pe_nt_image_headers32
mov edi, esi
push esi
call fcn.004b45b0
add esp, 0x14
mov ecx, dword [ebx + 0xc]
movsx eax, al
cmp dword [ecx], eax
jne 0x4a9464
mov byte [ebx + 0x2f], 2
mov esi, edi
and byte [ebx + 0x30], 0xfb
mov edx, dword [ebx + 8]
test edx, edx
je 0x4a95ae
movzx eax, word [ebx + 0x28]
mov cl, byte [esi + 0x16]
test al, al
js 0x4a9527
mov byte [ebx + 0x2d], cl
mov edi, esi
test cl, cl
movsd xmm0, qword [esi + 8]
movsd qword [ebx + 0x40], xmm0
jg 0x4a9534
mov ecx, dword [esp + 0x14]
mov byte [ebx + 0x2d], 0
test cl, cl
je 0x4a9534
mov esi, ecx
mov ecx, dword [edi + 0x18]
mov esi, dword [ecx + esi*4 - 4]
mov ecx, dword [esi + 0x24]
test ecx, 0x1000
jne 0x4a9534
and ecx, 0x104
cmp ecx, 0x104
je 0x4a9534
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
lea ecx, [eax - 1]
lea eax, [esp + 0x28]
movzx edi, cx
mov ecx, ebx
push eax
mov eax, dword [esp + 0x1c]
push esi
push edi
push 0x800
mov edi, eax
push eax
call fcn.004b45b0
add esp, 0x14
mov edx, dword [ebx + 8]
movsx eax, al
cmp dword [edx], eax
jne 0x4a9521
or byte [ebx + 0x30], 4
movsd xmm0, qword [esp + 0x28]
movsd qword [ebx + 0x40], xmm0
movzx eax, word [ebx + 0x28]
jmp 0x4a9534
movsx ecx, cl
mov edi, esi
cmp dword [edx], ecx
jne 0x4a9534
mov byte [ebx + 0x2f], 2
test eax, 0x200
mov esi, edi
je 0x4a95ae
cmp byte [esp + 0x14], 0
je 0x4a95ae
movsx eax, byte [ebx + 0x2d]
mov esi, edi
cmp dword [edx], eax
jne 0x4a95ae
mov edi, dword [esp + 0x14]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov ecx, dword [esi + 0x18]
lea eax, [edi - 1]
movzx eax, ax
mov dword [esp + 4], ecx
mov ecx, ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 8]
push dword [eax + edi*4 - 4]
push dword [esp + 0x2c]
push 0
mov edi, esi
push esi
call fcn.004b45b0
add esp, 0x14
mov ecx, dword [ebx + 8]
movsx eax, al
cmp dword [ecx], eax
jne 0x4a95ac
or byte [ebx + 0x30], 8
movsd xmm0, qword [esp + 0x28]
movsd qword [ebx + 0x40], xmm0
mov esi, edi
movzx eax, word [esi + 0x10]
mov word [ebx + 0x32], ax
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x60]
call fcn.004352c0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret