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

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x68]
push ebx
mov ebx, dword [esp + 0x64]
mov edx, dword [ebx]
mov dword [esp + 4], edx
mov edx, dword [eax]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 8]
push ebp
mov ebp, dword [esp + 0x6c]
xor ecx, ecx
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
push esi
mov esi, dword [ebp + 0x34]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
push edi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x30], ecx
je 0x4fb46f
movzx eax, byte [ebp + 4]
sub eax, 0x74
je 0x4fb44d
sub eax, 1
je 0x4fb446
sub eax, 1
je 0x4fb43f
mov eax, str.UNION
jmp 0x4fb452
mov eax, str.INTERSECT
jmp 0x4fb452
mov eax, str.EXCEPT
jmp 0x4fb452
mov eax, str.UNION_ALL
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
mov edi, ebx
call fcn.004e0360
add esp, 8
mov dword [esp + 0x74], 1
jmp 0x4fbc3a
cmp dword [esi + 0x3c], ecx
je 0x4fb4bb
movzx eax, byte [ebp + 4]
sub eax, 0x74
je 0x4fb4ae
sub eax, 1
je 0x4fb4a1
sub eax, 1
je 0x4fb494
mov eax, str.UNION
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4fb458
mov eax, str.INTERSECT
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4fb458
mov eax, str.EXCEPT
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4fb458
mov eax, str.UNION_ALL
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4fb458
mov edi, ebx
call fcn.004d8f30
mov cl, byte [esp + 0x30]
mov edi, eax
cmp cl, 0xc
jne 0x4fb50b
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [esp + 0x34]
push 0
push edx
push eax
push 0x3a
push edi
call fcn.004cf760
mov eax, dword [edi + 0x20]
mov ecx, dword [edi]
add esp, 0x14
dec eax
cmp byte [ecx + 0x41], 0
je 0x4fb4f8
mov eax, 0x5a2838
jmp 0x4fb501
lea edx, [eax + eax*4]
mov eax, dword [edi + 4]
lea eax, [eax + edx*4]
mov cl, 0xe
mov byte [eax + 3], 8
mov byte [esp + 0x30], cl
movzx eax, word [ebp + 6]
test eax, 0x200
je 0x4fb52f
lea ecx, [esp + 0x30]
push ecx
push ebx
mov eax, ebp
call fcn.004c8a40
add esp, 8
mov dword [esp + 0x74], eax
jmp 0x4fbc3a
test eax, 0x2000
je 0x4fb54a
lea edx, [esp + 0x30]
push edx
push ebp
push ebx
call fcn.004fadc0
add esp, 0xc
jmp 0x4fbae7
cmp dword [ebp + 0x30], 0
je 0x4fb567
mov eax, dword [esp + 0x78]
push eax
push ebp
push ebx
call fcn.004f21d0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
movzx eax, byte [ebp + 4]
sub eax, 0x73
je 0x4fb8f1
sub eax, 1
je 0x4fb7af
sub eax, 1
je 0x4fb8f1
mov eax, dword [ebx + 0x44]
push 0
push 0
push eax
lea ecx, [eax + 2]
push 0x3a
push edi
mov dword [esp + 0x84], eax
mov dword [ebx + 0x44], ecx
call fcn.004cf760
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x38]
add esp, 0x14
mov eax, ebp
test ecx, ecx
je 0x4fb5bb
mov eax, ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x4fb5b2
or word [eax + 6], 0x10
mov edx, dword [esp + 0x70]
xor eax, eax
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x1d4]
push esi
push ebx
mov byte [esp + 0x50], 1
mov dword [esp + 0x54], edx
mov byte [esp + 0x51], 0
mov dword [esp + 0x24], eax
call fcn.0050f700
add esp, 0xc
mov dword [esp + 0x74], eax
test eax, eax
jne 0x4fbc3a
push eax
push eax
mov eax, dword [esp + 0x78]
inc eax
push eax
push 0x3a
push edi
mov dword [esp + 0x88], eax
call fcn.004cf760
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x34], ecx
mov dword [ebp + 0x14], eax
xor eax, eax
lea ecx, [esp + 0x58]
push ecx
mov dword [ebp + 0x34], eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x8c]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x40], eax
mov eax, dword [ebx + 0x1d4]
push ebp
push ebx
mov dword [esp + 0x68], edx
mov dword [esp + 0x34], eax
call fcn.0050f700
mov edx, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x34], esi
mov dword [esp + 0x94], eax
mov eax, dword [esi + 0x18]
mov esi, dword [esi + 0x1c]
add esp, 0x20
mov dword [esp + 0x1c], edx
cmp ecx, esi
jb 0x4fb685
ja 0x4fb67f
mov edx, dword [ebp + 0x18]
cmp edx, eax
jbe 0x4fb685
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], esi
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.004d15b0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add esp, 8
cmp byte [esp + 0x30], 9
mov dword [ebp + 0x3c], edx
mov dword [ebp + 0x40], eax
jne 0x4fb6cd
mov ecx, dword [ebp + 0x34]
mov eax, ebp
test ecx, ecx
je 0x4fb6bd
mov eax, ecx
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x4fb6b4
mov ecx, dword [eax]
mov edx, dword [eax + 0x20]
push ecx
push edx
push ebx
call fcn.004e7f70
add esp, 0xc
mov eax, edi
call fcn.004cf7f0
mov esi, eax
mov eax, edi
mov dword [esp + 0x24], esi
call fcn.004cf7f0
mov dword [esp + 0x20], eax
push esi
push ebp
mov eax, ebx
call fcn.004d8f80
push 0
push esi
mov esi, dword [esp + 0x80]
push esi
push 0x6e
push edi
call fcn.004cf760
mov eax, ebx
call fcn.004c7150
push 0
push eax
push esi
push 0x67
push edi
mov dword [esp + 0x58], eax
call fcn.004cf760
mov ecx, dword [esp + 0x50]
push 0
inc esi
push esi
mov esi, dword [esp + 0x60]
mov dword [esp + 0x64], eax
push 0x46
push edi
mov eax, esi
call fcn.004d6580
add esp, 0x40
mov edx, ebx
call fcn.004c7170
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x70]
push eax
mov eax, dword [ebp]
push ecx
lea edx, [esp + 0x38]
push edx
push 0
push 0
push esi
push eax
push ebp
push ebx
call fcn.004fa370
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, edi
call fcn.004c4a30
mov edx, dword [esp + 0x54]
push 0
push edx
push esi
push 8
push edi
call fcn.004cf760
mov eax, dword [esp + 0x60]
push eax
mov ecx, edi
call fcn.004c4a30
add esp, 0x40
push 0
push 0
lea eax, [esi + 1]
push eax
push 0x3e
push edi
call fcn.004cf760
push 0
push 0
push esi
push 0x3e
push edi
call fcn.004cf760
add esp, 0x28
jmp 0x4fbae7
mov ecx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebp + 0x3c]
mov dword [esi + 0x3c], eax
mov ecx, dword [ebp + 0x40]
lea eax, [esp + 0x30]
push eax
mov dword [esi + 0x40], ecx
mov edx, dword [ebx + 0x1d4]
push esi
push ebx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x24], edx
call fcn.0050f700
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x74], eax
mov dword [ebp + 0x3c], ecx
mov dword [ebp + 0x40], ecx
cmp eax, ecx
jne 0x4fbc3a
mov dword [ebp + 0x34], ecx
mov ecx, dword [esi + 8]
mov dword [ebp + 8], ecx
mov edx, dword [esi + 0xc]
mov eax, ecx
mov dword [ebp + 0xc], edx
test eax, eax
je 0x4fb86b
push 0
push 0
push eax
push 0x2f
push edi
call fcn.004cf760
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0xc]
add esp, 0x14
test eax, eax
je 0x4fb86b
push 0
push eax
push eax
push 0x8c
push edi
call fcn.004cf760
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [eax + 1]
push ecx
push eax
push edx
push 0x59
push edi
call fcn.004cf760
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
inc eax
push eax
push ecx
push 0x8c
push edi
call fcn.004cf760
add esp, 0x3c
mov edx, dword [ebx + 0x1d4]
lea eax, [esp + 0x30]
push eax
push ebp
push ebx
mov dword [esp + 0x20], edx
call fcn.0050f700
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x34], esi
mov edx, dword [esi + 0x18]
add esp, 0xc
add dword [ebp + 0x18], edx
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x1c]
adc dword [ebp + 0x1c], eax
mov esi, dword [esi + 0x3c]
mov dword [esp + 0x1c], ecx
test esi, esi
je 0x4fb8d6
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.004c6b80
add esp, 8
test eax, eax
je 0x4fb8d6
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x4fb8d6
mov ecx, dword [ebp + 0x1c]
cdq
cmp ecx, edx
jb 0x4fb8d6
ja 0x4fb8d0
mov ecx, dword [ebp + 0x18]
cmp ecx, eax
jbe 0x4fb8d6
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], edx
cmp dword [esp + 0x70], 0
je 0x4fbae7
mov ecx, dword [esp + 0x70]
mov eax, edi
call fcn.004cf9b0
jmp 0x4fbae7
cmp cl, 1
jne 0x4fb900
mov edx, dword [esp + 0x34]
mov dword [esp + 0x70], edx
jmp 0x4fb93e
mov eax, dword [ebx + 0x44]
push 0
push 0
push eax
lea ecx, [eax + 1]
push 0x3a
push edi
mov dword [esp + 0x84], eax
mov dword [ebx + 0x44], ecx
call fcn.004cf760
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x38]
add esp, 0x14
mov eax, ebp
test ecx, ecx
je 0x4fb939
lea esp, [esp]
mov eax, ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x4fb930
or word [eax + 6], 0x10
mov edx, dword [esp + 0x70]
xor eax, eax
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0x1d4]
push esi
push ebx
mov byte [esp + 0x64], 1
mov dword [esp + 0x68], edx
mov byte [esp + 0x65], 0
mov dword [esp + 0x24], eax
call fcn.0050f700
add esp, 0xc
mov dword [esp + 0x74], eax
test eax, eax
jne 0x4fbc3a
cmp byte [ebp + 4], 0x75
mov edx, dword [ebp + 0x3c]
sete al
xor ecx, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x40]
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x3c], ecx
mov dword [ebp + 0x40], ecx
lea ecx, [esp + 0x58]
inc al
push ecx
mov byte [esp + 0x5c], al
mov eax, dword [ebx + 0x1d4]
push ebp
push ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], eax
call fcn.0050f700
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.004d19a0
mov ecx, dword [ebp + 0x34]
add esp, 0x14
cmp byte [ebp + 4], 0x73
mov dword [esp + 0x1c], ecx
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x30], 0
jne 0x4fb9f6
mov edx, dword [esi + 0x18]
add dword [ebp + 0x18], edx
mov eax, dword [esi + 0x1c]
adc dword [ebp + 0x1c], eax
mov ecx, dword [ebp + 0x3c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.004d15b0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [ebp + 0x3c], eax
mov al, byte [esp + 0x38]
xor edx, edx
add esp, 8
mov dword [ebp + 0x40], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
cmp al, 1
je 0x4fbae7
cmp al, 9
jne 0x4fba4f
mov ecx, dword [ebp + 0x34]
mov eax, ebp
cmp ecx, edx
je 0x4fba3f
mov eax, ecx
mov ecx, dword [eax + 0x34]
cmp ecx, edx
jne 0x4fba36
mov edx, dword [eax]
mov eax, dword [eax + 0x20]
push edx
push eax
push ebx
call fcn.004e7f70
add esp, 0xc
mov eax, edi
call fcn.004cf7f0
mov esi, eax
mov eax, edi
call fcn.004cf7f0
mov dword [esp + 0x24], eax
push esi
push ebp
mov eax, ebx
call fcn.004d8f80
mov ecx, dword [esp + 0x78]
push 0
push esi
push ecx
push 0x6e
push edi
call fcn.004cf760
mov eax, dword [esp + 0x40]
mov edx, dword [edi + 0x20]
push esi
push eax
mov eax, dword [ebp]
lea ecx, [esp + 0x54]
push ecx
push 0
push 0
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0xa0]
push edx
push eax
push ebp
push ebx
call fcn.004fa370
mov ecx, dword [esp + 0x64]
add esp, 0x40
push ecx
mov ecx, edi
call fcn.004c4a30
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x74]
push 0
push edx
push eax
push 8
push edi
call fcn.004cf760
push esi
mov ecx, edi
call fcn.004c4a30
mov ecx, dword [esp + 0x8c]
push 0
push 0
push ecx
push 0x3e
push edi
call fcn.004cf760
add esp, 0x30
mov al, byte [ebp + 4]
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp al, 0x74
setne dl
movzx eax, al
push edx
mov edx, dword [esp + 0x1c]
push ecx
push edx
push ebx
call fcn.004e7e80
add esp, 0x10
test byte [ebp + 6], 0x10
je 0x4fbc3a
mov eax, dword [ebp]
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push 1
push eax
push ecx
mov dword [esp + 0x2c], eax
call fcn.004d8ec0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4fbb3e
mov dword [esp + 0x74], 7
jmp 0x4fbc3a
cmp dword [esp + 0x20], 0
lea edx, [esi + 0x14]
mov dword [esp + 0x70], 0
mov dword [esp + 0x18], edx
jle 0x4fbb8a
mov eax, dword [esp + 0x70]
push eax
push ebp
push ebx
call fcn.004f2010
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [ecx], eax
test eax, eax
jne 0x4fbb76
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x70]
add dword [esp + 0x18], 4
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x70], eax
jl 0x4fbb54
mov dword [esp + 0x18], ebp
mov edi, edi
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x70], 0
add ebx, 0x10
nop
mov edx, dword [ebx]
test edx, edx
jl 0x4fbc19
mov eax, dword [edi]
cmp byte [eax + 0x41], 0
je 0x4fbbb5
mov eax, 0x5a2838
jmp 0x4fbbbe
mov eax, dword [edi + 4]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
inc dword [esi]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
test eax, eax
je 0x4fbbf2
cmp byte [ecx + 0x41], 0
jne 0x4fbbf2
lea edx, [edx + edx*4]
lea ebp, [eax + edx*4]
movsx eax, byte [ebp + 1]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004cf9f0
mov dword [ebp + 0x10], esi
mov byte [ebp + 1], 0xfa
jmp 0x4fbbff
push ecx
mov ecx, esi
mov eax, 0xfffffffa
call fcn.004cf9f0
mov eax, dword [esp + 0x74]
inc eax
mov dword [ebx], 0xffffffff
add esp, 4
add ebx, 4
cmp eax, 2
mov dword [esp + 0x70], eax
jl 0x4fbba0
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4fbb90
add dword [esi], 0xffffffff
jne 0x4fbc3a
push esi
call fcn.004bf5d0
add esp, 4
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x1c]
push 1
push eax
push ecx
call fcn.004c86f0
mov eax, dword [esp + 0x80]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret