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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x65e374]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
mov esi, edx
mov eax, ecx
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], ecx
movups xmm0, xmmword [edx]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x30]
movups xmmword [esp + 0x3c], xmm0
push edi
movq xmm0, qword [edx + 0x10]
mov edi, dword [eax]
movq qword [esp + 0x50], xmm0
cmp dword [ecx + 0x2c], 0
mov dword [esp + 0x34], esi
mov dword [esp + 8], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], ecx
je 0x50fa1d
movzx ecx, byte [esi + 4]
sub ecx, 0x74
je 0x50f9ff
sub ecx, 1
je 0x50f9f8
sub ecx, 1
je 0x50f9f1
mov ecx, str.UNION
jmp 0x50fa04
mov ecx, str.INTERSECT
jmp 0x50fa04
mov ecx, str.EXCEPT
jmp 0x50fa04
mov ecx, str.UNION_ALL
push ecx
push str.ORDER_BY_clause_should_come_after__s_not_before
push eax
call fcn.004bab30
add esp, 0xc
mov esi, 1
jmp 0x5102d2
cmp dword [ecx + 0x38], 0
je 0x50fa69
movzx ecx, byte [esi + 4]
sub ecx, 0x74
je 0x50fa4b
sub ecx, 1
je 0x50fa44
sub ecx, 1
je 0x50fa3d
mov ecx, str.UNION
jmp 0x50fa50
mov ecx, str.INTERSECT
jmp 0x50fa50
mov ecx, str.EXCEPT
jmp 0x50fa50
mov ecx, str.UNION_ALL
push ecx
push str.LIMIT_clause_should_come_after__s_not_before
push eax
call fcn.004bab30
add esp, 0xc
mov esi, 1
jmp 0x5102d2
mov edi, dword [eax + 8]
mov dword [esp + 0x10], edi
test edi, edi
jne 0x50fa81
mov ecx, eax
call fcn.0050ef70
mov edi, eax
mov dword [esp + 0x10], eax
mov cl, byte [esp + 0x40]
cmp cl, 0xc
jne 0x50faa7
mov eax, dword [esi]
mov edx, 0x6c
mov ecx, edi
push dword [eax]
push dword [esp + 0x4c]
call fcn.004d5ed0
mov cl, 0xe
add esp, 8
mov byte [esp + 0x40], cl
mov eax, dword [esi + 8]
test eax, 0x400
je 0x50fb12
mov eax, dword [esi + 0x30]
mov ecx, 1
mov dword [esp + 0x20], ecx
test eax, eax
je 0x50fad0
mov esi, eax
inc ecx
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x50fac1
mov dword [esp + 0x20], ecx
nop
mov edi, dword [esi + 0x30]
lea eax, [esp + 0x40]
mov ecx, dword [esp + 8]
mov edx, esi
push eax
mov dword [esi + 0x30], 0
call fcn.00513a00
mov ecx, eax
mov dword [esi + 0x30], edi
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x5102ca
mov eax, dword [esp + 0x20]
mov word [esi + 6], ax
mov esi, dword [esi + 0x34]
test esi, esi
jne 0x50fad0
jmp 0x5102ca
test eax, 0x2000
je 0x50fb86
mov ecx, dword [esp + 8]
lea eax, [esp + 0x40]
push eax
mov edx, esi
call fcn.0050f300
add esp, 4
mov edi, dword [esp + 0x10]
movzx edx, byte [esi + 4]
xor eax, eax
cmp byte [esi + 4], 0x74
mov ecx, dword [esp + 8]
setne al
push eax
push dword [esp + 0x30]
push dword [esp + 0x28]
call fcn.0050dc20
add esp, 0xc
test byte [esi + 8], 0x20
je 0x5102ca
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push 1
mov edx, dword [eax]
mov dword [esp + 0x24], edx
call fcn.0050dad0
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
jne 0x5101a5
lea esi, [eax + 7]
jmp 0x5102ce
cmp dword [esi + 0x2c], 0
je 0x50fbb3
mov ecx, dword [esp + 0x38]
mov edx, esi
push ecx
mov ecx, dword [esp + 0xc]
call fcn.00510630
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 4]
sub eax, 0x73
je 0x50ff5f
sub eax, 1
je 0x50fe2a
sub eax, 1
je 0x50ff5f
mov ecx, dword [esp + 8]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x20], edx
push edx
lea eax, [edx + 1]
mov edx, 0x6c
mov dword [esp + 0x30], eax
inc eax
mov dword [ecx + 0x28], eax
mov ecx, edi
call fcn.004d5ed0
mov dword [esi + 0x14], eax
add esp, 8
mov eax, dword [esi + 0x34]
mov ecx, esi
test eax, eax
je 0x50fc0f
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x50fc06
or dword [ecx + 8], 0x20
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 8]
mov byte [esp + 0x6c], 1
mov dword [esp + 0x70], 0
mov dword [esp + 0x78], 0
mov ecx, dword [eax + 0x1a4]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
mov dword [esp + 0x80], 0
call fcn.00513a00
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x5102ca
push eax
push dword [esp + 0x2c]
lea edx, [eax + 0x6c]
mov ecx, edi
call fcn.004d5ed0
mov dword [esi + 0x18], eax
mov edx, esi
mov eax, dword [esi + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov ecx, dword [eax + 0x1a4]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x74]
push ecx
mov ecx, eax
call fcn.00513a00
mov ecx, dword [esi + 0x30]
add esp, 0xc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x30], eax
mov dword [esp + 0x30], ecx
movzx eax, word [eax + 6]
cmp word [esi + 6], ax
jle 0x50fce6
mov word [esi + 6], ax
mov edx, dword [esi + 0x38]
test edx, edx
je 0x50fcf6
mov ecx, dword [esp + 0x18]
call fcn.004eaed0
cmp byte [esp + 0x40], 9
mov eax, dword [esp + 0xc]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x3c], eax
jne 0x50fd2e
mov eax, dword [esi + 0x30]
mov edx, esi
test eax, eax
je 0x50fd1d
mov edx, eax
mov eax, dword [edx + 0x30]
test eax, eax
jne 0x50fd14
push dword [edx]
mov edx, dword [edx + 0x1c]
mov ecx, dword [esp + 0xc]
call fcn.0050e600
add esp, 4
mov ecx, edi
call fcn.004d62a0
mov ecx, dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0xc], edi
call fcn.004d62a0
mov ecx, dword [esp + 8]
mov edx, esi
push edi
mov dword [esp + 0x28], eax
call fcn.0050f000
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, 0x3a
push edi
push dword [esp + 0x20]
call fcn.004d5ed0
mov ecx, dword [esp + 0x10]
call fcn.004f14a0
mov ecx, dword [esp + 0x18]
mov edi, eax
push edi
push dword [esp + 0x28]
mov edx, 0x7a
call fcn.004d5ed0
mov ecx, dword [esp + 0x20]
mov edx, 0x1e
push 0
push edi
push dword [esp + 0x3c]
mov dword [esp + 0x58], eax
push dword [esp + 0x44]
call fcn.004d6210
mov ecx, dword [esp + 0x28]
mov edx, edi
call fcn.004f14c0
push dword [esp + 0x2c]
mov edi, dword [esp + 0x48]
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x2c]
mov edx, esi
push edi
push eax
push 0
push 0
push dword [esp + 0x50]
push dword [esi]
call fcn.0050cf30
add esp, 0x3c
mov edx, edi
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.004d62f0
push dword [esp + 0x3c]
mov edx, 7
push dword [esp + 0x20]
call fcn.004d5ed0
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.004d62f0
push 0
push dword [esp + 0x34]
mov edx, 0x70
call fcn.004d5ed0
push 0
push dword [esp + 0x30]
mov edx, 0x70
mov ecx, edi
call fcn.004d5ed0
add esp, 0x18
jmp 0x50fb30
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x38]
mov dword [ecx + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [ecx + 0x3c], eax
mov eax, dword [esp + 8]
mov edx, dword [eax + 0x1a4]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x40]
push edx
mov edx, ecx
mov ecx, eax
call fcn.00513a00
mov ecx, eax
mov dword [esi + 0x38], 0
add esp, 4
mov dword [esp + 0x14], ecx
mov dword [esi + 0x3c], 0
test ecx, ecx
jne 0x5102ca
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x10], eax
test ecx, ecx
je 0x50fece
push ecx
mov edx, 0x16
mov ecx, edi
call fcn.004d5e60
mov ecx, dword [esi + 0x10]
add esp, 4
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x50fece
push ecx
inc ecx
mov edx, 0x93
push ecx
push dword [esi + 0xc]
mov ecx, edi
call fcn.004d5d80
add esp, 0xc
mov eax, dword [esp + 8]
mov edx, esi
mov ecx, dword [eax + 0x1a4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.00513a00
mov ecx, dword [esi + 0x30]
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x30], eax
mov dword [esp + 0x30], ecx
mov cx, word [esi + 6]
mov dx, word [eax + 6]
call fcn.004bbe40
mov edx, dword [esp + 0x24]
mov word [esi + 6], ax
mov ecx, dword [edx + 0x38]
test ecx, ecx
je 0x50ff45
lea edx, [esp + 0x3c]
call fcn.004ec240
test eax, eax
je 0x50ff45
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x50ff45
cdq
push edx
push eax
call fcn.004bbeb0
add esp, 8
cmp word [esi + 6], ax
jle 0x50ff45
mov word [esi + 6], ax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x50fb2c
mov edx, eax
mov ecx, edi
call fcn.004d6610
jmp 0x50fb2c
cmp cl, 1
jne 0x50ff6e
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
jmp 0x50ffb1
mov ecx, dword [esp + 8]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x20], edx
push edx
lea eax, [edx + 1]
mov edx, 0x6c
mov dword [ecx + 0x28], eax
mov ecx, edi
call fcn.004d5ed0
mov dword [esi + 0x14], eax
add esp, 8
mov eax, dword [esi + 0x34]
mov ecx, esi
test eax, eax
je 0x50ffa9
nop dword [eax]
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x50ffa0
or dword [ecx + 8], 0x20
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 8]
mov byte [esp + 0x84], 1
mov dword [esp + 0x88], 0
mov dword [esp + 0x90], 0
mov ecx, dword [eax + 0x1a4]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x84]
push ecx
mov ecx, eax
mov dword [esp + 0x98], 0
call fcn.00513a00
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x5102ca
cmp byte [esi + 4], 0x75
mov edx, esi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0xc], eax
sete al
inc al
mov dword [esi + 0x38], ecx
mov byte [esp + 0x84], al
mov eax, dword [esp + 8]
mov dword [esi + 0x3c], ecx
mov ecx, dword [eax + 0x1a4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x84]
push ecx
mov ecx, eax
call fcn.00513a00
mov edx, dword [esi + 0x2c]
add esp, 4
mov dword [esp + 0x14], eax
test edx, edx
je 0x510070
mov ecx, dword [esp + 0x18]
call fcn.004ebf80
cmp byte [esi + 4], 0x73
mov ecx, dword [esi + 0x30]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], 0
jne 0x51009c
mov dx, word [eax + 6]
mov cx, word [esi + 6]
call fcn.004bbe40
mov word [esi + 6], ax
mov edx, dword [esi + 0x38]
test edx, edx
je 0x5100ac
mov ecx, dword [esp + 0x18]
call fcn.004eaed0
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x3c], eax
mov al, byte [esp + 0x40]
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
cmp al, 1
je 0x50fb2c
cmp al, 9
jne 0x5100fb
mov eax, dword [esi + 0x30]
mov edx, esi
test eax, eax
je 0x5100ea
mov edx, eax
mov eax, dword [edx + 0x30]
test eax, eax
jne 0x5100e1
push dword [edx]
mov edx, dword [edx + 0x1c]
mov ecx, dword [esp + 0xc]
call fcn.0050e600
add esp, 4
mov ecx, edi
call fcn.004d62a0
mov ecx, dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0x28], edi
call fcn.004d62a0
mov ecx, dword [esp + 8]
mov edx, esi
push edi
mov dword [esp + 0x10], eax
call fcn.0050f000
add esp, 4
mov edx, 0x3a
push edi
push dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.004d5ed0
push dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x4c]
push dword [esp + 0x18]
mov edi, dword [edi + 0x88]
mov edx, esi
push eax
push 0
push 0
push dword [esp + 0x38]
push dword [esi]
call fcn.0050cf30
mov edx, dword [esp + 0x30]
add esp, 0x24
mov ecx, dword [esp + 0x10]
call fcn.004d62f0
push edi
push dword [esp + 0x20]
mov edx, 7
mov edi, ecx
call fcn.004d5ed0
mov edx, dword [esp + 0x30]
mov ecx, edi
call fcn.004d62f0
push 0
push dword [esp + 0x28]
mov edx, 0x70
call fcn.004d5ed0
add esp, 0x10
jmp 0x50fb30
mov edx, dword [esp + 0x20]
add eax, 0x14
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0xc], eax
test edx, edx
jle 0x510200
mov edi, dword [esp + 8]
nop
push eax
mov edx, esi
mov ecx, edi
call fcn.0050f140
mov ecx, dword [esp + 0x30]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x5101e0
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
add ecx, 4
mov edx, dword [esp + 0x20]
inc eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], ecx
cmp eax, edx
jl 0x5101c0
mov edi, dword [esp + 0x10]
nop dword [eax]
lea eax, [esi + 0x14]
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [eax]
test eax, eax
js 0x5102a4
lea ecx, [eax + eax*4]
mov eax, dword [edi]
shl ecx, 2
cmp byte [eax + 0x45], 0
je 0x510232
mov eax, 0x665728
jmp 0x510237
mov eax, dword [edi + 0x58]
add eax, ecx
mov dword [eax + 8], edx
inc dword [esi]
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
je 0x51025a
push esi
mov edx, 0xfffffffb
mov ecx, eax
call fcn.004d67f0
mov edx, dword [esp + 0x24]
add esp, 4
jmp 0x510281
mov eax, dword [edi + 0x58]
add eax, ecx
cmp byte [eax + 1], 0
je 0x51027a
push 0xfffffffffffffffb
push esi
mov edx, eax
mov ecx, edi
call fcn.004d69b0
mov edx, dword [esp + 0x28]
add esp, 8
jmp 0x510281
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xfb
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0xc], ecx
mov dword [eax], 0xffffffff
add eax, 4
mov dword [esp + 0x2c], eax
cmp ecx, 2
jl 0x510213
mov esi, dword [esp + 0x34]
mov esi, dword [esi + 0x30]
mov dword [esp + 0x34], esi
test esi, esi
jne 0x510200
mov eax, dword [esp + 0x28]
add dword [eax], 0xffffffff
jne 0x5102ca
mov ecx, dword [eax + 0xc]
mov edx, eax
call fcn.004b7da0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5102fa
push 1
mov edx, eax
mov ecx, edi
call fcn.0050c140
add esp, 4
mov ecx, dword [esp + 0x9c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret