Function at 0x611044
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 0x611093
mov eax, 1
jmp 0x6110a6
cmp dword [esp + 0xc], 2
jne 0x6110a1
mov eax, 5
jmp 0x6110a6
mov eax, 0xa
mov dword [esp + 8], eax
mov edx, dword [esp]
cmp dword [edx + 8], 0
je 0x6110bb
cmp word [esp + 4], 0
jne 0x6110c3
xor ecx, ecx
mov dword [esp + 0x20], ecx
jmp 0x6110cf
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.0064b8a4
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], 0
jne 0x611118
mov eax, 7
jmp 0x6118be
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 0x611179
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 0x61115f
cmp dword [esp + 0x20], 0
je 0x611195
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 0x6111b0
mov eax, dword [esp + 0x10]
mov dx, word [eax + 0x9c]
jmp 0x6111b4
mov dx, 0x30
mov eax, dword [esp + 0x30]
mov word [eax + 0x10], dx
mov dword [esp + 0x2c], 1
cmp dword [esp + 0x20], 0
je 0x6111e2
cmp dword [esp + 0xc], 0
jle 0x6111d7
or ecx, 0xffffffff
jmp 0x6111db
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 0x61155a
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 0x611530
mov edx, dword [esp]
mov esi, dword [edx + 0x3c]
test esi, esi
je 0x61151b
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 0x611238
cmp eax, 0
jne 0x611510
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
and eax, dword [edi]
and edx, dword [edi + 4]
cmp edx, 0
jne 0x611251
cmp eax, 0
jne 0x611510
test byte [esi + 0x29], 0x40
je 0x611269
cmp word [edi + 0x10], 3
jge 0x611269
jmp 0x611510
mov dx, word [esi + 0x14]
add dx, word [edi + 0x10]
mov ax, word [esi + 0x12]
call fcn.00645cdc
mov word [esp + 0x46], ax
mov dx, word [edi + 0x14]
mov ax, word [esp + 0x46]
call fcn.00645cdc
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 0x6112fc
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.00610828
mov byte [esp + 0x48], al
jmp 0x61130a
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 0x611361
movsx edx, byte [esp + 0x48]
cmp edx, dword [esp + 0x20]
jge 0x611361
movsx ebx, byte [esp + 0x48]
mov eax, dword [esp + 0x38]
cmp word [eax + ebx*2], 0
jne 0x611347
push ebx
mov dx, word [esp + 8]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 4]
call fcn.00610fa8
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.00645cdc
mov ebp, eax
add bp, 3
jmp 0x61136c
mov bp, word [esp + 0x46]
add word [esp + 0x46], 0xfffe
xor ecx, ecx
mov ebx, dword [esp + 0x34]
cmp ecx, dword [esp + 0x28]
jge 0x6113a0
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
cmp edx, dword [esp + 0x50]
jne 0x611396
cmp eax, dword [esp + 0x4c]
jne 0x611396
mov al, byte [ebx + 0x16]
xor al, byte [esp + 0x48]
test al, 0x80
jne 0x611396
jmp 0x6113a0
inc ecx
add ebx, 0x20
cmp ecx, dword [esp + 0x28]
jl 0x611378
cmp ecx, dword [esp + 0x28]
jl 0x6113f6
mov edx, dword [esp + 0x28]
cmp edx, dword [esp + 8]
jl 0x6113d3
cmp bp, word [esp + 0x24]
jg 0x611510
cmp bp, word [esp + 0x24]
jne 0x6113d3
mov cx, word [esp + 0x46]
cmp cx, word [esp + 0x26]
jl 0x6113d3
jmp 0x611510
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 8]
jge 0x6113e7
mov ecx, dword [esp + 0x28]
inc dword [esp + 0x28]
jmp 0x6113eb
mov ecx, dword [esp + 0x1c]
mov ebx, ecx
shl ebx, 5
add ebx, dword [esp + 0x34]
jmp 0x611430
cmp bp, word [ebx + 0x12]
jg 0x611510
cmp bp, word [ebx + 0x12]
jne 0x611430
mov ax, word [ebx + 0x10]
cmp ax, word [esp + 0x44]
jl 0x611510
mov dx, word [ebx + 0x10]
cmp dx, word [esp + 0x44]
jne 0x611430
mov cx, word [ebx + 0x14]
cmp cx, word [esp + 0x46]
jg 0x611430
jmp 0x611510
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 0x611510
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 0x611510
mov ax, word [ebx + 0x12]
cmp ax, word [esp + 0x24]
jg 0x6114f0
mov dx, word [ebx + 0x12]
cmp dx, word [esp + 0x24]
jne 0x611506
mov ax, word [ebx + 0x14]
cmp ax, word [esp + 0x26]
jle 0x611506
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 0x6114cf
mov esi, dword [esi + 0x38]
test esi, esi
jne 0x611222
inc dword [esp + 0x18]
add edi, 0x20
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x2c]
jl 0x611214
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 0x6111f6
cmp dword [esp + 0x2c], 0
jne 0x61158c
push str.no_query_solution
mov eax, dword [esp + 0x14]
push eax
call fcn.00643f68
add esp, 8
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
mov edx, dword [esp + 0x3c]
call fcn.0064b550
mov eax, 1
jmp 0x6118be
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 0x6115ce
mov cx, word [edi + 0x12]
cmp cx, word [eax]
jle 0x6115bd
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 0x6115a9
xor eax, eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0xc]
jge 0x61162a
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 0x6115de
mov esi, dword [esp]
test byte [esi + 0x29], 1
je 0x61169c
mov eax, dword [esp]
test byte [eax + 0x28], 0x80
jne 0x61169c
mov edx, dword [esp]
cmp byte [edx + 0x2f], 0
jne 0x61169c
cmp word [esp + 4], 0
je 0x61169c
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.00610828
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 0x61169c
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 0x6118a2
mov cl, byte [edi + 0x16]
mov ebx, dword [esp]
mov byte [ebx + 0x2d], cl
mov eax, dword [esp]
test byte [eax + 0x28], 0x80
je 0x611715
movsx edx, byte [edi + 0x16]
mov ecx, dword [esp]
mov eax, dword [ecx + 8]
cmp edx, dword [eax]
jne 0x6116d7
mov edx, dword [esp]
mov byte [edx + 0x2f], 2
mov ecx, dword [esp]
mov esi, dword [ecx + 0x10]
cmp dword [esi + 0x30], 0
je 0x611807
mov eax, dword [esp]
mov ecx, dword [esp]
movsx edx, byte [eax + 0x2d]
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + 0x30]
cmp edx, dword [ecx]
jle 0x611807
mov edx, dword [esp]
mov ecx, dword [esp]
mov esi, dword [edx + 0x10]
mov eax, dword [esi + 0x30]
mov dl, byte [eax]
mov byte [ecx + 0x2d], dl
jmp 0x611807
mov esi, dword [esp]
mov eax, dword [edi + 8]
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x4c], eax
mov edx, dword [esp]
cmp byte [edx + 0x2d], 0
jg 0x6117e7
mov ecx, dword [esp]
mov byte [ecx + 0x2d], 0
cmp dword [esp + 0xc], 0
jle 0x611807
mov esi, dword [edi + 0x18]
mov eax, dword [esp + 0xc]
mov edx, dword [esi + eax*4 - 4]
mov ecx, dword [edx + 0x28]
mov dword [esp + 0x68], ecx
test byte [esp + 0x69], 0x10
jne 0x611807
mov esi, dword [esp + 0x68]
and esi, 0x104
cmp esi, 0x104
je 0x611807
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
push 0x800
mov ax, word [esp + 0x10]
add ax, 0xffff
push eax
mov edx, dword [edi + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + ecx*4 - 4]
push eax
lea edx, [esp + 0x78]
push edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
mov ecx, edi
mov eax, dword [esp + 0x10]
call fcn.00610828
movsx esi, al
mov dword [esp + 0x74], esi
mov eax, dword [esp]
mov edx, dword [eax + 8]
mov ecx, dword [edx]
cmp ecx, dword [esp + 0x74]
jne 0x611807
mov esi, dword [esp]
or byte [esi + 0x30], 4
mov eax, dword [esp]
mov edx, dword [esp + 0x6c]
mov dword [eax + 0x48], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 0x4c], edx
jmp 0x611807
cmp dword [esp + 0xc], 0
je 0x611807
mov ecx, dword [esp]
cmp byte [ecx + 0x2d], 1
jne 0x611807
mov esi, dword [esp]
test byte [esi + 0x28], 3
je 0x611807
mov eax, dword [esp]
or byte [eax + 0x30], 4
mov edx, dword [esp]
test byte [edx + 0x29], 2
je 0x6118a2
mov ecx, dword [esp]
mov eax, dword [esp]
movsx esi, byte [ecx + 0x2d]
mov edx, dword [eax + 8]
cmp esi, dword [edx]
jne 0x6118a2
cmp dword [esp + 0xc], 0
jle 0x6118a2
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
push 0
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 + 0x84]
push ecx
mov ecx, edi
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 8]
call fcn.00610828
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 0x6118a2
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.0064b550
xor eax, eax
add esp, 0x84
pop ebp
pop edi
pop esi
pop ebx
ret