Function at 0x487150
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, eax
mov eax, dword [edi]
mov ecx, dword [ebx + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
mov dword [esp + 0x40], esi
mov esi, dword [eax + 4]
mov dword [esp + 0x44], esi
mov esi, dword [eax + 8]
mov dword [esp + 0x48], esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x4c], esi
mov esi, dword [eax + 0x10]
xor edx, edx
mov dword [esp + 0x50], esi
mov esi, dword [eax + 0x14]
mov dword [esp + 0x54], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], ecx
cmp dword [ecx + 0x2c], edx
je 0x4871fb
movzx eax, byte [ebx + 4]
sub eax, 0x74
je 0x4871d9
sub eax, 1
je 0x4871d2
sub eax, 1
je 0x4871cb
mov eax, str.UNION
jmp 0x4871de
mov eax, str.INTERSECT
jmp 0x4871de
mov eax, str.EXCEPT
jmp 0x4871de
mov eax, str.UNION_ALL
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
mov esi, edi
call fcn.004369c0
add esp, 8
mov dword [esp + 0x14], 1
jmp 0x48797f
cmp dword [ecx + 0x38], edx
je 0x487247
movzx eax, byte [ebx + 4]
sub eax, 0x74
je 0x48723a
sub eax, 1
je 0x48722d
sub eax, 1
je 0x487220
mov eax, str.UNION
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4871e4
mov eax, str.INTERSECT
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4871e4
mov eax, str.EXCEPT
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4871e4
mov eax, str.UNION_ALL
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4871e4
mov esi, dword [edi + 8]
cmp esi, edx
je 0x487254
mov dword [esp + 0x10], esi
jmp 0x487268
mov eax, edi
call fcn.004869d0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov esi, eax
mov eax, dword [ebp + 0xc]
cmp byte [esp + 0x40], 0xc
jne 0x487292
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [esp + 0x44]
push 0
push edx
push eax
push 0x6c
push esi
call fcn.00451be0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp + 0xc]
add esp, 0x14
mov byte [esp + 0x40], 0xe
mov edx, dword [ebx + 8]
test edx, 0x400
je 0x4872b6
lea ecx, [esp + 0x40]
push ecx
push edi
mov eax, ebx
call fcn.004870f0
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x48797f
test edx, 0x2000
je 0x4872d1
lea edx, [esp + 0x40]
push edx
push edi
call fcn.00486cd0
add esp, 8
jmp 0x487825
xor edx, edx
cmp dword [ebx + 0x2c], edx
je 0x4872ea
push eax
push ebx
push edi
call fcn.00487dd0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebx + 4]
sub eax, 0x73
je 0x48763c
sub eax, 1
je 0x487516
sub eax, 1
je 0x48763c
mov eax, dword [edi + 0x28]
push edx
push edx
push eax
lea ecx, [eax + 2]
push 0x6c
push esi
mov dword [esp + 0x34], eax
mov dword [edi + 0x28], ecx
call fcn.00451be0
mov dword [ebx + 0x14], eax
mov ecx, dword [ebx + 0x34]
xor edx, edx
add esp, 0x14
mov eax, ebx
cmp ecx, edx
je 0x48733b
mov eax, ecx
mov ecx, dword [eax + 0x34]
cmp ecx, edx
jne 0x487332
or dword [eax + 8], 0x20
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 0x1a0]
mov dword [esp + 0x68], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
push edx
push eax
push edi
mov byte [esp + 0x64], 1
mov dword [esp + 0x34], ecx
call fcn.0048b590
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x48797f
push eax
push eax
mov eax, dword [esp + 0x28]
inc eax
push eax
push 0x6c
push esi
mov dword [esp + 0x48], eax
call fcn.00451be0
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x38]
add esp, 0x14
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [esp + 0x30], edx
lea edx, [esp + 0x58]
push edx
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0x1a0]
push ebx
push edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x30], ecx
call fcn.0048b590
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x30], eax
movzx eax, word [eax + 6]
add esp, 0xc
cmp word [ebx + 6], ax
jle 0x4873f5
mov word [ebx + 6], ax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x38]
push ecx
call fcn.00465290
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov dword [ebx + 0x3c], eax
add esp, 4
mov eax, esi
mov dword [ebx + 0x38], edx
call fcn.00451f90
mov dword [esp + 0x18], eax
mov eax, esi
call fcn.00451f90
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x34], eax
push ebx
mov eax, edi
call fcn.00486a40
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push 0
push edx
push eax
push 0x25
push esi
call fcn.00451be0
add esp, 0x1c
mov eax, edi
call fcn.0046af40
mov ecx, dword [esp + 0x20]
push 0
push eax
push ecx
push 0x7a
push esi
mov dword [esp + 0x4c], eax
call fcn.00451be0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add esp, 0x14
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
push 0
push 0x1d
call fcn.00451f30
mov esi, dword [esp + 0x40]
mov eax, edi
call fcn.0046af60
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
push edx
mov edx, dword [ebx]
push eax
lea ecx, [esp + 0x50]
push ecx
push 0
push 0
push esi
push edx
push ebx
push edi
call fcn.00484df0
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x3c]
add esp, 0x2c
call fcn.00451fe0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
push 0
push eax
push esi
push 7
push ecx
call fcn.00451be0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add esp, 0x14
call fcn.00451fe0
mov edx, dword [esp + 0x10]
push 0
push 0
lea eax, [esi + 1]
push eax
push 0x70
push edx
call fcn.00451be0
mov eax, dword [esp + 0x24]
add esp, 0x14
push 0
push 0
push esi
push 0x70
push eax
call fcn.00451be0
mov esi, dword [esp + 0x24]
jmp 0x487822
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 0xc]
mov dword [ecx + 0xc], edx
mov eax, dword [ebx + 0x10]
mov dword [ecx + 0x10], eax
mov edx, dword [ebx + 0x38]
mov dword [ecx + 0x38], edx
mov eax, dword [ebx + 0x3c]
mov dword [ecx + 0x3c], eax
mov edx, dword [edi + 0x1a0]
lea eax, [esp + 0x40]
push eax
push ecx
push edi
mov dword [esp + 0x34], edx
call fcn.0048b590
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], ecx
cmp eax, ecx
jne 0x48797f
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x30], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebx + 0xc], ecx
mov edx, dword [eax + 0x10]
mov eax, ecx
mov dword [ebx + 0x10], edx
test eax, eax
je 0x4875a8
push 0
push 0
push eax
push 0x16
push esi
call fcn.00451be0
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x10]
add esp, 0x14
test eax, eax
je 0x4875a8
push eax
inc eax
push eax
mov eax, dword [ebx + 0xc]
push eax
push 0x93
push esi
call fcn.00451be0
add esp, 0x14
mov ecx, dword [edi + 0x1a0]
lea edx, [esp + 0x40]
push edx
push ebx
push edi
mov dword [esp + 0x30], ecx
call fcn.0048b590
mov cx, word [ebx + 6]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x30], eax
mov ax, word [eax + 6]
add esp, 0xc
call fcn.00437c00
mov ecx, dword [esp + 0x18]
mov word [esp + 0x10], ax
mov word [ebx + 6], ax
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x487624
lea edx, [esp + 0x3c]
push edx
push eax
call fcn.004662e0
add esp, 8
test eax, eax
je 0x487624
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x487624
cdq
push edx
push eax
call fcn.00437c50
add esp, 8
cmp word [esp + 0x10], ax
jle 0x487624
mov word [ebx + 6], ax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x487825
mov edx, esi
call fcn.00452310
jmp 0x487825
cmp byte [esp + 0x40], 1
jne 0x48764d
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
jmp 0x487687
mov eax, dword [edi + 0x28]
push edx
push edx
push eax
lea ecx, [eax + 1]
push 0x6c
push esi
mov dword [esp + 0x24], eax
mov dword [edi + 0x28], ecx
call fcn.00451be0
mov dword [ebx + 0x14], eax
mov ecx, dword [ebx + 0x34]
add esp, 0x14
mov eax, ebx
test ecx, ecx
je 0x48767d
mov eax, ecx
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x487674
or dword [eax + 8], 0x20
mov ecx, dword [esp + 0x18]
xor edx, edx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], edx
mov edx, dword [edi + 0x1a0]
push ecx
push edi
mov byte [esp + 0x7c], 1
mov dword [esp + 0x34], edx
call fcn.0048b590
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x48797f
cmp byte [ebx + 4], 0x75
mov edx, dword [ebx + 0x38]
sete al
xor ecx, ecx
mov dword [esp + 0x3c], edx
mov edx, dword [ebx + 0x3c]
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], ecx
lea ecx, [esp + 0x70]
inc al
push ecx
mov byte [esp + 0x74], al
mov eax, dword [edi + 0x1a0]
push ebx
push edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x30], eax
call fcn.0048b590
mov edx, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x2c]
push edx
call fcn.00465ff0
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
add esp, 4
cmp byte [ebx + 4], 0x73
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x2c], 0
jne 0x48774a
mov ax, word [eax + 6]
mov cx, word [ebx + 6]
call fcn.00437c00
mov word [ebx + 6], ax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x38]
push ecx
call fcn.00465290
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [ebx + 0x3c], eax
xor eax, eax
add esp, 4
cmp byte [esp + 0x40], 1
mov dword [ebx + 0x38], edx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
je 0x487825
mov eax, esi
call fcn.00451f90
mov dword [esp + 0x20], eax
mov eax, esi
call fcn.00451f90
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x3c], eax
push ebx
mov eax, edi
call fcn.00486a40
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
push 0
push edx
push eax
push 0x25
push esi
call fcn.00451be0
mov ecx, dword [esi + 0x88]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x54]
add esp, 0x1c
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ebx]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x48]
push ecx
push 0
push 0
push edx
push eax
push ebx
push edi
call fcn.00484df0
mov edx, dword [esp + 0x5c]
add esp, 0x24
mov ecx, esi
call fcn.00451fe0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
push 0
push ecx
push edx
push 7
push esi
call fcn.00451be0
mov edx, dword [esp + 0x34]
add esp, 0x14
mov ecx, esi
call fcn.00451fe0
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
push 0x70
push esi
call fcn.00451be0
add esp, 0x14
mov al, byte [ebx + 4]
mov edx, dword [esp + 0x24]
xor ecx, ecx
cmp al, 0x74
setne cl
movzx eax, al
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push ecx
mov ecx, edi
call fcn.00485990
add esp, 0xc
test byte [ebx + 8], 0x20
je 0x48797f
mov edx, dword [ebx]
mov eax, dword [edx]
mov edi, dword [esp + 0x1c]
push 1
push eax
mov dword [esp + 0x38], eax
call fcn.00485790
mov edi, eax
add esp, 8
test edi, edi
jne 0x48787b
mov dword [esp + 0x14], 7
jmp 0x48797f
cmp dword [esp + 0x30], 0
lea eax, [edi + 0x14]
mov dword [esp + 0x18], 0
mov dword [esp + 0x38], eax
jle 0x4878cc
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 8]
push ecx
push ebx
push edx
call fcn.00486b80
mov ecx, dword [esp + 0x44]
add esp, 0xc
mov dword [ecx], eax
test eax, eax
jne 0x4878b6
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov eax, dword [esp + 0x18]
inc eax
add ecx, 4
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], ecx
jl 0x487891
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x18], 0
add ebx, 0x14
mov eax, dword [ebx]
test eax, eax
jl 0x48795d
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
je 0x4878f4
mov ecx, 0x672248
jmp 0x4878fd
mov ecx, dword [esi + 0x58]
lea edx, [eax + eax*4]
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x30]
mov dword [ecx + 8], edx
inc dword [edi]
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
je 0x48791c
mov eax, edi
mov edx, 0xfffffff7
call fcn.004524d0
jmp 0x487946
mov ecx, dword [esi + 0x58]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea eax, [ecx + eax*4]
je 0x48793f
push edi
push eax
mov eax, 0xfffffff7
mov ecx, esi
call fcn.00452630
add esp, 8
jmp 0x487946
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x18]
inc eax
mov dword [ebx], 0xffffffff
add ebx, 4
cmp eax, 2
mov dword [esp + 0x18], eax
jl 0x4878df
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x30]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4878d0
add dword [edi], 0xffffffff
jne 0x48797f
mov ecx, dword [edi + 0xc]
mov eax, edi
call fcn.00433e40
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4879a8
push 1
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00483fc0
add esp, 0xc
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret