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

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push ebx
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
push ebp
mov ebp, dword [esp + 0x58]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
je 0x4401a5
mov eax, dword [edi + 0x20]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4401a5
cmp dword [eax + 0x1c], ebx
je 0x440188
movzx eax, byte [edi + 4]
sub eax, 0x6b
je 0x44016a
dec eax
je 0x440163
dec eax
je 0x44015c
mov eax, str.UNION
jmp 0x44016f
mov eax, str.INTERSECT
jmp 0x44016f
mov eax, str.EXCEPT
jmp 0x44016f
mov eax, str.UNION_ALL
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
push ebp
call fcn.0041be00
add esp, 0xc
mov ebx, 1
jmp 0x4409c4
cmp dword [eax + 0x2c], ebx
je 0x4401af
movzx eax, byte [edi + 4]
call fcn.0043f0e0
push eax
push str.LIMIT_clause_should_come_after__s_not_before
push ebp
call fcn.0041be00
add esp, 0xc
mov ebx, 1
jmp 0x4409c4
push esi
push ebp
call fcn.0043ff10
mov esi, eax
add esp, 4
test esi, esi
je 0x44077a
mov dl, byte [esp + 0x38]
cmp dl, 9
jne 0x4401f0
mov eax, dword [esp + 0x3c]
push 0
push eax
push 0x70
push esi
call fcn.0041cf70
mov dl, 8
add esp, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], 1
mov byte [esp + 0x38], dl
mov ecx, dword [edi + 0x1c]
mov al, byte [edi + 4]
mov dword [esp + 0xc], ecx
movzx ecx, al
add ecx, 0xffffff96
cmp ecx, 3
ja case.default.0x440209
jmp dword [ecx*4 + 0x4409e0]
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne case.0x440209.106
mov edx, dword [edi + 0x2c]
mov eax, dword [esp + 0x18]
mov dword [eax + 0x2c], edx
mov edx, dword [esp + 0x64]
mov ecx, dword [edi + 0x30]
push edx
push 0
push 0
mov dword [eax + 0x30], ecx
push 0
lea ecx, [esp + 0x48]
push ecx
push eax
push ebp
mov dword [esp + 0x3c], 0
call fcn.00441610
mov ebx, eax
xor eax, eax
add esp, 0x1c
cmp ebx, eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
jne 0x4409c3
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x34]
mov dword [edi + 0x34], edx
mov eax, dword [eax + 0x38]
mov dword [edi + 0x38], eax
mov eax, edx
test eax, eax
jl 0x440289
push eax
push 0x78
push esi
call fcn.0041cf50
add esp, 0xc
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x64]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x48]
push edx
push edi
push ebp
call fcn.00441610
mov ebx, eax
mov eax, dword [esp + 0x34]
add esp, 0x1c
test ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi + 0x20], eax
jne 0x4409c3
mov eax, dword [esp + 0x20]
test eax, eax
je case.default.0x440209
mov ecx, eax
push ecx
push esi
call fcn.0041d2e0
add esp, 8
jmp case.default.0x440209
xor ebx, ebx
cmp al, 0x6b
setne bl
movzx edx, dl
mov dword [esp + 0x20], 0
dec ebx
and ebx, 7
inc ebx
cmp edx, ebx
mov dword [esp + 0x2c], ebx
jne 0x440314
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x440314
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x440314
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x440314
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
jmp 0x440372
mov eax, dword [ebp + 0x44]
push eax
lea ecx, [eax + 1]
push edi
push ebp
mov dword [esp + 0x20], eax
mov dword [ebp + 0x44], ecx
call fcn.0043fd00
add esp, 0xc
test eax, eax
jne 0x44077a
mov edx, dword [esp + 0x14]
push eax
push edx
push 0x70
push esi
call fcn.0041cf70
add esp, 0x10
cmp ebx, 8
jne 0x440359
mov ecx, dword [esp + 0x1c]
mov dword [esp + ecx*4 + 0x30], eax
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x440363
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x28]
mov byte [eax + 8], 1
mov eax, dword [esp + 0xc]
push edi
mov ecx, ebp
call fcn.00440090
add esp, 4
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x14]
xor eax, eax
push edx
push eax
push eax
push eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
push ebp
mov byte [esp + 0x64], bl
mov byte [esp + 0x65], 0
call fcn.00441610
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x4409c3
movzx eax, byte [edi + 4]
sub eax, 0x6a
je 0x4403d5
dec eax
je 0x4403cb
dec eax
jne 0x4403dd
mov dword [esp + 0x20], 2
jmp 0x4403dd
mov dword [esp + 0x20], 8
jmp 0x4403dd
mov dword [esp + 0x20], 1
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, eax
mov ecx, dword [edi + 0x2c]
setne dl
mov byte [edi + 9], dl
mov edx, dword [edi + 0x30]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x64]
push edx
push eax
push eax
push eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x38], ecx
mov cl, byte [esp + 0x34]
push edi
push ebp
mov byte [esp + 0x64], cl
call fcn.00441610
mov ecx, dword [edi + 0x1c]
mov ebx, eax
push ecx
mov dword [esp + 0x30], ebx
call fcn.00442b00
mov ecx, dword [edi + 0x2c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
push ecx
mov dword [edi + 0x20], edx
mov dword [edi + 0x1c], eax
call fcn.00443700
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov dword [edi + 0x30], eax
or eax, 0xffffffff
add esp, 0x24
test ebx, ebx
mov dword [edi + 0x2c], edx
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
jne 0x4409c3
mov al, byte [esp + 0x38]
mov edx, dword [esp + 0x2c]
movzx ecx, al
cmp ecx, edx
jne 0x440486
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x3c]
je case.default.0x440209
cmp al, 5
jne 0x4404aa
mov eax, dword [edi + 0x20]
test eax, eax
mov ecx, edi
je 0x44049c
mov ecx, eax
mov eax, dword [ecx + 0x20]
test eax, eax
jne 0x440493
mov eax, dword [ecx]
push eax
push 0
push ebp
call fcn.0043ee80
add esp, 0xc
push esi
call fcn.0041cf90
push esi
mov dword [esp + 0x28], eax
call fcn.0041cf90
mov ecx, dword [esp + 0x28]
push ecx
mov dword [esp + 0x30], eax
push edi
mov eax, ebp
call fcn.0043ff50
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
push edx
push eax
push 0x74
push esi
call fcn.0041cf70
push esi
call fcn.0041d120
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
push 0
push ecx
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x68]
push ecx
push 0xffffffffffffffff
mov dword [esp + 0x64], eax
mov eax, dword [edi]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x50]
push ecx
push edx
push eax
push edi
mov eax, ebp
call fcn.0043e3f0
mov eax, dword [esp + 0x70]
add esp, 0x4c
push eax
push esi
call fcn.0041cfe0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 0x67
push esi
call fcn.0041cf70
mov eax, dword [esp + 0x38]
push eax
push esi
call fcn.0041cfe0
mov ecx, dword [esp + 0x34]
push 0
push ecx
push 0x20
push esi
call fcn.0041cf70
add esp, 0x30
jmp case.default.0x440209
mov ebx, dword [ebp + 0x44]
push ebx
lea edx, [ebx + 2]
push edi
push ebp
mov dword [ebp + 0x44], edx
call fcn.0043fd00
add esp, 0xc
test eax, eax
je 0x440579
mov dword [esp + 0x10], 1
jmp 0x4409bf
mov eax, dword [esp + 0xc]
push edi
mov ecx, ebp
call fcn.00440090
push 0
push ebx
push 0x70
push esi
call fcn.0041cf70
mov ecx, dword [esp + 0x78]
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x28]
mov byte [eax + 8], 1
xor eax, eax
push ecx
push eax
push eax
push eax
lea edx, [esp + 0x6c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x3c]
push edx
push eax
push ebp
mov byte [esp + 0x78], 1
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x79], 0
call fcn.00441610
add esp, 0x30
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4409bf
push eax
lea eax, [ebx + 1]
push eax
push 0x70
push esi
call fcn.0041cf70
mov edx, dword [edi + 0x2c]
xor ecx, ecx
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x74]
push edx
push ecx
mov dword [esp + 0x40], eax
push ecx
lea eax, [ebx + 1]
push ecx
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
push eax
push edi
push ebp
mov dword [edi + 0x20], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
call fcn.00441610
mov edx, dword [edi + 0x2c]
mov ecx, dword [esp + 0x44]
push edx
mov dword [esp + 0x40], eax
mov dword [edi + 0x20], ecx
call fcn.00443700
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x40]
add esp, 0x30
test eax, eax
mov dword [edi + 0x30], ecx
jne 0x4409bf
cmp byte [esp + 0x38], 5
jne 0x440677
mov eax, dword [edi + 0x20]
test eax, eax
mov ecx, edi
je 0x440669
mov edi, edi
mov ecx, eax
mov eax, dword [ecx + 0x20]
test eax, eax
jne 0x440660
mov edx, dword [ecx]
push edx
push 0
push ebp
call fcn.0043ee80
add esp, 0xc
push esi
call fcn.0041cf90
push esi
mov dword [esp + 0x28], eax
call fcn.0041cf90
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push eax
push edi
mov eax, ebp
call fcn.0043ff50
mov ecx, dword [esp + 0x30]
push ecx
push ebx
push 0x74
push esi
call fcn.0041cf70
push ebp
call fcn.00443470
push eax
push ebx
push 7
push esi
mov dword [esp + 0x58], eax
call fcn.0041cf70
mov edx, dword [esp + 0x58]
push edx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x4c]
push eax
lea eax, [ebx + 1]
push eax
push 0x23
push esi
call fcn.0041cea0
mov ecx, dword [esp + 0x6c]
add esp, 0x48
push ecx
push ebp
call fcn.00443510
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi]
push 0
push edx
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x4c]
push edx
mov edx, dword [eax]
push 0xffffffffffffffff
push ecx
push edx
push ebx
push eax
push edi
mov eax, ebp
call fcn.0043e3f0
mov eax, dword [esp + 0x44]
push eax
push esi
call fcn.0041cfe0
mov ecx, dword [esp + 0x64]
push ecx
push ebx
push 0x67
push esi
call fcn.0041cf70
mov edx, dword [esp + 0x68]
add esp, 0x48
push edx
push esi
call fcn.0041cfe0
push 0
lea eax, [ebx + 1]
push eax
push 0x20
push esi
call fcn.0041cf70
push 0
push ebx
push 0x20
push esi
call fcn.0041cf70
mov ebx, dword [esp + 0x38]
add esp, 0x28
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp eax, dword [edx]
mov dword [esp + 0x20], eax
je 0x440784
movzx eax, byte [edi + 4]
call fcn.0043f0e0
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
push ebp
call fcn.0041be00
add esp, 0xc
mov ebx, 1
jmp 0x4409c3
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4407b4
lea esp, [esp]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + eax*4 + 0x2c]
dec eax
push ecx
push edx
push esi
mov dword [esp + 0x28], eax
call fcn.0041d260
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x440790
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4407f3
mov al, byte [edi + 8]
test al, al
je 0x4409c3
xor eax, eax
mov ecx, dword [esp + 0x20]
lea eax, [eax + ecx + 4]
lea edx, [eax + eax*4]
mov eax, dword [ebp]
push edx
push eax
call fcn.00420850
add esp, 8
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4407f7
mov ebx, 7
jmp 0x4409c3
mov eax, dword [eax]
jmp 0x4407c9
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
mov ecx, dword [edx + 0x14]
mov dl, byte [ecx + 0x59]
mov ecx, dword [esp + 0x20]
mov byte [eax + 4], dl
mov dword [eax + 8], ecx
add eax, 0x10
xor ebx, ebx
test ecx, ecx
mov dword [esp + 0x14], eax
jle 0x440851
lea ebx, [ebx]
push ebx
push edi
push ebp
call fcn.004400c0
mov ecx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
mov dword [ecx], eax
jne 0x44083d
mov edx, dword [ebp]
mov eax, dword [edx + 0x2c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
inc ebx
add ecx, 4
cmp ebx, eax
mov dword [esp + 0x14], ecx
jl 0x440820
mov dword [esp + 0x14], edi
jmp 0x440860
mov edx, dword [esp + 0x14]
add edx, 0x3c
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
mov ebx, dword [eax]
test ebx, ebx
jl 0x4408b9
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push esi
call fcn.0041d260
mov edx, dword [esp + 0x28]
push 0xfffffffffffffffa
push edx
push ebx
push esi
call fcn.0041ed60
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
add esp, 0x1c
inc eax
mov dword [ecx], 0xffffffff
add ecx, 4
cmp eax, 2
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
jl 0x440873
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x20]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x440860
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4409b2
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + ebx*4 + 0x10]
shl eax, 2
mov dword [esp + 0x2c], edx
add edx, eax
push eax
lea eax, [ecx + 0x10]
mov dword [esp + 0x2c], edx
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0x30]
push eax
push edx
call dword [sym.imp.MSVCR71.dll_memmove]
mov eax, dword [esp + 0x28]
add eax, 0x10
mov dword [esp + 0x20], eax
add esp, 0xc
xor eax, eax
test ebx, ebx
jle 0x44096e
lea ecx, [ecx]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
test byte [ecx + 3], 1
je 0x440931
mov edx, dword [ecx + 4]
jmp 0x44093f
mov edx, dword [ecx + 0x28]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx + ebx*4 + 0x10]
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x14]
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
mov cl, byte [edx + 8]
mov edx, dword [esp + 0x28]
mov byte [edx + eax], cl
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
add ecx, 0xc
add edx, 4
cmp eax, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jl 0x440920
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edi + 0x44]
add edx, 2
push edx
push eax
push esi
mov dword [esp + 0x38], eax
call fcn.0041d260
mov eax, dword [esp + 0x28]
push 0xfffffffffffffff7
push eax
mov dword [eax + 8], ebx
mov eax, dword [esp + 0x40]
push eax
push esi
call fcn.0041ed60
mov edx, dword [edi]
mov eax, dword [edx]
lea ecx, [esp + 0x54]
push ecx
push eax
push edi
push ebp
xor ebx, ebx
call fcn.0043e910
add esp, 0x2c
jmp 0x4409b6
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.00417f90
add esp, 4
mov ebx, dword [esp + 0x10]
pop esi
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
pop ebp
mov eax, ebx
pop ebx
add esp, 0x4c
ret