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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x7cdffc]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, edx
mov dword [esp + 0x28], eax
mov edx, dword [ebp + 8]
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x38]
mov edx, dword [edi + 0x34]
mov dword [esp + 0x20], edi
mov dword [esp + 8], ecx
movups xmm0, xmmword [eax]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x50], eax
movups xmmword [esp + 0x40], xmm0
cmp dword [edx + 0x30], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], edx
je 0x50783c
movzx eax, byte [edi + 4]
sub eax, 0x74
je 0x50781b
sub eax, 1
je 0x507814
sub eax, 1
je 0x50780d
mov eax, str.UNION
jmp 0x507820
mov eax, str.INTERSECT
jmp 0x507820
mov eax, str.EXCEPT
jmp 0x507820
mov eax, str.UNION_ALL
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
push ecx
call fcn.004b73f0
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x507ff8
cmp dword [edx + 0x3c], 0
je 0x507889
movzx eax, byte [edi + 4]
sub eax, 0x74
je 0x50787c
sub eax, 1
je 0x50786f
sub eax, 1
je 0x507862
mov eax, str.UNION
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x507826
mov eax, str.INTERSECT
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x507826
mov eax, str.EXCEPT
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x507826
mov eax, str.UNION_ALL
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x507826
call fcn.00506c70
cmp byte [esp + 0x40], 0xc
mov esi, eax
mov dword [esp + 0x1c], esi
jne 0x5078c9
mov eax, dword [edi]
mov edx, 0x39
mov ecx, esi
push dword [eax]
push dword [esp + 0x48]
call fcn.004d1cd0
mov ecx, dword [esi + 4]
add esp, 8
test ecx, ecx
je 0x5078c4
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 8
mov byte [esp + 0x40], 0xe
movzx eax, word [edi + 6]
test eax, 0x100
je 0x5078ed
mov ecx, dword [esp + 8]
lea eax, [esp + 0x40]
push eax
mov edx, edi
call fcn.00507700
mov dword [esp + 0x14], eax
jmp 0x507ff5
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
mov ecx, dword [edx]
mov eax, dword [eax]
cmp eax, dword [ecx]
je 0x507913
mov ecx, dword [esp + 8]
mov edx, edi
call fcn.00507670
mov dword [esp + 0x10], 1
jmp 0x507ff8
movzx eax, word [edi + 6]
test eax, 0x800
je 0x507936
mov ecx, dword [esp + 8]
lea eax, [esp + 0x40]
push eax
mov edx, edi
call fcn.00507040
add esp, 4
jmp 0x507edc
cmp dword [edi + 0x30], 0
je 0x507963
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 8]
push edx
mov edx, edi
call fcn.00508560
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + 4]
sub eax, 0x73
je 0x507cc8
sub eax, 1
je 0x507bc2
sub eax, 1
je 0x507cc8
mov ecx, dword [esp + 8]
push 0
mov edx, dword [ecx + 0x44]
mov dword [esp + 0x18], edx
push edx
lea eax, [edx + 1]
mov edx, 0x39
mov dword [esp + 0x38], eax
inc eax
mov dword [ecx + 0x44], eax
mov ecx, esi
call fcn.004d1cd0
mov ecx, edi
mov dword [edi + 0x10], eax
call fcn.00503eb0
mov edx, dword [esp + 0x20]
or word [eax + 6], 8
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x10]
mov word [esp + 0x6c], 1
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov ecx, dword [eax + 0x1d4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
call fcn.0050b5d0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x507ff8
push eax
push dword [esp + 0x34]
lea edx, [eax + 0x39]
mov ecx, esi
call fcn.004d1cd0
mov dword [edi + 0x14], eax
mov edx, edi
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x34], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov ecx, dword [eax + 0x1d4]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
call fcn.0050b5d0
mov dword [esp + 0x1c], eax
add esp, 0xc
mov eax, dword [edi + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x34], eax
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
cmp dword [edi + 0x1c], eax
jb 0x507a88
ja 0x507a82
cmp dword [edi + 0x18], ecx
jbe 0x507a88
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], eax
mov edx, dword [edi + 0x3c]
mov ecx, dword [esp + 0x28]
call fcn.004e4e10
cmp byte [esp + 0x40], 9
mov eax, dword [esp + 0xc]
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x40], eax
jne 0x507acb
mov eax, dword [edi + 0x34]
mov ecx, edi
test eax, eax
je 0x507abb
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x507ab2
push dword [ecx]
mov ecx, dword [esp + 0xc]
xor edx, edx
call fcn.00506470
add esp, 4
mov ecx, esi
call fcn.004d1ed0
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0xc], esi
call fcn.004d1ed0
mov ecx, dword [esp + 8]
mov edx, edi
push esi
mov dword [esp + 0x1c], eax
call fcn.00506cc0
mov ecx, dword [esp + 0x20]
add esp, 4
mov edx, 0x6c
push esi
push dword [esp + 0x18]
call fcn.004d1cd0
mov ecx, dword [esp + 0x10]
call fcn.004e9ee0
mov ecx, dword [esp + 0x24]
mov esi, eax
push esi
push dword [esp + 0x20]
mov edx, 0x65
call fcn.004d1cd0
mov ecx, dword [esp + 0x2c]
mov edx, 0x44
push 0
push esi
push dword [esp + 0x30]
mov edi, eax
push dword [esp + 0x4c]
call fcn.004d1e60
mov ecx, dword [esp + 0x28]
mov edx, esi
call fcn.004e9f00
push dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x64]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
push esi
push eax
push 0
push 0
push dword [esp + 0x48]
push dword [edx]
call fcn.00504c20
add esp, 0x3c
mov edx, esi
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.004d1f20
push edi
mov edi, dword [esp + 0x18]
mov edx, 9
push edi
call fcn.004d1cd0
mov edx, dword [esp + 0x14]
mov ecx, esi
call fcn.004d1f20
lea eax, [edi + 1]
mov edx, 0x3d
push 0
push eax
call fcn.004d1cd0
push 0
push edi
mov edx, 0x3d
mov ecx, esi
call fcn.004d1cd0
add esp, 0x18
jmp 0x507ed8
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [edx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [edi + 0x3c]
mov dword [edx + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [edx + 0x40], eax
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x1d4]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.0050b5d0
add esp, 4
mov dword [esp + 0x10], eax
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
test eax, eax
jne 0x507ff8
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x34], eax
mov edx, dword [ecx + 8]
mov dword [edi + 8], edx
mov eax, dword [ecx + 0xc]
mov dword [edi + 0xc], eax
test edx, edx
je 0x507c42
push edx
mov edx, 0x8b
mov ecx, esi
call fcn.004d1c60
add esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
mov edx, edi
mov ecx, dword [eax + 0x1d4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.0050b5d0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x34]
mov dword [edi + 0x34], ecx
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x18]
add dword [edi + 0x18], eax
mov eax, dword [ecx + 0x1c]
adc dword [edi + 0x1c], eax
mov ecx, dword [ecx + 0x3c]
test ecx, ecx
je 0x507cae
lea edx, [esp + 0x3c]
call fcn.004e5ec0
test eax, eax
je 0x507cae
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x507cae
cdq
cmp dword [edi + 0x1c], edx
jb 0x507cae
ja 0x507ca8
cmp dword [edi + 0x18], eax
jbe 0x507cae
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x507edc
mov edx, eax
mov ecx, esi
call fcn.004d21a0
jmp 0x507edc
cmp byte [esp + 0x40], 1
jne 0x507cd9
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
jmp 0x507d13
mov ecx, dword [esp + 8]
push 0
mov edx, dword [ecx + 0x44]
mov dword [esp + 0x18], edx
push edx
lea eax, [edx + 1]
mov edx, 0x39
mov dword [ecx + 0x44], eax
mov ecx, esi
call fcn.004d1cd0
add esp, 8
mov dword [edi + 0x10], eax
mov ecx, edi
call fcn.00503eb0
mov edx, dword [esp + 0x18]
or word [eax + 6], 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 8]
mov word [esp + 0x78], 1
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov ecx, dword [eax + 0x1d4]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x78]
push ecx
mov ecx, eax
call fcn.0050b5d0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x507ff8
cmp byte [edi + 4], 0x75
mov edx, edi
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esp + 0xc], eax
sete al
inc al
mov dword [edi + 0x3c], 0
mov byte [esp + 0x78], al
mov eax, dword [esp + 8]
mov dword [edi + 0x40], 0
mov ecx, dword [eax + 0x1d4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x78]
push ecx
mov ecx, eax
call fcn.0050b5d0
mov edx, dword [edi + 0x30]
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
call fcn.004e5ba0
cmp byte [edi + 4], 0x73
mov eax, dword [edi + 0x34]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [edi + 0x34], ecx
mov dword [edi + 0x30], 0
jne 0x507ddf
mov eax, dword [ecx + 0x18]
add dword [edi + 0x18], eax
mov eax, dword [ecx + 0x1c]
adc dword [edi + 0x1c], eax
mov edx, dword [edi + 0x3c]
mov ecx, dword [esp + 0x28]
call fcn.004e4e10
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0xc]
mov dword [edi + 0x40], eax
mov al, byte [esp + 0x40]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
cmp al, 1
je 0x507edc
cmp al, 9
jne 0x507e39
mov eax, dword [edi + 0x34]
mov ecx, edi
test eax, eax
je 0x507e29
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x507e20
push dword [ecx]
mov ecx, dword [esp + 0xc]
xor edx, edx
call fcn.00506470
add esp, 4
mov ecx, esi
call fcn.004d1ed0
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0xc], esi
call fcn.004d1ed0
mov edx, dword [esp + 0x20]
mov edi, eax
mov ecx, dword [esp + 8]
push esi
call fcn.00506cc0
add esp, 4
mov edx, 0x6c
push esi
push dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.004d1cd0
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x4c]
mov esi, dword [esi + 0x20]
push edi
push eax
mov eax, dword [esp + 0x34]
mov edx, eax
push 0
push 0
push dword [esp + 0x30]
push dword [eax]
call fcn.00504c20
add esp, 0x24
mov edx, edi
mov edi, dword [esp + 0x1c]
mov ecx, edi
call fcn.004d1f20
push esi
mov esi, dword [esp + 0x18]
mov edx, 9
push esi
call fcn.004d1cd0
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.004d1f20
push 0
push esi
mov edx, 0x3d
call fcn.004d1cd0
add esp, 0x10
mov edi, dword [esp + 0x20]
movzx edx, byte [edi + 4]
xor eax, eax
cmp byte [edi + 4], 0x74
mov ecx, dword [esp + 8]
setne al
push eax
push dword [esp + 0x30]
push dword [esp + 0x2c]
call fcn.005058d0
add esp, 0xc
test byte [edi + 6], 8
je 0x507ff8
mov eax, dword [edi]
mov ecx, dword [esp + 0x28]
push 1
mov esi, dword [eax]
mov edx, esi
mov dword [esp + 0x30], esi
call fcn.00505770
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
jne 0x507f35
mov dword [esp + 0x10], 7
jmp 0x507ff8
add eax, 0x14
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0xc], eax
test esi, esi
jle 0x507f80
mov ecx, dword [esp + 8]
mov edx, edi
push eax
call fcn.00506e70
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x507f68
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
add ecx, 4
inc eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], eax
cmp eax, esi
jl 0x507f46
nop dword [eax]
lea esi, [edi + 0x10]
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0x1c]
nop
mov edx, dword [esi]
test edx, edx
js 0x507fd7
cmp dword [edi + 0x20], edx
jbe 0x507fad
mov eax, dword [edi + 4]
lea ecx, [edx + edx*4]
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ecx, edi
push 0xfffffffffffffffa
push eax
inc dword [eax]
call fcn.004d23c0
mov eax, dword [esp + 0x14]
add esp, 8
inc eax
mov dword [esi], 0xffffffff
add esi, 4
mov dword [esp + 0xc], eax
cmp eax, 2
jl 0x507f90
mov edi, dword [esp + 0x20]
mov edi, dword [edi + 0x34]
mov dword [esp + 0x20], edi
test edi, edi
jne 0x507f80
mov eax, dword [esp + 0x24]
add dword [eax], 0xffffffff
jne 0x507ff8
push eax
call fcn.004b4670
add esp, 4
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
push 1
mov dword [edx + 8], eax
mov eax, dword [esp + 0x50]
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x38]
call fcn.00503c20
mov ecx, dword [esp + 0x90]
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret