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

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov dword [esp + 0x20], edx
mov edx, dword [ecx + 4]
push ebx
mov ebx, dword [esp + 0x58]
mov eax, dword [ebx]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 8]
push ebp
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x30], edx
mov edx, dword [ecx + 0xc]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x38], edx
cmp dword [esi + 0x18], 0
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], esi
je 0x4a88c0
movzx eax, byte [ebp + 4]
sub eax, 0x71
je 0x4a88a1
sub eax, 1
je 0x4a889a
sub eax, 1
je 0x4a8893
mov eax, str.UNION
jmp 0x4a88a6
mov eax, str.INTERSECT
jmp 0x4a88a6
mov eax, str.EXCEPT
jmp 0x4a88a6
mov eax, str.UNION_ALL
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
mov esi, ebx
call fcn.004893a0
mov dword [esp + 0x70], 1
jmp 0x4a8efe
cmp dword [esi + 0x28], 0
je 0x4a890d
movzx eax, byte [ebp + 4]
sub eax, 0x71
je 0x4a88ee
sub eax, 1
je 0x4a88e7
sub eax, 1
je 0x4a88e0
mov eax, str.UNION
jmp 0x4a88f3
mov eax, str.INTERSECT
jmp 0x4a88f3
mov eax, str.EXCEPT
jmp 0x4a88f3
mov eax, str.UNION_ALL
push eax
push str.LIMIT_clause_should_come_after__s_not_before
mov esi, ebx
call fcn.004893a0
mov dword [esp + 0x70], 1
jmp 0x4a8efe
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x18], edi
test edi, edi
jne 0x4a893e
call fcn.0048a7b0
mov dword [ebx + 0xc], eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x4a8938
push 0x15
call fcn.00484490
mov edi, dword [esp + 0x1c]
add esp, 4
jmp 0x4a893a
mov edi, eax
mov ecx, dword [esp + 0x6c]
cmp byte [esp + 0x30], 9
jne 0x4a8965
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [esp + 0x34]
push ecx
push edx
push 0x76
mov eax, edi
call fcn.00484530
mov ecx, dword [esp + 0x78]
add esp, 0xc
mov byte [esp + 0x30], 8
mov edx, dword [ebp]
mov eax, dword [esi]
mov edx, dword [edx]
cmp edx, dword [eax]
je 0x4a89b7
movzx eax, byte [ebp + 4]
sub eax, 0x71
je 0x4a8998
sub eax, 1
je 0x4a8991
sub eax, 1
je 0x4a898a
mov eax, str.UNION
jmp 0x4a899d
mov eax, str.INTERSECT
jmp 0x4a899d
mov eax, str.EXCEPT
jmp 0x4a899d
mov eax, str.UNION_ALL
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
mov esi, ebx
call fcn.004893a0
mov dword [esp + 0x70], 1
jmp 0x4a8efe
xor edx, edx
cmp dword [ebp + 0x18], edx
je 0x4a89d1
push ecx
push ebp
push ebx
call fcn.0049f100
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
movzx eax, byte [ebp + 4]
sub eax, 0x70
je 0x4a8c60
sub eax, 1
je 0x4a8bc4
sub eax, 1
je 0x4a8c60
mov esi, dword [ebx + 0x44]
push 0
lea eax, [esi + 2]
mov dword [ebx + 0x44], eax
push esi
push 0x76
mov eax, edi
mov dword [esp + 0x34], esi
call fcn.00484530
mov edx, dword [esp + 0x2c]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x24]
or word [eax + 6], 8
lea ecx, [esp + 0x4c]
push ecx
xor eax, eax
push edx
push ebx
mov byte [esp + 0x58], 1
mov dword [esp + 0x5c], esi
mov byte [esp + 0x59], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
call fcn.004bafb0
add esp, 0x18
mov dword [esp + 0x68], eax
test eax, eax
jne 0x4a8f01
push eax
lea eax, [esi + 1]
push eax
push 0x76
mov eax, edi
call fcn.00484530
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x2c]
mov dword [ebp + 0x3c], eax
xor eax, eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], eax
lea eax, [esi + 1]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
push ebp
push ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], edx
call fcn.004bafb0
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov dword [ebp + 0x1c], edx
call fcn.004854a0
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
add esp, 0x20
cmp byte [esp + 0x30], 5
mov dword [ebp + 0x28], edx
mov dword [ebp + 0x2c], eax
jne 0x4a8ae7
mov eax, dword [ebp + 0x1c]
mov ecx, ebp
test eax, eax
je 0x4a8ad9
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x4a8ad0
mov ecx, dword [ecx]
push ecx
push 0
push ebx
call fcn.00495b10
add esp, 0xc
mov eax, edi
call fcn.00484590
mov dword [esp + 0x14], eax
mov eax, edi
call fcn.00484590
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
push ebp
mov eax, ebx
call fcn.0048e430
mov eax, dword [esp + 0x1c]
push eax
push esi
push 0x7a
mov eax, edi
call fcn.00484530
mov eax, ebx
call fcn.0047da70
push eax
mov dword [esp + 0x3c], eax
push esi
push 8
mov eax, edi
call fcn.00484530
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push ecx
push edx
inc esi
mov dword [esp + 0x54], eax
push esi
push 0x24
mov eax, edi
call fcn.00484430
mov esi, dword [esp + 0x54]
mov edx, ebx
call fcn.0047da90
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x50]
mov eax, dword [ebp]
mov esi, dword [esp + 0x58]
push ecx
push edx
mov edx, dword [eax]
lea ecx, [esp + 0x68]
push ecx
push 0xffffffffffffffff
push 0
push edx
push esi
push eax
push ebp
push ebx
call fcn.004955c0
mov edx, dword [esp + 0x78]
add esp, 0x58
mov ecx, edi
call fcn.0047c320
mov eax, dword [esp + 0x2c]
push eax
push esi
push 0x6a
mov eax, edi
call fcn.00484530
mov edx, dword [esp + 0x20]
mov ecx, edi
call fcn.0047c320
push 0
lea eax, [esi + 1]
push eax
push 0x21
mov eax, edi
call fcn.00484530
push 0
push esi
push 0x21
mov eax, edi
call fcn.00484530
add esp, 0x24
jmp 0x4a8e1a
mov ecx, dword [ebp + 0x28]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x28], edx
mov dword [esi + 0x28], ecx
mov edx, dword [ebp + 0x2c]
push esi
push ebx
mov dword [esi + 0x2c], edx
call fcn.004bafb0
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x68], eax
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x2c], ecx
cmp eax, ecx
jne 0x4a8f01
mov dword [ebp + 0x1c], ecx
mov edx, dword [esi + 0x30]
mov dword [ebp + 0x30], edx
mov eax, dword [esi + 0x34]
mov dword [ebp + 0x34], eax
mov eax, edx
cmp eax, ecx
je 0x4a8c1d
push eax
push 0x7e
mov eax, edi
call fcn.004844e0
add esp, 8
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x30]
push ecx
push ebp
push ebx
call fcn.004bafb0
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x1c], edx
mov dword [ebp + 0x1c], esi
test eax, eax
je 0x4a8e1a
mov ecx, dword [edi + 0xc]
cmp ecx, eax
jle 0x4a8e1a
mov edx, dword [edi + 0x14]
lea eax, [eax + eax*4]
mov dword [edx + eax*4 + 8], ecx
jmp 0x4a8e1a
cmp byte [esp + 0x30], 1
jne 0x4a8c7b
cmp dword [ebp + 0x28], edx
jne 0x4a8c7b
cmp dword [ebp + 0x2c], edx
jne 0x4a8c7b
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
jmp 0x4a8ca3
mov eax, dword [ebx + 0x44]
push edx
push eax
lea ecx, [eax + 1]
mov dword [esp + 0x1c], eax
push 0x76
mov eax, edi
mov dword [ebx + 0x44], ecx
call fcn.00484530
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x24]
or word [eax + 6], 8
add esp, 0xc
xor edx, edx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push esi
push ebx
mov byte [esp + 0x5c], 1
mov dword [esp + 0x60], eax
mov byte [esp + 0x5d], 0
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
call fcn.004bafb0
add esp, 0xc
mov dword [esp + 0x68], eax
test eax, eax
jne 0x4a8f01
cmp byte [ebp + 4], 0x72
mov edx, dword [ebp + 0x28]
sete al
inc al
mov byte [esp + 0x50], al
lea eax, [esp + 0x50]
push eax
xor ecx, ecx
mov dword [esp + 0x30], edx
mov edx, dword [ebp + 0x2c]
push ebp
push ebx
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x34], edx
mov dword [ebp + 0x2c], ecx
call fcn.004bafb0
mov ebx, dword [ebp + 0x18]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x74], eax
call fcn.0047d380
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1c]
push eax
xor esi, esi
push ecx
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x18], esi
call fcn.004854a0
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [ebp + 0x2c], eax
mov al, byte [esp + 0x44]
add esp, 0x14
mov dword [ebp + 0x28], edx
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x34], esi
cmp al, 1
je 0x4a8e1a
cmp al, 5
jne 0x4a8d8b
mov eax, dword [ebp + 0x1c]
mov ecx, ebp
test eax, eax
je 0x4a8d79
jmp 0x4a8d70
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x4a8d70
mov ecx, dword [ecx]
mov edx, dword [esp + 0x64]
push ecx
push 0
push edx
call fcn.00495b10
add esp, 0xc
mov eax, edi
call fcn.00484590
mov ebx, eax
mov eax, edi
call fcn.00484590
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x64]
push ebx
push ebp
call fcn.0048e430
mov esi, dword [esp + 0x1c]
push ebx
push esi
push 0x7a
mov eax, edi
call fcn.00484530
mov ecx, dword [esp + 0x38]
mov eax, dword [edi + 0xc]
push ebx
push ecx
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x84]
push 0xffffffffffffffff
mov dword [esp + 0x50], eax
mov eax, dword [ebp]
mov ecx, dword [eax]
push 0
push ecx
push esi
push eax
push ebp
push edx
call fcn.004955c0
mov edx, dword [esp + 0x60]
mov ecx, edi
call fcn.0047c320
mov eax, dword [esp + 0x68]
push eax
push esi
push 0x6a
mov eax, edi
call fcn.00484530
add esp, 0x48
mov edx, ebx
mov ecx, edi
call fcn.0047c320
push 0
push esi
push 0x21
mov eax, edi
call fcn.00484530
add esp, 0xc
test byte [ebp + 6], 8
je 0x4a8f01
mov ecx, dword [ebp]
mov esi, dword [ecx]
mov eax, dword [esp + 0x10]
lea edi, [esi + esi*4 + 0x10]
mov dword [esp + 0x20], esi
call fcn.00488300
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
jne 0x4a8e51
mov dword [esp + 0x68], 7
jmp 0x4a8f01
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0xc]
mov dl, byte [ecx + 0x39]
mov word [ebx + 6], si
xor esi, esi
cmp dword [esp + 0x20], esi
mov byte [ebx + 4], dl
lea edi, [ebx + 0xc]
jle 0x4a8e98
mov eax, dword [esp + 0x64]
push esi
push ebp
push eax
call fcn.0049f0b0
add esp, 0xc
mov dword [edi], eax
test eax, eax
jne 0x4a8e8e
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x2c]
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, dword [esp + 0x20]
jl 0x4a8e70
mov dword [esp + 0x64], ebp
lea esp, [esp]
xor edi, edi
lea esi, [ebp + 0x38]
mov eax, dword [esi]
test eax, eax
jl 0x4a8ee8
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0xc], eax
jle 0x4a8eca
mov ebx, dword [ecx + 0x14]
mov ebp, dword [esp + 0x20]
lea edx, [eax + eax*4]
mov dword [ebx + edx*4 + 8], ebp
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x2c]
push ebx
push ecx
mov ecx, 0xfffffffa
call fcn.00484940
mov dword [esi], 0xffffffff
inc edi
add esp, 8
add esi, 4
cmp edi, 2
jl 0x4a8ea5
mov ebp, dword [ebp + 0x1c]
mov dword [esp + 0x64], ebp
test ebp, ebp
jne 0x4a8ea0
mov eax, dword [esp + 0x10]
push ebx
push eax
call fcn.00477390
add esp, 8
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
test edi, edi
je 0x4a8f65
mov esi, dword [esp + 0x10]
mov eax, edi
mov ecx, esi
call fcn.0047eb60
test esi, esi
je 0x4a8f5c
cmp edi, dword [esi + 0xe8]
jb 0x4a8f5c
cmp edi, dword [esi + 0xec]
jae 0x4a8f5c
mov eax, dword [esi + 0xe4]
mov dword [edi], eax
dec dword [esi + 0xdc]
mov eax, dword [esp + 0x68]
mov dword [esi + 0xe4], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
push edi
call fcn.00477310
add esp, 4
mov eax, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret