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

Disassembly:
sub esp, 0x6c
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
movzx edx, byte [eax + 0x2e]
push ebx
xor ebx, ebx
cmp edx, 1
push ebp
mov dword [esp + 0x54], ecx
mov ecx, dword [ecx]
push esi
push edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x3c], edx
jg 0x4e1d2b
lea esi, [ebx + 1]
jmp 0x4e1d3a
mov esi, edx
sub esi, 2
neg esi
sbb esi, esi
and esi, 5
add esi, 5
mov eax, dword [eax + 8]
mov dword [esp + 0x40], esi
cmp eax, ebx
je 0x4e1d53
cmp word [esp + 0x84], bx
je 0x4e1d53
mov edi, dword [eax]
jmp 0x4e1d55
xor edi, edi
add edx, 8
imul edx, esi
lea eax, [edi + edx*4]
add eax, eax
cdq
push edx
push eax
mov eax, ecx
mov dword [esp + 0x5c], edi
call fcn.004754b0
mov edx, eax
add esp, 8
mov dword [esp + 0x2c], edx
cmp edx, ebx
jne 0x4e1d88
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov ecx, esi
shl ecx, 5
lea ebp, [ecx + edx]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
add ecx, ebp
lea eax, [esi + esi]
cmp eax, ebx
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x3c]
jle 0x4e1ddc
lea esi, [ebp*4]
add edx, 0x18
lea esp, [esp]
mov dword [edx], ecx
dec eax
add edx, 0x20
add ecx, esi
cmp eax, ebx
jg 0x4e1dd0
cmp edi, ebx
je 0x4e1df2
lea eax, [edi + edi]
push eax
push ebx
push ecx
mov dword [esp + 0x40], ecx
call fcn.004f0a6a
add esp, 0xc
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + 0x80]
cmp eax, 0x30
jb 0x4e1e06
mov eax, 0x30
mov edx, dword [esp + 0x30]
mov word [edx + 0x10], ax
mov eax, 1
cmp edi, ebx
je 0x4e1e25
cmp ebp, ebx
jle 0x4e1e20
or ecx, 0xffffffff
jmp 0x4e1e22
mov ecx, edi
mov byte [edx + 0x16], cl
cmp ebp, ebx
mov dword [esp + 0x38], ebx
jle 0x4e23b7
mov dword [esp + 0x28], 0
test eax, eax
jle 0x4e230f
mov edx, dword [esp + 0x30]
add edx, 0x10
mov dword [esp + 0x1c], edx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4e22ff
mov eax, dword [esp + 0x1c]
mov cl, byte [eax + 6]
mov edx, dword [eax - 0xc]
mov esi, dword [eax - 0x10]
mov edi, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x17], cl
xor ecx, ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov eax, esi
mov ecx, edx
not eax
and eax, dword [edi]
not ecx
and ecx, dword [edi + 4]
mov dword [esp + 0x78], edx
or eax, ecx
jne 0x4e22ec
mov eax, edi
mov ebp, dword [eax + 0xc]
mov edi, dword [eax + 8]
mov eax, edi
mov ecx, ebp
and eax, esi
and ecx, edx
or eax, ecx
jne 0x4e22ec
mov ecx, dword [esp + 0x20]
test dword [ecx + 0x24], 0x4000
je 0x4e1ed4
mov edx, dword [esp + 0x1c]
cmp word [edx], 3
jl 0x4e22ec
mov eax, dword [esp + 0x1c]
movzx eax, word [eax]
mov dx, word [ecx + 0x14]
movzx ecx, word [ecx + 0x12]
add dx, ax
movzx eax, dx
cmp cx, ax
jl 0x4e1f2b
movsx edx, ax
movsx eax, cx
lea ebx, [edx + 0x31]
cmp eax, ebx
jle 0x4e1f04
movzx eax, cx
mov dword [esp + 0x18], eax
jmp 0x4e1f62
lea ebx, [edx + 0x1f]
cmp eax, ebx
jle 0x4e1f15
inc ecx
movzx ecx, cx
mov dword [esp + 0x18], ecx
jmp 0x4e1f62
sub eax, edx
movzx dx, byte [eax + 0x50ab10]
add dx, cx
movzx eax, dx
mov dword [esp + 0x18], eax
jmp 0x4e1f62
movsx edx, cx
movsx ecx, ax
lea ebx, [edx + 0x31]
cmp ecx, ebx
jle 0x4e1f41
movzx ecx, ax
mov dword [esp + 0x18], ecx
jmp 0x4e1f62
lea ebx, [edx + 0x1f]
cmp ecx, ebx
jle 0x4e1f4e
inc eax
movzx edx, ax
jmp 0x4e1f5e
sub ecx, edx
movzx cx, byte [ecx + 0x50ab10]
add cx, ax
movzx edx, cx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
movzx ecx, word [edx + 4]
mov ax, word [esp + 0x18]
cmp ax, cx
jl 0x4e1f9d
movsx ecx, cx
cwde
lea ebx, [ecx + 0x31]
cmp eax, ebx
jg 0x4e1fd8
lea ebx, [ecx + 0x1f]
cmp eax, ebx
jle 0x4e1f8c
inc dword [esp + 0x18]
jmp 0x4e1fd8
sub eax, ecx
movzx ax, byte [eax + 0x50ab10]
add word [esp + 0x18], ax
jmp 0x4e1fd8
movsx edx, ax
movsx eax, cx
lea ebx, [edx + 0x31]
cmp eax, ebx
jle 0x4e1faf
movzx ecx, cx
jmp 0x4e1fd0
lea ebx, [edx + 0x1f]
cmp eax, ebx
jle 0x4e1fc0
inc ecx
movzx edx, cx
mov dword [esp + 0x18], edx
jmp 0x4e1fd4
sub eax, edx
movzx ax, byte [eax + 0x50ab10]
add ax, cx
movzx ecx, ax
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x1c]
movzx eax, word [edx]
mov ecx, dword [esp + 0x20]
mov bx, word [ecx + 0x16]
or ebp, dword [esp + 0x78]
add bx, ax
movzx eax, bx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x44], eax
mov al, byte [esp + 0x17]
or edi, esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], ebp
test al, al
jge 0x4e2031
lea eax, [esp + 0x64]
push eax
movzx eax, word [ebx + 0x2c]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [ebx + 8]
push eax
lea eax, [edx - 0x10]
push eax
push ecx
push ebx
call fcn.004e15d0
add esp, 0x1c
mov byte [esp + 0x17], al
jmp 0x4e203f
mov ecx, dword [edx - 8]
mov edx, dword [edx - 4]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
test al, al
jl 0x4e2167
mov ecx, dword [esp + 0x54]
movsx edi, al
cmp edi, ecx
jge 0x4e2167
mov eax, dword [esp + 0x34]
cmp word [eax + edi*2], 0
jne 0x4e20cb
mov eax, ecx
sub eax, edi
imul eax, eax, 0x64
cdq
idiv ecx
mov esi, dword [esp + 0x84]
movzx ebp, si
cdq
push edx
push eax
call fcn.00479360
add esi, 0xffffffce
add ax, si
mov ecx, 0x4000
add esp, 8
movzx esi, ax
test word [ebx + 0x2c], cx
je 0x4e20a5
movzx eax, word [ebx + 0x14]
cmp ax, word [esp + 0x84]
jge 0x4e20a5
movzx ebp, ax
cmp bp, 0xa
jg 0x4e20af
xor eax, eax
jmp 0x4e20c1
movsx eax, bp
cdq
push edx
push eax
call fcn.00479360
cwde
add esp, 8
sub eax, 0x21
mov edx, dword [esp + 0x34]
add eax, esi
mov word [edx + edi*2], ax
mov eax, dword [esp + 0x34]
movzx eax, word [eax + edi*2]
mov dx, word [esp + 0x18]
cmp dx, ax
movsx ecx, ax
jl 0x4e2127
movsx eax, dx
lea esi, [ecx + 0x31]
cmp eax, esi
jle 0x4e20f8
movzx eax, dx
add eax, 5
movzx esi, ax
jmp 0x4e2171
lea esi, [ecx + 0x1f]
cmp eax, esi
jle 0x4e210f
mov ecx, dword [esp + 0x18]
inc ecx
movzx eax, cx
add eax, 5
movzx esi, ax
jmp 0x4e2171
sub eax, ecx
movzx ax, byte [eax + 0x50ab10]
add ax, dx
movzx eax, ax
add eax, 5
movzx esi, ax
jmp 0x4e2171
movsx edx, dx
lea esi, [edx + 0x31]
cmp ecx, esi
jle 0x4e213c
movzx eax, ax
add eax, 5
movzx esi, ax
jmp 0x4e2171
lea esi, [edx + 0x1f]
cmp ecx, esi
jle 0x4e214f
inc eax
movzx eax, ax
add eax, 5
movzx esi, ax
jmp 0x4e2171
sub ecx, edx
movzx cx, byte [ecx + 0x50ab10]
add cx, ax
movzx eax, cx
add eax, 5
movzx esi, ax
jmp 0x4e2171
movzx esi, word [esp + 0x18]
sub dword [esp + 0x18], 2
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
xor eax, eax
test ecx, ecx
jle 0x4e21ad
mov edx, dword [esp + 0x70]
mov ebp, dword [esp + 0x6c]
mov ebx, dword [edi]
cmp ebx, ebp
jne 0x4e219f
mov ebx, dword [edi + 4]
cmp ebx, edx
jne 0x4e219f
mov bl, byte [edi + 0x16]
xor bl, byte [esp + 0x17]
test bl, bl
jns 0x4e21a9
inc eax
add edi, 0x20
cmp eax, ecx
jl 0x4e2187
jmp 0x4e21ad
cmp eax, ecx
jl 0x4e21f5
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
cmp eax, ebx
jl 0x4e21e5
mov eax, dword [esp + 0x50]
cmp si, ax
jg 0x4e22ec
jne 0x4e21d8
mov dx, word [esp + 0x18]
cmp dx, word [esp + 0x4c]
jge 0x4e22ec
mov edi, dword [esp + 0x48]
shl edi, 5
add edi, dword [esp + 0x24]
jmp 0x4e2228
mov edi, eax
inc eax
shl edi, 5
add edi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
jmp 0x4e2228
movzx eax, word [edi + 0x12]
cmp ax, si
jl 0x4e22ec
jne 0x4e2224
movzx eax, word [edi + 0x10]
cmp ax, word [esp + 0x44]
jl 0x4e22ec
jne 0x4e2224
mov ax, word [esp + 0x18]
cmp word [edi + 0x14], ax
jle 0x4e22ec
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov eax, dword [esp + 0x1c]
or edx, dword [eax - 0x10]
or ecx, dword [eax - 0xc]
mov ebp, dword [esp + 0x38]
mov dword [edi], edx
mov edx, dword [esp + 0x64]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x68]
mov dword [edi + 8], edx
mov dx, word [esp + 0x44]
mov dword [edi + 0xc], ecx
mov cx, word [esp + 0x18]
mov word [edi + 0x10], dx
mov dl, byte [esp + 0x17]
add ebp, ebp
mov word [edi + 0x14], cx
mov ecx, dword [edi + 0x18]
mov word [edi + 0x12], si
mov byte [edi + 0x16], dl
mov eax, dword [eax + 8]
add ebp, ebp
push ebp
push eax
push ecx
call fcn.004f0800
mov edx, dword [edi + 0x18]
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp dword [esp + 0x28], ebx
mov dword [edx + ebp], eax
jl 0x4e22ec
mov eax, dword [esp + 0x24]
movzx esi, word [eax + 0x12]
movzx edi, word [eax + 0x10]
mov eax, 1
cmp ebx, eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edi
jle 0x4e22ec
mov ecx, dword [esp + 0x24]
add ecx, 0x32
movzx edx, word [ecx]
cmp dx, si
jg 0x4e22d1
jne 0x4e22dc
cmp word [ecx + 2], di
jle 0x4e22dc
movzx edi, word [ecx + 2]
movzx esi, dx
mov dword [esp + 0x48], eax
inc eax
add ecx, 0x20
cmp eax, ebx
jl 0x4e22c1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], esi
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4e1e66
add dword [esp + 0x1c], 0x20
sub dword [esp + 0x58], 1
jne 0x4e1e50
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
inc ecx
cmp ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], ecx
jl 0x4e1e31
test eax, eax
jne 0x4e23b7
mov esi, dword [esp + 0x5c]
push str.no_query_solution
call fcn.00478120
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x30]
add esp, 4
test ecx, ecx
je 0x4e23a1
cmp dword [ecx + 0x1d8], 0
je 0x4e2376
call fcn.00475120
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
cmp eax, dword [ecx + 0x128]
jb 0x4e23a1
cmp eax, dword [ecx + 0x12c]
jae 0x4e23a1
mov edx, dword [ecx + 0x124]
mov dword [eax], edx
mov dword [ecx + 0x124], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
push eax
call fcn.004750b0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
cmp eax, 1
mov ecx, dword [esp + 0x30]
mov edi, ecx
jle 0x4e23da
add ecx, 0x20
dec eax
mov dx, word [edi + 0x12]
cmp dx, word [ecx + 0x12]
jle 0x4e23d2
mov edi, ecx
add ecx, 0x20
sub eax, 1
jne 0x4e23c6
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x80]
xor esi, esi
xor ecx, ecx
cmp ebp, esi
jle 0x4e241b
lea eax, [ebx + 0x31c]
mov edx, dword [edi + 0x18]
mov esi, dword [edx + ecx*4]
mov dword [eax + 0x14], esi
mov dl, byte [esi + 0x10]
mov byte [eax], dl
mov esi, dword [ebx + 4]
movzx edx, dl
lea edx, [edx + edx*8]
mov edx, dword [esi + edx*8 + 0x34]
mov dword [eax - 0x28], edx
inc ecx
add eax, 0x50
cmp ecx, ebp
jl 0x4e23f3
xor esi, esi
movzx eax, word [ebx + 0x2c]
test eax, 0x100
je 0x4e246c
test al, al
js 0x4e246c
cmp byte [ebx + 0x33], 0
jne 0x4e246c
cmp word [esp + 0x84], si
je 0x4e246c
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx + ebp*4 - 4]
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x74]
push eax
push edx
lea eax, [ebp - 1]
push eax
push 0x80
push edi
push ecx
push ebx
call fcn.004e15d0
mov edx, dword [ebx + 0xc]
movsx eax, al
add esp, 0x1c
cmp eax, dword [edx]
jne 0x4e246c
mov byte [ebx + 0x33], 2
mov eax, dword [ebx + 8]
mov byte [ebx + 0x34], 0
cmp eax, esi
je 0x4e257a
test byte [ebx + 0x2c], 0x80
je 0x4e2496
movsx ecx, byte [edi + 0x16]
cmp ecx, dword [eax]
jne 0x4e251e
mov byte [ebx + 0x33], 2
jmp 0x4e251e
mov dl, byte [edi + 0x16]
mov byte [ebx + 0x2f], dl
cmp byte [ebx + 0x2f], 0
mov ecx, dword [edi + 8]
mov dword [ebx + 0x40], ecx
mov edx, dword [edi + 0xc]
mov dword [ebx + 0x44], edx
jg 0x4e251e
cmp ebp, esi
mov byte [ebx + 0x2f], 0
jle 0x4e251e
mov ecx, dword [edi + 0x18]
mov ecx, dword [ecx + ebp*4 - 4]
mov edx, dword [ecx + 0x24]
test edx, 0x1000
jne 0x4e251e
and edx, 0x104
cmp edx, 0x104
je 0x4e251e
lea edx, [esp + 0x64]
push edx
push ecx
lea ecx, [ebp - 1]
push ecx
push 0x800
push edi
push eax
push ebx
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
call fcn.004e15d0
movsx ecx, al
mov eax, dword [ebx + 8]
add esp, 0x1c
cmp ecx, dword [eax]
jne 0x4e251e
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov byte [ebx + 0x34], 1
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], ecx
mov edx, 0x200
test word [ebx + 0x2c], dx
je 0x4e257a
movsx ecx, byte [ebx + 0x2f]
cmp ecx, dword [eax]
jne 0x4e257a
cmp ebp, esi
jle 0x4e257a
mov ecx, dword [edi + 0x18]
lea edx, [esp + 0x64]
push edx
mov edx, dword [ecx + ebp*4 - 4]
push edx
dec ebp
push ebp
push esi
push edi
push eax
push ebx
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
call fcn.004e15d0
mov ecx, dword [ebx + 8]
movsx eax, al
add esp, 0x1c
cmp eax, dword [ecx]
jne 0x4e257a
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov byte [ebx + 0x30], 1
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], eax
mov cx, word [edi + 0x10]
mov word [ebx + 0x48], cx
mov ecx, dword [esp + 0x60]
cmp ecx, esi
je 0x4e25d1
cmp dword [ecx + 0x1d8], esi
je 0x4e25a5
mov eax, dword [esp + 0x2c]
call fcn.00475120
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov edi, dword [esp + 0x2c]
cmp edi, dword [ecx + 0x128]
jb 0x4e25d5
cmp edi, dword [ecx + 0x12c]
jae 0x4e25d5
mov edx, dword [ecx + 0x124]
mov dword [edi], edx
mov dword [ecx + 0x124], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov edi, dword [esp + 0x2c]
cmp dword [0x52e0e0], esi
je 0x4e262d
mov eax, dword [0x53a950]
cmp eax, esi
je 0x4e25f0
push eax
call dword [0x52e13c]
add esp, 4
push edi
call dword [0x52e118]
sub dword [0x53a8e8], eax
dec dword [0x53a90c]
add esp, 4
push edi
call dword [0x52e110]
mov eax, dword [0x53a950]
add esp, 4
cmp eax, esi
je 0x4e2637
push eax
call dword [0x52e144]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
push edi
call dword [0x52e110]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret