Function at 0x474210
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 [ecx]
push esi
mov dword [esp + 0x1c], eax
mov esi, edx
mov eax, dword [ebp + 8]
push edi
mov dword [esp + 0x38], esi
mov edx, dword [esi + 0x34]
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 + 0xc], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], edx
je 0x4742b6
movzx eax, byte [esi + 4]
sub eax, 0x74
je 0x474295
sub eax, 1
je 0x47428e
sub eax, 1
je 0x474287
mov eax, str.UNION
jmp 0x47429a
mov eax, str.INTERSECT
jmp 0x47429a
mov eax, str.EXCEPT
jmp 0x47429a
mov eax, str.UNION_ALL
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
push ecx
call fcn.00422020
add esp, 0xc
mov dword [esp + 0x14], 1
jmp 0x474b35
cmp dword [edx + 0x3c], 0
je 0x474303
movzx eax, byte [esi + 4]
sub eax, 0x74
je 0x4742f6
sub eax, 1
je 0x4742e9
sub eax, 1
je 0x4742dc
mov eax, str.UNION
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4742a0
mov eax, str.INTERSECT
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4742a0
mov eax, str.EXCEPT
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4742a0
mov eax, str.UNION_ALL
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4742a0
call fcn.00473800
mov cl, byte [esp + 0x40]
mov edi, eax
mov dword [esp + 0x10], edi
cmp cl, 0xc
jne 0x474346
mov eax, dword [esi]
mov edx, 0x39
mov ecx, edi
push dword [eax]
push dword [esp + 0x48]
call fcn.0043c960
mov ecx, dword [edi + 4]
add esp, 8
test ecx, ecx
je 0x474340
mov eax, dword [edi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 8
mov cl, 0xe
mov byte [esp + 0x40], cl
movzx eax, word [esi + 6]
test eax, 0x200
je 0x4743b3
mov eax, dword [esi + 0x34]
mov ecx, 1
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x474370
mov esi, eax
inc ecx
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x474361
mov dword [esp + 0x2c], ecx
nop
mov edi, dword [esi + 0x34]
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0xc]
mov edx, esi
push eax
mov dword [esi + 0x34], 0
call fcn.00478040
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esi + 0x34], edi
test eax, eax
jne 0x474b35
mov eax, dword [esp + 0x2c]
cdq
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov esi, dword [esi + 0x38]
test esi, esi
jne 0x474370
jmp 0x474b35
test eax, 0x2000
je 0x4743d2
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x40]
push eax
mov edx, esi
call fcn.00473bb0
add esp, 4
jmp 0x47498b
cmp dword [esi + 0x30], 0
je 0x4743f0
mov ecx, dword [ebp + 8]
mov edx, esi
push ecx
mov ecx, dword [esp + 0x10]
call fcn.00475050
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 4]
sub eax, 0x73
je 0x474771
sub eax, 1
je 0x474655
sub eax, 1
je 0x474771
mov ecx, dword [esp + 0xc]
push 0
mov edx, dword [ecx + 0x44]
mov dword [esp + 0x20], edx
push edx
lea eax, [edx + 1]
mov edx, 0x39
mov dword [esp + 0x2c], eax
inc eax
mov dword [ecx + 0x44], eax
mov ecx, edi
call fcn.0043c960
mov ecx, esi
mov dword [esi + 0x10], eax
call fcn.00470980
mov edx, dword [esp + 0x20]
or word [eax + 6], 0x10
mov eax, dword [esp + 0x24]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x14]
mov word [esp + 0x70], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov ecx, dword [eax + 0x1d0]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x70]
push ecx
mov ecx, eax
call fcn.00478040
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x474b35
push eax
push dword [esp + 0x28]
lea edx, [eax + 0x39]
mov ecx, edi
call fcn.0043c960
mov dword [esi + 0x14], eax
mov edx, esi
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov ecx, dword [eax + 0x1d0]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x70]
push ecx
mov ecx, eax
call fcn.00478040
mov dword [esp + 0x20], eax
add esp, 0xc
mov eax, dword [esi + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x34], eax
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
cmp dword [esi + 0x1c], eax
jb 0x474515
ja 0x47450f
cmp dword [esi + 0x18], ecx
jbe 0x474515
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x20]
call fcn.004503d0
cmp byte [esp + 0x40], 9
mov eax, dword [esp + 0x34]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x40], eax
jne 0x474559
mov eax, dword [esi + 0x34]
mov ecx, esi
test eax, eax
je 0x474549
nop
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x474540
push dword [ecx]
mov ecx, dword [esp + 0x10]
xor edx, edx
call fcn.00472f70
add esp, 4
mov ecx, edi
call fcn.0043cbe0
mov ecx, dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0x34], edi
call fcn.0043cbe0
mov ecx, dword [esp + 0xc]
mov edx, esi
push edi
mov dword [esp + 0x1c], eax
call fcn.00473850
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, 0x6d
push edi
push dword [esp + 0x20]
call fcn.0043c960
mov ecx, dword [esp + 0x14]
call fcn.004554b0
mov ecx, dword [esp + 0x18]
mov edi, eax
push edi
push dword [esp + 0x28]
mov edx, 0x66
call fcn.0043c960
mov ecx, dword [esp + 0x20]
mov edx, 0x45
push 0
push edi
push dword [esp + 0x30]
mov dword [esp + 0x58], eax
push dword [esp + 0x40]
call fcn.0043cb30
mov ecx, dword [esp + 0x2c]
mov edx, edi
call fcn.004554d0
push dword [esp + 0x54]
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x30]
mov edx, esi
push edi
push eax
push 0
push 0
push dword [esp + 0x50]
push dword [esi]
call fcn.00471720
add esp, 0x3c
mov edx, edi
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.0043cc30
push dword [esp + 0x3c]
mov edx, 8
push dword [esp + 0x20]
call fcn.0043c960
mov edx, dword [esp + 0x3c]
mov ecx, edi
call fcn.0043cc30
push 0
push dword [esp + 0x30]
mov edx, 0x3d
call fcn.0043c960
push 0
push dword [esp + 0x30]
mov edx, 0x3d
mov ecx, edi
call fcn.0043c960
add esp, 0x18
jmp 0x47498b
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x3c]
mov dword [ecx + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [ecx + 0x40], eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x1d0]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x40]
push edx
mov edx, ecx
mov ecx, eax
call fcn.00478040
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
test eax, eax
jne 0x474b35
mov edx, dword [esp + 0x18]
mov dword [esi + 0x34], eax
mov ecx, dword [edx + 8]
mov dword [esi + 8], ecx
mov eax, dword [edx + 0xc]
mov dword [esi + 0xc], eax
test ecx, ecx
je 0x4746db
push ecx
mov edx, 0x2e
mov ecx, edi
call fcn.0043c8f0
add esp, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc]
mov edx, esi
mov ecx, dword [eax + 0x1d0]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.00478040
mov dword [esp + 0x18], eax
add esp, 4
mov eax, dword [esi + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x34], eax
mov ecx, dword [eax + 0x18]
add ecx, dword [esi + 0x18]
mov edx, dword [eax + 0x1c]
adc edx, dword [esi + 0x1c]
mov dword [esp + 0x1c], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x474757
lea edx, [esp + 0x3c]
call fcn.004513f0
test eax, eax
je 0x474757
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x474757
cdq
cmp dword [esp + 0x24], edx
jb 0x474757
ja 0x474751
cmp dword [esp + 0x1c], eax
jbe 0x474757
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x47498b
mov edx, eax
mov ecx, edi
call fcn.0043cea0
jmp 0x47498b
cmp cl, 1
jne 0x474780
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
jmp 0x4747b6
mov ecx, dword [esp + 0xc]
push 0
mov edx, dword [ecx + 0x44]
mov dword [esp + 0x20], edx
push edx
lea eax, [edx + 1]
mov edx, 0x39
mov dword [ecx + 0x44], eax
mov ecx, edi
call fcn.0043c960
add esp, 8
mov dword [esi + 0x10], eax
mov ecx, esi
call fcn.00470980
or word [eax + 6], 0x10
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xc]
mov word [esp + 0x7c], 1
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov ecx, dword [eax + 0x1d0]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x7c]
push ecx
mov ecx, eax
call fcn.00478040
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x474b35
cmp byte [esi + 4], 0x75
mov edx, esi
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x34], eax
sete al
inc al
mov dword [esi + 0x3c], 0
mov byte [esp + 0x7c], al
mov eax, dword [esp + 0xc]
mov dword [esi + 0x40], 0
mov ecx, dword [eax + 0x1d0]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x7c]
push ecx
mov ecx, eax
call fcn.00478040
mov edx, dword [esi + 0x30]
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
call fcn.00451100
cmp byte [esi + 4], 0x73
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], 0
jne 0x474889
mov eax, dword [ecx + 0x18]
add dword [esi + 0x18], eax
mov eax, dword [ecx + 0x1c]
adc dword [esi + 0x1c], eax
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x20]
call fcn.004503d0
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x40], eax
mov al, byte [esp + 0x40]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
cmp al, 1
je 0x47498b
cmp al, 9
jne 0x4748e9
mov eax, dword [esi + 0x34]
mov ecx, esi
test eax, eax
je 0x4748d9
nop word [eax + eax]
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x4748d0
push dword [ecx]
mov ecx, dword [esp + 0x10]
xor edx, edx
call fcn.00472f70
add esp, 4
mov ecx, edi
call fcn.0043cbe0
mov ecx, dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0x24], edi
call fcn.0043cbe0
mov ecx, dword [esp + 0xc]
mov edx, esi
push edi
mov dword [esp + 0x38], eax
call fcn.00473850
add esp, 4
mov edx, 0x6d
push edi
push dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.0043c960
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x4c]
push dword [esp + 0x40]
mov edi, dword [edi + 0x20]
mov edx, esi
push eax
push 0
push 0
push dword [esp + 0x38]
push dword [esi]
call fcn.00471720
mov edx, dword [esp + 0x58]
add esp, 0x24
mov ecx, dword [esp + 0x10]
call fcn.0043cc30
push edi
push dword [esp + 0x20]
mov edx, 8
mov edi, ecx
call fcn.0043c960
mov edx, dword [esp + 0x2c]
mov ecx, edi
call fcn.0043cc30
push 0
push dword [esp + 0x28]
mov edx, 0x3d
call fcn.0043c960
add esp, 0x10
movzx edx, byte [esi + 4]
xor eax, eax
cmp byte [esi + 4], 0x74
mov ecx, dword [esp + 0xc]
setne al
push eax
push dword [esp + 0x2c]
push dword [esp + 0x34]
call fcn.004724b0
add esp, 0xc
test byte [esi + 6], 0x10
je 0x474b35
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
push 1
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x20], eax
call fcn.00472300
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4749e4
mov dword [esp + 0x14], 7
jmp 0x474b35
xor ecx, ecx
lea edx, [eax + 0x14]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x1c], ecx
jle 0x474a80
mov edi, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
mov eax, dword [esi + 0x34]
test eax, eax
je 0x474a25
push ecx
mov edx, eax
mov ecx, edi
call fcn.004739f0
mov ecx, dword [esp + 0x30]
add esp, 4
mov edx, dword [esp + 0x28]
test eax, eax
jne 0x474a4c
jmp 0x474a27
xor eax, eax
mov edi, dword [esi]
cmp ecx, dword [edi]
mov edi, dword [esp + 0xc]
jge 0x474a4c
mov eax, dword [esi]
mov ecx, edi
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x24]
mov edx, dword [edx + eax]
call fcn.0044f6d0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [edx], eax
test eax, eax
jne 0x474a5b
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 8]
mov dword [edx], eax
add dword [esp + 0x24], 0x18
inc ecx
add edx, 4
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
cmp ecx, dword [esp + 0x1c]
jl 0x474a03
mov edi, dword [esp + 0x10]
nop word [eax + eax]
lea eax, [esi + 0x10]
mov dword [esp + 0x34], 0
mov esi, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov edx, dword [eax]
test edx, edx
js 0x474b10
cmp dword [edi + 0x20], edx
jbe 0x474ab0
mov eax, dword [edi + 4]
lea ecx, [edx + edx*4]
mov esi, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x18]
inc dword [esi]
cmp dword [edi + 4], 0
mov ecx, dword [edi]
je 0x474ae3
cmp byte [ecx + 0x41], 0
jne 0x474ae3
lea eax, [edx + edx*4]
mov edx, dword [edi + 4]
push dword [edx + eax*4 + 0x10]
lea edi, [edx + eax*4]
movsx edx, byte [edi + 1]
call fcn.0043cec0
mov dword [edi + 0x10], esi
mov byte [edi + 1], 0xfa
mov edi, dword [esp + 0x14]
jmp 0x474aee
push esi
mov edx, 0xfffffffa
call fcn.0043cec0
mov eax, dword [esp + 0x30]
add esp, 4
mov ecx, dword [esp + 0x34]
inc ecx
mov dword [esp + 0x34], ecx
mov dword [eax], 0xffffffff
add eax, 4
mov dword [esp + 0x2c], eax
cmp ecx, 2
jl 0x474a93
mov esi, dword [esp + 0x38]
mov esi, dword [esi + 0x34]
mov dword [esp + 0x38], esi
test esi, esi
jne 0x474a80
mov eax, dword [esp + 0x18]
add dword [eax], 0xffffffff
jne 0x474b35
push eax
call fcn.0041f3a0
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x30]
push 1
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x24]
call fcn.004706c0
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret