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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff7c
mov word [esp + 4], dx
mov dword [esp], eax
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x24], 0
mov word [esp + 0x26], 0
mov dword [esp + 0x38], edx
mov ecx, dword [esp]
mov eax, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov edx, dword [esp]
mov cl, byte [edx + 0x2c]
mov dword [esp + 0xc], ecx
cmp dword [esp + 0xc], 1
jg 0x611d87
mov eax, 1
jmp 0x611d9a
cmp dword [esp + 0xc], 2
jne 0x611d95
mov eax, 5
jmp 0x611d9a
mov eax, 0xa
mov dword [esp + 8], eax
mov edx, dword [esp]
cmp dword [edx + 8], 0
je 0x611daf
cmp word [esp + 4], 0
jne 0x611db7
xor ecx, ecx
mov dword [esp + 0x20], ecx
jmp 0x611dc3
mov eax, dword [esp]
mov edx, dword [eax + 8]
mov ecx, dword [edx]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0xc]
shl eax, 2
add eax, 0x20
imul dword [esp + 8]
add eax, eax
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x20]
add edx, edx
add edx, dword [esp + 0x40]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x40]
cdq
push edx
push eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
call fcn.0064ce10
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], 0
jne 0x611e0c
mov eax, 7
jmp 0x61257e
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 8]
shl ecx, 5
add ecx, dword [esp + 0x34]
xor edx, edx
mov dword [esp + 0x30], ecx
mov ecx, 0x20
mov eax, dword [esp + 0x30]
call fcn.005c83cc
mov eax, dword [esp + 8]
mov edx, dword [esp + 8]
shl eax, 5
add edx, edx
add eax, dword [esp + 0x30]
mov dword [esp + 0x18], edx
cmp dword [esp + 0x18], 0
mov edi, dword [esp + 0x34]
jle 0x611e6d
mov dword [edi + 0x18], eax
dec dword [esp + 0x18]
add edi, 0x20
mov edx, dword [esp + 0xc]
shl edx, 2
add eax, edx
cmp dword [esp + 0x18], 0
jg 0x611e53
cmp dword [esp + 0x20], 0
je 0x611e89
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x20]
add ecx, ecx
xor edx, edx
mov eax, dword [esp + 0x38]
call fcn.005c83cc
mov ecx, dword [esp + 0x10]
cmp word [ecx + 0x9c], 0x30
jge 0x611ea4
mov eax, dword [esp + 0x10]
mov dx, word [eax + 0x9c]
jmp 0x611ea8
mov dx, 0x30
mov eax, dword [esp + 0x30]
mov word [eax + 0x10], dx
mov dword [esp + 0x2c], 1
cmp dword [esp + 0x20], 0
je 0x611ed6
cmp dword [esp + 0xc], 0
jle 0x611ecb
or ecx, 0xffffffff
jmp 0x611ecf
mov cl, byte [esp + 0x20]
mov eax, dword [esp + 0x30]
mov byte [eax + 0x16], cl
xor edx, edx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xc]
jge 0x61224e
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
cmp eax, dword [esp + 0x2c]
jge 0x612224
mov edx, dword [esp]
mov esi, dword [edx + 0x3c]
test esi, esi
je 0x61220f
mov eax, dword [edi]
mov edx, dword [edi + 4]
not eax
not edx
and eax, dword [esi]
and edx, dword [esi + 4]
cmp edx, 0
jne 0x611f2c
cmp eax, 0
jne 0x612204
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
and eax, dword [edi]
and edx, dword [edi + 4]
cmp edx, 0
jne 0x611f45
cmp eax, 0
jne 0x612204
test byte [esi + 0x29], 0x40
je 0x611f5d
cmp word [edi + 0x10], 3
jge 0x611f5d
jmp 0x612204
mov dx, word [esi + 0x14]
add dx, word [edi + 0x10]
mov ax, word [esi + 0x12]
call fcn.00646e88
mov word [esp + 0x46], ax
mov dx, word [edi + 0x14]
mov ax, word [esp + 0x46]
call fcn.00646e88
mov word [esp + 0x46], ax
mov cx, word [edi + 0x10]
add cx, word [esi + 0x16]
mov word [esp + 0x44], cx
mov eax, dword [edi]
mov edx, dword [edi + 4]
or eax, dword [esi + 8]
or edx, dword [esi + 0xc]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
mov al, byte [edi + 0x16]
mov byte [esp + 0x48], al
cmp byte [esp + 0x48], 0
jge 0x611ff0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov edx, dword [esp]
mov cx, word [edx + 0x28]
push ecx
mov ax, word [esp + 0x18]
push eax
push esi
lea edx, [esp + 0x60]
push edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
mov ecx, edi
mov eax, dword [esp + 0x10]
call fcn.00611518
mov byte [esp + 0x48], al
jmp 0x611ffe
mov eax, dword [edi + 8]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x58], eax
cmp byte [esp + 0x48], 0
jl 0x612055
movsx edx, byte [esp + 0x48]
cmp edx, dword [esp + 0x20]
jge 0x612055
movsx ebx, byte [esp + 0x48]
mov eax, dword [esp + 0x38]
cmp word [eax + ebx*2], 0
jne 0x61203b
push ebx
mov dx, word [esp + 8]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 4]
call fcn.00611c9c
mov edx, dword [esp + 0x38]
mov word [edx + ebx*2], ax
mov ecx, dword [esp + 0x38]
mov ax, word [esp + 0x46]
mov dx, word [ecx + ebx*2]
call fcn.00646e88
mov ebp, eax
add bp, 3
jmp 0x612060
mov bp, word [esp + 0x46]
add word [esp + 0x46], 0xfffe
xor ecx, ecx
mov ebx, dword [esp + 0x34]
cmp ecx, dword [esp + 0x28]
jge 0x612094
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
cmp edx, dword [esp + 0x50]
jne 0x61208a
cmp eax, dword [esp + 0x4c]
jne 0x61208a
mov al, byte [ebx + 0x16]
xor al, byte [esp + 0x48]
test al, 0x80
jne 0x61208a
jmp 0x612094
inc ecx
add ebx, 0x20
cmp ecx, dword [esp + 0x28]
jl 0x61206c
cmp ecx, dword [esp + 0x28]
jl 0x6120ea
mov edx, dword [esp + 0x28]
cmp edx, dword [esp + 8]
jl 0x6120c7
cmp bp, word [esp + 0x24]
jg 0x612204
cmp bp, word [esp + 0x24]
jne 0x6120c7
mov cx, word [esp + 0x46]
cmp cx, word [esp + 0x26]
jl 0x6120c7
jmp 0x612204
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 8]
jge 0x6120db
mov ecx, dword [esp + 0x28]
inc dword [esp + 0x28]
jmp 0x6120df
mov ecx, dword [esp + 0x1c]
mov ebx, ecx
shl ebx, 5
add ebx, dword [esp + 0x34]
jmp 0x612124
cmp bp, word [ebx + 0x12]
jg 0x612204
cmp bp, word [ebx + 0x12]
jne 0x612124
mov ax, word [ebx + 0x10]
cmp ax, word [esp + 0x44]
jl 0x612204
mov dx, word [ebx + 0x10]
cmp dx, word [esp + 0x44]
jne 0x612124
mov cx, word [ebx + 0x14]
cmp cx, word [esp + 0x46]
jg 0x612124
jmp 0x612204
mov eax, dword [edi]
mov edx, dword [edi + 4]
push edx
push eax
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ecx, dword [esp + 0x54]
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [ebx + 0xc], ecx
mov ax, word [esp + 0x44]
mov word [ebx + 0x10], ax
mov word [ebx + 0x12], bp
mov dx, word [esp + 0x46]
mov word [ebx + 0x14], dx
mov cl, byte [esp + 0x48]
mov byte [ebx + 0x16], cl
mov ecx, dword [esp + 0x14]
shl ecx, 2
mov edx, dword [edi + 0x18]
mov eax, dword [ebx + 0x18]
call fcn.005c83bc
mov eax, dword [ebx + 0x18]
mov edx, dword [esp + 0x14]
mov dword [eax + edx*4], esi
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 8]
jl 0x612204
xor eax, eax
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x34]
mov cx, word [edx + 0x12]
mov word [esp + 0x24], cx
mov eax, dword [esp + 0x34]
mov dx, word [eax + 0x10]
mov word [esp + 0x26], dx
mov ecx, 1
mov ebx, dword [esp + 0x34]
add ebx, 0x20
cmp ecx, dword [esp + 8]
jge 0x612204
mov ax, word [ebx + 0x12]
cmp ax, word [esp + 0x24]
jg 0x6121e4
mov dx, word [ebx + 0x12]
cmp dx, word [esp + 0x24]
jne 0x6121fa
mov ax, word [ebx + 0x14]
cmp ax, word [esp + 0x26]
jle 0x6121fa
mov dx, word [ebx + 0x12]
mov word [esp + 0x24], dx
mov ax, word [ebx + 0x14]
mov word [esp + 0x26], ax
mov dword [esp + 0x1c], ecx
inc ecx
add ebx, 0x20
cmp ecx, dword [esp + 8]
jl 0x6121c3
mov esi, dword [esi + 0x38]
test esi, esi
jne 0x611f16
inc dword [esp + 0x18]
add edi, 0x20
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x2c]
jl 0x611f08
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edi
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
inc dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0xc]
jl 0x611eea
cmp dword [esp + 0x2c], 0
jne 0x612280
push str.no_query_solution
mov eax, dword [esp + 0x14]
push eax
call fcn.00645028
add esp, 8
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
mov edx, dword [esp + 0x3c]
call fcn.0064cabc
mov eax, 1
jmp 0x61257e
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x30]
add eax, 0x32
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x2c]
jge 0x6122c2
mov cx, word [edi + 0x12]
cmp cx, word [eax]
jle 0x6122b1
mov edi, dword [esp + 0x18]
shl edi, 5
add edi, dword [esp + 0x30]
inc dword [esp + 0x18]
add eax, 0x20
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x2c]
jl 0x61229d
xor eax, eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0xc]
jge 0x61231e
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x18]
mov edx, eax
lea eax, [edx + eax*2]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x14]
shl eax, 3
add eax, dword [esp]
mov esi, dword [ecx + edx*4]
add eax, 0x2f8
xor ecx, ecx
mov dword [eax + 0x50], esi
mov dl, byte [esi + 0x10]
mov byte [eax + 0x3c], dl
mov cl, dl
mov edx, dword [esp]
shl ecx, 6
mov edx, dword [edx + 4]
mov ecx, dword [edx + ecx + 0x30]
mov dword [eax + 4], ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xc]
jl 0x6122d2
mov esi, dword [esp]
test byte [esi + 0x29], 1
je 0x612390
mov eax, dword [esp]
test byte [eax + 0x28], 0x80
jne 0x612390
mov edx, dword [esp]
cmp byte [edx + 0x2f], 0
jne 0x612390
cmp word [esp + 4], 0
je 0x612390
push 0x80
mov cx, word [esp + 0x10]
add cx, 0xffff
push ecx
mov esi, dword [edi + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + eax*4 - 4]
push edx
lea ecx, [esp + 0x68]
push ecx
mov ecx, edi
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
call fcn.00611518
movsx esi, al
mov dword [esp + 0x64], esi
mov eax, dword [esp]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
cmp ecx, dword [esp + 0x64]
jne 0x612390
mov esi, dword [esp]
mov byte [esi + 0x2f], 2
mov eax, dword [esp]
and byte [eax + 0x30], 0xfb
mov edx, dword [esp]
cmp dword [edx + 8], 0
je 0x612562
mov cl, byte [edi + 0x16]
mov ebx, dword [esp]
mov byte [ebx + 0x2d], cl
mov eax, dword [esp]
test byte [eax + 0x28], 0x80
je 0x6123d4
movsx edx, byte [edi + 0x16]
mov ecx, dword [esp]
mov eax, dword [ecx + 8]
cmp edx, dword [eax]
jne 0x6124c7
mov edx, dword [esp]
mov byte [edx + 0x2f], 2
jmp 0x6124c7
mov ecx, dword [esp]
mov ebx, dword [edi + 8]
mov dword [ecx + 0x48], ebx
mov ebx, dword [edi + 0xc]
mov dword [ecx + 0x4c], ebx
mov eax, dword [esp]
cmp byte [eax + 0x2d], 0
jg 0x6124a7
mov edx, dword [esp]
mov byte [edx + 0x2d], 0
cmp dword [esp + 0xc], 0
jle 0x6124c7
mov ecx, dword [edi + 0x18]
mov ebx, dword [esp + 0xc]
mov eax, dword [ecx + ebx*4 - 4]
mov edx, dword [eax + 0x28]
mov dword [esp + 0x68], edx
test byte [esp + 0x69], 0x10
jne 0x6124c7
mov ecx, dword [esp + 0x68]
and ecx, 0x104
cmp ecx, 0x104
je 0x6124c7
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
push 0x800
mov si, word [esp + 0x10]
add si, 0xffff
push esi
mov eax, dword [edi + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + edx*4 - 4]
push ecx
lea esi, [esp + 0x78]
push esi
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov ecx, edi
mov eax, dword [esp + 0x10]
call fcn.00611518
movsx edx, al
mov dword [esp + 0x74], edx
mov ecx, dword [esp]
mov esi, dword [ecx + 8]
mov eax, dword [esi]
cmp eax, dword [esp + 0x74]
jne 0x6124c7
mov edx, dword [esp]
or byte [edx + 0x30], 4
mov ecx, dword [esp]
mov ebx, dword [esp + 0x6c]
mov dword [ecx + 0x48], ebx
mov ebx, dword [esp + 0x70]
mov dword [ecx + 0x4c], ebx
jmp 0x6124c7
cmp dword [esp + 0xc], 0
je 0x6124c7
mov eax, dword [esp]
cmp byte [eax + 0x2d], 1
jne 0x6124c7
mov edx, dword [esp]
test byte [edx + 0x28], 3
je 0x6124c7
mov ecx, dword [esp]
or byte [ecx + 0x30], 4
mov esi, dword [esp]
test byte [esi + 0x29], 2
je 0x612562
mov eax, dword [esp]
mov ecx, dword [esp]
movsx edx, byte [eax + 0x2d]
mov eax, dword [ecx + 8]
cmp edx, dword [eax]
jne 0x612562
cmp dword [esp + 0xc], 0
jle 0x612562
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
push 0
mov dx, word [esp + 0x10]
add dx, 0xffff
push edx
mov ecx, dword [edi + 0x18]
mov ebx, dword [esp + 0x14]
mov eax, dword [ecx + ebx*4 - 4]
push eax
lea edx, [esp + 0x84]
push edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
mov ecx, edi
mov eax, dword [esp + 0x10]
call fcn.00611518
movsx esi, al
mov dword [esp + 0x80], esi
mov eax, dword [esp]
mov edx, dword [eax + 8]
mov ecx, dword [edx]
cmp ecx, dword [esp + 0x80]
jne 0x612562
mov esi, dword [esp]
or byte [esi + 0x30], 8
mov eax, dword [esp]
mov edx, dword [esp + 0x78]
mov dword [eax + 0x48], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + 0x4c], edx
mov cx, word [edi + 0x10]
mov ebx, dword [esp]
mov word [ebx + 0x32], cx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
mov eax, dword [eax]
call fcn.0064cabc
xor eax, eax
add esp, 0x84
pop ebp
pop edi
pop esi
pop ebx
ret