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

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
mov eax, dword [edx]
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ecx]
mov dword [esp + 0x30], edi
mov edi, dword [ecx + 4]
mov dword [esp + 0x34], edi
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
xor ebx, ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
cmp dword [esi + 0x18], ebx
je 0x4b3e4d
movzx eax, byte [ebp + 4]
sub eax, 0x71
je 0x4b3e2e
sub eax, 1
je 0x4b3e27
sub eax, 1
je 0x4b3e20
mov eax, str.UNION
jmp 0x4b3e33
mov eax, str.INTERSECT
jmp 0x4b3e33
mov eax, str.EXCEPT
jmp 0x4b3e33
mov eax, str.UNION_ALL
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
mov edi, edx
call fcn.0047ae50
mov dword [esp + 0x70], 1
jmp 0x4b4607
cmp dword [esi + 0x28], ebx
je 0x4b3e99
movzx eax, byte [ebp + 4]
sub eax, 0x71
je 0x4b3e7a
sub eax, 1
je 0x4b3e73
sub eax, 1
je 0x4b3e6c
mov eax, str.UNION
jmp 0x4b3e7f
mov eax, str.INTERSECT
jmp 0x4b3e7f
mov eax, str.EXCEPT
jmp 0x4b3e7f
mov eax, str.UNION_ALL
push eax
push str.LIMIT_clause_should_come_after__s_not_before
mov edi, edx
call fcn.0047ae50
mov dword [esp + 0x70], 1
jmp 0x4b4607
mov edi, dword [edx + 0xc]
mov dword [esp + 0x18], edi
cmp edi, ebx
jne 0x4b3ec4
call fcn.0048c830
mov edx, dword [esp + 0x64]
mov edi, eax
mov dword [edx + 0xc], eax
mov dword [esp + 0x18], edi
cmp edi, ebx
je 0x4b3ec4
push 0x15
call fcn.0048ca60
add esp, 4
mov cl, byte [esp + 0x30]
cmp cl, 9
jne 0x4b3eeb
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [esp + 0x34]
push ebx
push ecx
push edx
push 0x76
mov eax, edi
call fcn.0048ca00
mov cl, 8
add esp, 0x10
mov byte [esp + 0x30], cl
mov edx, dword [ebp]
mov eax, dword [esi]
mov edx, dword [edx]
cmp edx, dword [eax]
je 0x4b3f1b
movzx eax, byte [ebp + 4]
call fcn.004b3520
mov edi, dword [esp + 0x64]
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
call fcn.0047ae50
mov dword [esp + 0x70], 1
jmp 0x4b4607
cmp dword [ebp + 0x18], ebx
je 0x4b3f3b
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
push eax
push ebp
push ecx
call fcn.004b4b10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
movzx eax, byte [ebp + 4]
sub eax, 0x70
je 0x4b42f7
sub eax, 1
je 0x4b4210
sub eax, 1
je 0x4b42f7
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + 0x44]
lea eax, [ecx + 1]
mov dword [esp + 0x28], eax
inc eax
mov dword [edx + 0x44], eax
mov esi, dword [edi + 0xc]
cmp dword [edi + 0x10], esi
mov dword [esp + 0x14], ecx
jg 0x4b3f8c
call fcn.0048c980
test eax, eax
je 0x4b3f88
mov esi, 1
jmp 0x4b3fb0
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x14]
inc dword [edi + 0xc]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x76
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [edi + 0x6e], bl
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x38], esi
or word [eax + 6], 8
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x68]
push eax
push ecx
mov byte [esp + 0x4c], 1
mov byte [esp + 0x4d], bl
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.004b78a0
add esp, 0xc
mov dword [esp + 0x68], eax
cmp eax, ebx
jne 0x4b460a
mov esi, dword [edi + 0xc]
cmp dword [edi + 0x10], esi
jg 0x4b400f
call fcn.0048c980
test eax, eax
je 0x4b400f
mov esi, 1
jmp 0x4b4037
mov eax, dword [edi + 0x14]
inc dword [edi + 0xc]
mov ecx, dword [esp + 0x28]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x76
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [edi + 0x6e], bl
mov edx, dword [ebp + 0x2c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x68]
mov dword [ebp + 0x3c], esi
mov esi, dword [ebp + 0x28]
push ebp
push edx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
mov dword [esp + 0x50], eax
call fcn.004b78a0
mov edx, dword [ebp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x1c]
add esp, 0xc
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
mov dword [ebp + 0x1c], ecx
call fcn.004992c0
mov ecx, dword [esp + 0x34]
add esp, 8
cmp byte [esp + 0x30], 5
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x2c], ecx
jne 0x4b40bf
mov eax, dword [ebp + 0x1c]
mov ecx, ebp
cmp eax, ebx
je 0x4b40ae
mov ecx, eax
mov eax, dword [ecx + 0x1c]
cmp eax, ebx
jne 0x4b40a5
mov edx, dword [ecx]
mov eax, dword [esp + 0x64]
push edx
push ebx
push eax
call fcn.004b3370
add esp, 0xc
mov eax, edi
call fcn.0048cb20
mov esi, eax
mov eax, edi
mov dword [esp + 0x2c], esi
call fcn.0048cb20
mov ecx, dword [esp + 0x64]
push esi
push ebp
push ecx
mov dword [esp + 0x2c], eax
call fcn.004b3ae0
mov edx, dword [esp + 0x20]
add esp, 0xc
push ebx
push esi
push edx
push 0x7a
mov eax, edi
call fcn.0048ca00
mov eax, dword [esp + 0x74]
call fcn.0049d450
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push esi
push eax
push 8
mov eax, edi
call fcn.0048ca00
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
push esi
push ecx
inc eax
push eax
push 0x24
mov eax, edi
call fcn.0048ca00
mov edx, dword [esp + 0x94]
call fcn.0049d470
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x50]
mov eax, dword [ebp]
push esi
push edx
mov edx, dword [eax]
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x50]
push 0xffffffffffffffff
push ebx
push edx
mov edx, dword [esp + 0xac]
push ecx
push eax
push ebp
push edx
call fcn.004b2570
mov edx, dword [esp + 0x78]
add esp, 0x58
mov ecx, edi
call fcn.0048cba0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push ebx
push eax
push ecx
push 0x6a
mov eax, edi
call fcn.0048ca00
add esp, 0x10
mov edx, esi
mov ecx, edi
call fcn.0048cba0
mov esi, dword [edi + 0xc]
cmp dword [edi + 0x10], esi
jg 0x4b41a1
call fcn.0048c980
test eax, eax
jne 0x4b41ca
mov eax, dword [edi + 0x14]
inc dword [edi + 0xc]
mov ecx, dword [esp + 0x14]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
inc ecx
mov byte [eax], 0x21
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [edi + 0x6e], bl
mov esi, dword [edi + 0xc]
cmp dword [edi + 0x10], esi
jg 0x4b41e3
call fcn.0048c980
test eax, eax
jne 0x4b451b
mov edi, dword [esp + 0x18]
mov edx, dword [edi + 0x14]
inc dword [edi + 0xc]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x14]
mov byte [eax], 0x21
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [edi + 0x6e], bl
jmp 0x4b451b
mov edx, dword [ebp + 0x28]
lea ecx, [esp + 0x30]
push ecx
mov dword [esi + 0x28], edx
mov edx, dword [esp + 0x68]
mov eax, dword [ebp + 0x2c]
push esi
push edx
mov dword [esp + 0x34], ebx
mov dword [esi + 0x2c], eax
call fcn.004b78a0
add esp, 0xc
mov dword [esp + 0x68], eax
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
cmp eax, ebx
jne 0x4b460a
mov dword [ebp + 0x1c], ebx
mov eax, dword [esi + 0x30]
mov dword [ebp + 0x30], eax
mov ecx, dword [esi + 0x34]
mov dword [ebp + 0x34], ecx
mov dword [esp + 0x2c], eax
cmp eax, ebx
je 0x4b42a8
mov ecx, dword [edi + 0xc]
cmp dword [edi + 0x10], ecx
mov dword [esp + 0x68], ecx
jg 0x4b427c
call fcn.0048c980
test eax, eax
je 0x4b4278
mov ecx, 1
jmp 0x4b42a4
mov ecx, dword [esp + 0x68]
mov eax, dword [edi + 0x14]
inc dword [edi + 0xc]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x2c]
mov byte [eax], 0x7e
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [edi + 0x6e], bl
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x30]
push eax
push ebp
push ecx
call fcn.004b78a0
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x24], edx
mov dword [ebp + 0x1c], esi
cmp eax, ebx
je 0x4b451b
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0xc]
cmp ecx, eax
jle 0x4b451b
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x14]
mov dword [eax + edx*4 + 8], ecx
jmp 0x4b451b
cmp cl, 1
jne 0x4b4310
cmp dword [ebp + 0x28], ebx
jne 0x4b4310
cmp dword [ebp + 0x2c], ebx
jne 0x4b4310
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
jmp 0x4b4370
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x44]
lea edx, [ecx + 1]
mov dword [eax + 0x44], edx
mov esi, dword [edi + 0xc]
cmp dword [edi + 0x10], esi
mov dword [esp + 0x14], ecx
jg 0x4b433d
call fcn.0048c980
test eax, eax
je 0x4b4339
mov esi, 1
jmp 0x4b4361
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x14]
inc dword [edi + 0xc]
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov byte [eax], 0x76
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [edi + 0x6e], bl
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x38], esi
or word [eax + 6], 8
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push esi
push edx
mov byte [esp + 0x5c], 1
mov dword [esp + 0x60], eax
mov byte [esp + 0x5d], bl
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.004b78a0
add esp, 0xc
mov dword [esp + 0x68], eax
cmp eax, ebx
jne 0x4b460a
cmp byte [ebp + 4], 0x72
mov ecx, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x28]
sete al
inc al
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x54], al
mov eax, dword [esp + 0x68]
push ebp
push eax
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x28], ebx
mov dword [esp + 0x38], ecx
mov dword [ebp + 0x2c], ebx
call fcn.004b78a0
mov ebx, dword [ebp + 0x18]
mov esi, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x68], eax
call fcn.00499d70
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x20]
push eax
xor ebx, ebx
push esi
mov dword [esp + 0x2c], ecx
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x18], ebx
call fcn.004992c0
mov al, byte [esp + 0x38]
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], ebx
cmp al, 1
je 0x4b4519
cmp al, 5
jne 0x4b444f
mov eax, dword [ebp + 0x1c]
mov ecx, ebp
test eax, eax
je 0x4b443d
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x4b4434
mov edx, dword [ecx]
mov eax, dword [esp + 0x64]
push edx
push 0
push eax
call fcn.004b3370
add esp, 0xc
mov esi, dword [esp + 0x18]
mov eax, esi
call fcn.0048cb20
mov edi, eax
mov eax, esi
call fcn.0048cb20
mov ecx, dword [esp + 0x64]
push edi
push ebp
push ecx
mov ebx, eax
call fcn.004b3ae0
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
push edi
push edx
push 0x7a
mov eax, esi
call fcn.0048ca00
mov eax, dword [esi + 0xc]
push edi
push ebx
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
mov dword [esp + 0x4c], eax
mov eax, dword [ebp]
mov edx, dword [eax]
push 0
push edx
mov edx, dword [esp + 0x8c]
push ecx
push eax
push ebp
push edx
call fcn.004b2570
mov edx, ebx
mov ecx, esi
call fcn.0048cba0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x4c]
push 0
push eax
push ecx
push 0x6a
mov eax, esi
call fcn.0048ca00
add esp, 0x48
mov edx, edi
mov ecx, esi
call fcn.0048cba0
mov ebx, dword [esi + 0xc]
cmp dword [esi + 0x10], ebx
mov edi, esi
jg 0x4b44ee
call fcn.0048c980
test eax, eax
jne 0x4b4519
mov eax, dword [edi + 0x14]
inc dword [edi + 0xc]
mov ecx, dword [esp + 0x14]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x21
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [edi + 0x6e], cl
xor ebx, ebx
test byte [ebp + 6], 8
je 0x4b460a
mov edx, dword [ebp]
mov eax, dword [edx]
mov dword [esp + 0x20], eax
lea edi, [eax + eax*4 + 0x10]
mov eax, dword [esp + 0x1c]
call fcn.00479050
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0x4b4550
mov dword [esp + 0x68], 7
jmp 0x4b460a
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
mov ecx, dword [edx + 0xc]
mov dl, byte [ecx + 0x39]
mov ecx, dword [esp + 0x20]
xor edi, edi
cmp ecx, ebx
mov byte [eax + 4], dl
mov word [eax + 6], cx
lea esi, [eax + 0xc]
jle 0x4b4599
mov eax, dword [esp + 0x64]
push edi
push ebp
push eax
call fcn.004b3d70
add esp, 0xc
mov dword [esi], eax
cmp eax, ebx
jne 0x4b458f
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x2c]
mov dword [esi], edx
inc edi
add esi, 4
cmp edi, dword [esp + 0x20]
jl 0x4b4571
mov esi, dword [esp + 0x18]
mov dword [esp + 0x64], ebp
mov edi, dword [esp + 0x64]
xor ebp, ebp
add edi, 0x38
mov eax, dword [edi]
cmp eax, ebx
jl 0x4b45e9
cmp dword [esi + 0xc], eax
jle 0x4b45c7
mov edx, dword [esi + 0x14]
mov esi, dword [esp + 0x20]
lea ecx, [eax + eax*4]
mov dword [edx + ecx*4 + 8], esi
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
push ecx
push esi
mov ecx, 0xfffffffa
call fcn.0048cfa0
mov dword [edi], 0xffffffff
inc ebp
add esp, 8
add edi, 4
cmp ebp, 2
jl 0x4b45aa
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x64], eax
cmp eax, ebx
jne 0x4b45a1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00478e80
add esp, 8
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
cmp edi, ebx
je 0x4b466e
mov esi, dword [esp + 0x1c]
mov eax, edi
mov ecx, esi
call fcn.004b18e0
cmp esi, ebx
je 0x4b4665
cmp edi, dword [esi + 0xe8]
jb 0x4b4665
cmp edi, dword [esi + 0xec]
jae 0x4b4665
mov edx, dword [esi + 0xe4]
mov eax, dword [esp + 0x68]
mov dword [edi], edx
dec dword [esi + 0xdc]
mov dword [esi + 0xe4], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
push edi
call fcn.00478e00
add esp, 4
mov eax, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret