Function at 0x446411
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x490004]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edx, ecx
mov dword [esp + 0x34], esi
xor eax, eax
mov dword [esp + 0x20], ebx
push 6
mov dword [esp + 0x20], eax
lea edi, [esp + 0x40]
mov dword [esp + 0x30], eax
mov eax, dword [edx]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x34]
mov esi, eax
mov dword [esp + 0x24], edx
mov edi, dword [esi + 0x30]
test edi, edi
jne 0x446b17
cmp dword [esi + 0x3c], edi
jne 0x446b17
mov edi, edx
mov ecx, edi
call fcn.00445df8
mov dl, byte [esp + 0x3c]
mov ecx, eax
mov dword [esp + 0x14], ecx
cmp dl, 0xc
jne 0x4464a0
mov eax, dword [ebx]
push 0
push dword [eax]
push dword [esp + 0x48]
push 0x70
pop edx
call fcn.0041c3a0
mov dl, 0xe
add esp, 0xc
mov byte [esp + 0x3c], dl
test dword [ebx + 8], 0x400
je 0x4464bf
lea eax, [esp + 0x3c]
mov edx, ebx
push eax
mov ecx, edi
call fcn.0044639d
pop ecx
mov ebx, eax
jmp 0x446ad8
test dword [ebx + 8], 0x2000
je 0x4464dc
lea eax, [esp + 0x3c]
mov edx, ebx
push eax
mov ecx, edi
call fcn.00446067
pop ecx
jmp 0x4469f6
cmp dword [ebx + 0x30], 0
je 0x4464f6
mov ecx, dword [esp + 0x34]
mov edx, ebx
push ecx
mov ecx, edi
call fcn.00446dc3
pop ecx
jmp 0x446b02
cmp dword [esi + 0x34], 0
jne 0x446520
push str.COMPOUND_QUERY
push 1
push edi
call fcn.0041c550
add esp, 0xc
push str.LEFT_MOST_SUBQUERY
push 1
push edi
call fcn.0041c550
mov dl, byte [esp + 0x48]
add esp, 0xc
movzx eax, byte [ebx + 4]
sub eax, 0x82
je 0x44682c
sub eax, 1
je 0x446718
sub eax, 1
je 0x44682c
mov ecx, dword [edi + 0x28]
push 0
push 0
push ecx
lea eax, [ecx + 1]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
inc eax
push 0x70
pop edx
mov dword [edi + 0x28], eax
call fcn.0041c3a0
mov dword [ebx + 0x18], eax
add esp, 0xc
mov ecx, dword [ebx + 0x38]
mov eax, ebx
jmp 0x446576
mov eax, ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x446571
or dword [eax + 8], 0x20
mov edx, esi
mov eax, dword [esp + 0x10]
mov ecx, edi
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x58], 1
call fcn.004493e5
pop ecx
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x446ad4
mov ecx, dword [esp + 0x14]
push eax
push eax
push dword [esp + 0x20]
push 0x70
pop edx
call fcn.0041c3a0
movzx ecx, byte [ebx + 4]
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x3c]
and dword [ebx + 0x34], 0
and dword [ebx + 0x3c], 0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], eax
call fcn.00445356
push eax
push str._s_USING_TEMP_B_TREE
push 1
push edi
call fcn.0041c550
lea eax, [esp + 0x64]
mov edx, ebx
push eax
mov ecx, edi
call fcn.004493e5
mov dword [esp + 0x30], eax
add esp, 0x14
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x2c], eax
mov dword [ebx + 0x34], esi
movzx eax, word [esi + 6]
cmp word [ebx + 6], ax
jle 0x446629
mov word [ebx + 6], ax
mov edx, dword [ebx + 0x3c]
test edx, edx
je 0x446639
mov ecx, dword [esp + 0x28]
call fcn.0042b5cc
mov eax, dword [esp + 0x38]
mov ecx, edi
mov edx, dword [esp + 0x20]
mov dword [ebx + 0x3c], eax
mov esi, dword [edi + 0x38]
dec esi
push esi
mov dword [esp + 0x3c], esi
lea ebx, [esi - 1]
mov dword [edi + 0x38], ebx
call fcn.00445e18
pop ecx
mov ecx, dword [esp + 0x14]
push 0
push esi
push dword [esp + 0x18]
push 0x24
pop edx
call fcn.0041c3a0
add esp, 0xc
mov ecx, edi
call fcn.004300e8
mov ecx, dword [esp + 0x14]
mov esi, eax
push 0
push esi
push dword [esp + 0x18]
push 0x7f
pop edx
call fcn.0041c3a0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edi, eax
push 0
push esi
push ebx
push dword [esp + 0x24]
push 0x1c
pop edx
call fcn.0041c609
mov ecx, dword [esp + 0x34]
mov edx, esi
call fcn.00430107
mov esi, dword [esp + 0x48]
lea eax, [esp + 0x4c]
mov edx, dword [esp + 0x30]
push esi
push ebx
push eax
push 0
push 0
push dword [esp + 0x34]
call fcn.00444a78
mov ecx, dword [esp + 0x3c]
mov edx, ebx
call fcn.0041c6a2
mov ecx, dword [esp + 0x3c]
push 0
push edi
mov edi, dword [esp + 0x40]
push edi
push 5
pop edx
call fcn.0041c3a0
add esp, 0x34
mov edx, esi
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.0041c6a2
xor ebx, ebx
lea eax, [edi + 1]
push ebx
push ebx
push eax
push 0x75
pop edx
mov ecx, esi
call fcn.0041c3a0
add esp, 0xc
push ebx
push ebx
jmp 0x4469d3
xor eax, eax
mov edx, esi
mov dword [esp + 0x18], eax
mov ecx, edi
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x3c]
mov dword [esi + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
call fcn.004493e5
pop ecx
mov ecx, eax
xor edx, edx
mov dword [esp + 0x1c], ecx
mov dword [ebx + 0x3c], edx
test ecx, ecx
jne 0x446ad4
mov dword [ebx + 0x34], edx
mov ecx, dword [esi + 0xc]
mov dword [ebx + 0xc], ecx
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
test ecx, ecx
je 0x446799
push edx
push edx
push ecx
mov ecx, dword [esp + 0x20]
push 0x14
pop edx
call fcn.0041c3a0
mov ecx, dword [ebx + 0x10]
add esp, 0xc
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x446799
push ecx
inc ecx
mov edx, 0x98
push ecx
push dword [ebx + 0xc]
mov ecx, dword [esp + 0x20]
call fcn.0041c3a0
add esp, 0xc
push str.UNION_ALL
push 1
push edi
call fcn.0041c550
add esp, 0xc
lea eax, [esp + 0x3c]
mov edx, ebx
mov ecx, edi
push eax
call fcn.004493e5
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x34]
pop ecx
mov cx, word [ebx + 6]
mov dword [ebx + 0x34], esi
mov dx, word [esi + 6]
mov dword [esp + 0x2c], eax
call fcn.00407f28
mov word [ebx + 6], ax
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x44680a
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x38]
call fcn.0042c4c2
test eax, eax
je 0x44680a
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x44680a
cdq
push edx
push eax
call fcn.00407f89
pop ecx
pop ecx
cmp word [ebx + 6], ax
jle 0x44680a
mov word [ebx + 6], ax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4469e9
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.0041cb08
mov ecx, dword [ecx + 0x6c]
mov dword [eax + 8], ecx
jmp 0x4469e9
cmp dl, 1
jne 0x44683b
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
jmp 0x446877
mov ecx, dword [edi + 0x28]
push 0
push 0
push ecx
lea eax, [ecx + 1]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
push 0x70
pop edx
mov dword [edi + 0x28], eax
call fcn.0041c3a0
mov dword [ebx + 0x18], eax
add esp, 0xc
mov ecx, dword [ebx + 0x38]
mov eax, ebx
jmp 0x44686b
mov eax, ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x446866
or dword [eax + 8], 0x20
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], eax
mov edx, esi
xor eax, eax
mov byte [esp + 0x6c], 1
mov dword [esp + 0x7c], eax
mov ecx, edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0x6c]
push eax
call fcn.004493e5
pop ecx
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x446ad4
and dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x3c]
and dword [ebx + 0x3c], ecx
cmp byte [ebx + 4], 0x84
movzx ecx, byte [ebx + 4]
mov dword [esp + 0x38], eax
sete al
inc al
mov byte [esp + 0x6c], al
call fcn.00445356
push eax
push str._s_USING_TEMP_B_TREE
push 1
push edi
call fcn.0041c550
lea eax, [esp + 0x7c]
mov edx, ebx
push eax
mov ecx, edi
call fcn.004493e5
mov edx, dword [ebx + 0x30]
add esp, 0x14
mov dword [esp + 0x1c], eax
test edx, edx
je 0x446901
mov ecx, dword [esp + 0x28]
call fcn.0042c217
mov eax, dword [ebx + 0x34]
and dword [ebx + 0x30], 0
cmp byte [ebx + 4], 0x82
mov dword [esp + 0x2c], eax
mov dword [ebx + 0x34], esi
jne 0x446926
mov dx, word [esi + 6]
mov cx, word [ebx + 6]
call fcn.00407f28
mov word [ebx + 6], ax
mov edx, dword [ebx + 0x3c]
test edx, edx
je 0x446936
mov ecx, dword [esp + 0x28]
call fcn.0042b5cc
and dword [ebx + 0xc], 0
and dword [ebx + 0x10], 0
cmp byte [esp + 0x3c], 1
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x3c], eax
je 0x4469e9
mov ebx, dword [edi + 0x38]
mov eax, dword [esp + 0x24]
dec ebx
mov edx, dword [esp + 0x20]
mov ecx, eax
push ebx
lea edi, [ebx - 1]
mov dword [eax + 0x38], edi
call fcn.00445e18
mov esi, dword [esp + 0x18]
pop ecx
push 0
push ebx
push dword [esp + 0x18]
mov ecx, esi
push 0x24
pop edx
call fcn.0041c3a0
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov esi, dword [esi + 0x6c]
push ebx
push edi
push eax
push 0
push 0
push dword [esp + 0x24]
call fcn.00444a78
mov ecx, dword [esp + 0x2c]
mov edx, edi
call fcn.0041c6a2
mov edi, dword [esp + 0x28]
push 0
push esi
mov esi, dword [esp + 0x34]
mov ecx, esi
push edi
push 5
pop edx
call fcn.0041c3a0
add esp, 0x24
mov edx, ebx
mov ecx, esi
call fcn.0041c6a2
push 0
push 0
push edi
push 0x75
pop edx
mov ecx, esi
call fcn.0041c3a0
mov edi, dword [esp + 0x30]
add esp, 0xc
mov ebx, dword [esp + 0x20]
cmp dword [ebx + 0x38], 0
jne 0x4469f6
mov ecx, edi
call fcn.0041c59f
test byte [ebx + 8], 0x20
je 0x446ad4
mov eax, dword [ebx]
mov ecx, dword [esp + 0x28]
push 1
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x1c], eax
call fcn.00445238
mov esi, eax
mov dword [esp + 0x34], esi
pop ecx
test esi, esi
jne 0x446a28
push 7
pop ebx
jmp 0x446ad8
lea eax, [esi + 0x14]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x18], eax
jle 0x446a6f
mov esi, dword [esp + 0x24]
push eax
mov edx, ebx
mov ecx, edi
call fcn.00445f50
mov dword [esi], eax
pop ecx
test eax, eax
jne 0x446a59
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
add esi, 4
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x18]
jl 0x446a3f
mov esi, dword [esp + 0x30]
and dword [esp + 0x10], 0
lea edi, [ebx + 0x18]
mov ebx, dword [esp + 0x14]
mov eax, dword [edi]
mov dword [esp + 0x30], eax
test eax, eax
js 0x446abe
mov edx, eax
mov ecx, ebx
lfence
call fcn.0041cb08
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
push 0xfffffffffffffff7
mov dword [eax + 8], ecx
mov ecx, ebx
inc dword [esi]
push esi
call fcn.0041ca4d
or dword [edi], 0xffffffff
add edi, 4
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 2
jl 0x446a7b
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx + 0x34]
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x446a6f
mov ecx, esi
call fcn.004452b1
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x44]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x446b00
mov ecx, dword [esp + 0x28]
mov edx, eax
push 1
call fcn.00443faa
pop ecx
mov eax, ebx
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004614f6
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebx + 4]
call fcn.00445356
push eax
mov ecx, str.LIMIT
test edi, edi
mov eax, str.ORDER_BY
cmove eax, ecx
push eax
push str._s_clause_should_come_after__s_not_before
push edx
call fcn.00406e5f
xor ebx, ebx
add esp, 0x10
inc ebx
jmp 0x446ad8