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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x30]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
mov dword [esp + 0x38], ebx
mov ebx, dword [eax + 4]
mov dword [esp + 0x3c], ebx
mov ebx, dword [eax + 8]
mov dword [esp + 0x40], ebx
mov ebx, dword [eax + 0xc]
xor edx, edx
mov dword [esp + 0x44], ebx
mov ebx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
cmp dword [ecx + 0x2c], edx
je 0x4c68c7
movzx eax, byte [esi + 4]
sub eax, 0x74
je 0x4c68a6
dec eax
je 0x4c689f
dec eax
je 0x4c6898
mov eax, str.UNION
jmp 0x4c68ab
mov eax, str.INTERSECT
jmp 0x4c68ab
mov eax, str.EXCEPT
jmp 0x4c68ab
mov eax, str.UNION_ALL
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
push edi
call fcn.00472420
add esp, 0xc
mov dword [esp + 0x14], 1
jmp 0x4c703c
cmp dword [ecx + 0x38], edx
je 0x4c690f
movzx eax, byte [esi + 4]
sub eax, 0x74
je 0x4c6902
dec eax
je 0x4c68f5
dec eax
je 0x4c68e8
mov eax, str.UNION
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4c68b1
mov eax, str.INTERSECT
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4c68b1
mov eax, str.EXCEPT
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4c68b1
mov eax, str.UNION_ALL
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4c68b1
mov ebx, dword [edi + 8]
cmp ebx, edx
jne 0x4c691f
mov ebx, edi
call fcn.004c5e20
mov ebx, eax
mov cl, byte [esp + 0x38]
cmp cl, 0xc
jne 0x4c6945
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [esp + 0x3c]
push 0
push edx
push eax
push 0x6c
push ebx
call fcn.0048e3e0
mov cl, 0xe
add esp, 0x14
mov byte [esp + 0x38], cl
mov eax, dword [esi + 8]
test eax, 0x400
je 0x4c6968
lea ecx, [esp + 0x38]
push ecx
push edi
mov eax, esi
call fcn.004c67c0
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x4c703c
test eax, 0x2000
je 0x4c6983
lea edx, [esp + 0x38]
push edx
push esi
push edi
call fcn.004c6140
add esp, 0xc
jmp 0x4c6edf
cmp dword [esi + 0x2c], 0
je 0x4c699e
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.004c74e0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 4]
sub eax, 0x73
je 0x4c6cf0
dec eax
je 0x4c6bbf
dec eax
je 0x4c6cf0
mov eax, dword [edi + 0x28]
push 0
push 0
push eax
lea ecx, [eax + 2]
push 0x6c
push ebx
mov dword [esp + 0x24], eax
mov dword [edi + 0x28], ecx
call fcn.0048e3e0
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0x34]
add esp, 0x14
mov eax, esi
test ecx, ecx
je 0x4c69eb
mov eax, ecx
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x4c69e2
or dword [eax + 8], 0x20
mov edx, dword [esp + 0x10]
xor eax, eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0x1a0]
push edx
push edi
mov byte [esp + 0x5c], 1
mov dword [esp + 0x30], eax
call fcn.004cb030
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4c703c
push eax
push eax
mov eax, dword [esp + 0x18]
inc eax
push eax
push 0x6c
push ebx
call fcn.0048e3e0
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x24]
add esp, 0x14
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x50]
inc eax
push ecx
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x1a0]
push esi
push edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], eax
call fcn.004cb030
mov edx, dword [esi + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x30], eax
movzx eax, word [eax + 6]
add esp, 0xc
mov dword [esp + 0x28], edx
cmp word [esi + 6], ax
jle 0x4c6aa4
mov word [esi + 6], ax
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4c6ab9
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.004a1f00
add esp, 8
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, ebx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
call fcn.0048e7d0
mov dword [esp + 0x18], eax
mov eax, ebx
call fcn.0048e7d0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
push eax
push esi
mov eax, edi
call fcn.004c5eb0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
push 0x25
push ebx
call fcn.0048e3e0
add esp, 0x1c
mov ecx, edi
call fcn.004a85e0
mov esi, eax
mov eax, dword [esp + 0x10]
push 0
push esi
push eax
push 0x7a
push ebx
mov dword [esp + 0x44], esi
call fcn.0048e3e0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
add esp, 0x14
mov dword [esp + 0x34], eax
push 0
mov eax, esi
push 0x1d
inc edx
mov esi, ebx
call fcn.0048e770
mov esi, dword [esp + 0x38]
mov eax, edi
call fcn.004a8600
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push 0
push 0
push esi
push ecx
push eax
push edi
call fcn.004c3f20
mov edx, dword [esp + 0x58]
add esp, 0x2c
mov ecx, ebx
call fcn.0048e830
mov edx, dword [esp + 0x34]
push 0
push edx
push esi
push 7
push ebx
call fcn.0048e3e0
mov edx, dword [esp + 0x2c]
add esp, 0x14
mov ecx, ebx
call fcn.0048e830
push 0
push 0
lea eax, [esi + 1]
push eax
push 0x70
push ebx
call fcn.0048e3e0
add esp, 0x14
push 0
push 0
push esi
push 0x70
push ebx
call fcn.0048e3e0
mov esi, dword [ebp + 0xc]
jmp 0x4c6edc
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov edx, dword [esi + 0x10]
mov dword [eax + 0x10], edx
mov ecx, dword [esi + 0x38]
mov dword [eax + 0x38], ecx
mov edx, dword [esi + 0x3c]
mov dword [eax + 0x3c], edx
mov ecx, dword [edi + 0x1a0]
lea edx, [esp + 0x38]
push edx
push eax
push edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], ecx
call fcn.004cb030
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ecx
cmp eax, ecx
jne 0x4c703c
mov eax, dword [esp + 0x18]
mov dword [esi + 0x30], ecx
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 0x10]
mov eax, ecx
mov dword [esi + 0x10], edx
test eax, eax
je 0x4c6c59
push 0
push 0
push eax
push 0x16
push ebx
call fcn.0048e3e0
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x10]
add esp, 0x14
test eax, eax
je 0x4c6c59
push eax
inc eax
push eax
mov eax, dword [esi + 0xc]
push eax
push 0x93
push ebx
call fcn.0048e3e0
add esp, 0x14
mov ecx, dword [edi + 0x1a0]
lea edx, [esp + 0x38]
push edx
push esi
push edi
mov dword [esp + 0x2c], ecx
call fcn.004cb030
mov cx, word [esi + 6]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x30], eax
mov ax, word [eax + 6]
add esp, 0xc
call fcn.00473690
mov ecx, dword [esp + 0x18]
mov word [esp + 0x10], ax
mov word [esi + 6], ax
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x4c6cd5
lea edx, [esp + 0x34]
push edx
push eax
call fcn.004a3370
add esp, 8
test eax, eax
je 0x4c6cd5
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x4c6cd5
cdq
push edx
push eax
call fcn.004736e0
add esp, 8
cmp word [esp + 0x10], ax
jle 0x4c6cd5
mov word [esi + 6], ax
cmp dword [esp + 0x2c], 0
je 0x4c6edf
mov eax, dword [esp + 0x2c]
mov edx, ebx
call fcn.0048eb50
jmp 0x4c6edf
cmp cl, 1
jne 0x4c6cff
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
jmp 0x4c6d35
mov eax, dword [edi + 0x28]
push 0
push 0
push eax
lea ecx, [eax + 1]
push 0x6c
push ebx
mov dword [esp + 0x24], eax
mov dword [edi + 0x28], ecx
call fcn.0048e3e0
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0x34]
add esp, 0x14
mov eax, esi
test ecx, ecx
je 0x4c6d31
mov eax, ecx
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x4c6d28
or dword [eax + 8], 0x20
mov edx, dword [esp + 0x10]
xor eax, eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0x1a0]
push edx
push edi
mov byte [esp + 0x74], 1
mov dword [esp + 0x30], eax
call fcn.004cb030
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4c703c
cmp byte [esi + 4], 0x75
mov edx, dword [esi + 0x38]
sete al
xor ecx, ecx
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0x3c]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ecx
lea ecx, [esp + 0x68]
inc al
push ecx
mov byte [esp + 0x6c], al
mov eax, dword [edi + 0x1a0]
push esi
push edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], eax
call fcn.004cb030
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x2c]
add esp, 0xc
test eax, eax
je 0x4c6dd1
mov edx, dword [esp + 0x1c]
push eax
push edx
call fcn.004a2f20
add esp, 8
cmp byte [esi + 4], 0x73
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esi + 0x30], ecx
mov dword [esi + 0x2c], 0
jne 0x4c6dff
mov edx, ecx
mov ax, word [edx + 6]
mov cx, word [esi + 6]
call fcn.00473690
mov word [esi + 6], ax
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4c6e14
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.004a1f00
add esp, 8
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
xor eax, eax
cmp byte [esp + 0x38], 1
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
je 0x4c6edf
mov eax, ebx
call fcn.0048e7d0
mov dword [esp + 0x18], eax
mov eax, ebx
call fcn.0048e7d0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
push eax
push esi
mov eax, edi
call fcn.004c5eb0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
push 0x25
push ebx
call fcn.0048e3e0
mov eax, dword [ebx + 0x88]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x48]
add esp, 0x1c
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esi]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
push esi
push edi
call fcn.004c3f20
mov edx, dword [esp + 0x50]
add esp, 0x24
mov ecx, ebx
call fcn.0048e830
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
push 0
push eax
push ecx
push 7
push ebx
call fcn.0048e3e0
mov edx, dword [esp + 0x2c]
add esp, 0x14
mov ecx, ebx
call fcn.0048e830
mov edx, dword [esp + 0x10]
push 0
push 0
push edx
push 0x70
push ebx
call fcn.0048e3e0
add esp, 0x14
mov al, byte [esi + 4]
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp al, 0x74
setne cl
movzx eax, al
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ecx
mov ecx, edi
call fcn.004c4c20
add esp, 0xc
test byte [esi + 8], 0x20
je 0x4c703c
mov edx, dword [esi]
mov eax, dword [edx]
mov edi, dword [esp + 0x1c]
push 1
push eax
mov dword [esp + 0x34], eax
call fcn.004c4a40
mov edi, eax
add esp, 8
test edi, edi
jne 0x4c6f35
mov dword [esp + 0x14], 7
jmp 0x4c703c
cmp dword [esp + 0x2c], 0
lea eax, [edi + 0x14]
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], eax
jle 0x4c6f89
jmp 0x4c6f50
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 8]
push ecx
push esi
push edx
call fcn.004c5ff0
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov dword [ecx], eax
test eax, eax
jne 0x4c6f75
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
add dword [esp + 0x24], 4
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x2c]
jl 0x4c6f50
mov dword [esp + 0x24], esi
lea ecx, [ecx]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], 0
add esi, 0x14
mov eax, dword [esi]
test eax, eax
js 0x4c701b
mov edx, dword [ebx]
cmp byte [edx + 0x45], 0
je 0x4c6fb4
mov ecx, 0x573b6c
jmp 0x4c6fbd
mov edx, dword [ebx + 0x58]
lea ecx, [eax + eax*4]
lea ecx, [edx + ecx*4]
mov edx, dword [esp + 0x2c]
mov dword [ecx + 8], edx
inc dword [edi]
mov ecx, dword [ebx]
cmp byte [ecx + 0x45], 0
je 0x4c6fdc
mov eax, edi
mov edx, 0xfffffff7
call fcn.0048ed10
jmp 0x4c7004
mov ecx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea ecx, [ecx + eax*4]
je 0x4c6ffd
push edi
push ebx
mov eax, 0xfffffff7
call fcn.0048ee80
add esp, 8
jmp 0x4c7004
mov dword [ecx + 0x10], edi
mov byte [ecx + 1], 0xf7
mov eax, dword [esp + 0x18]
inc eax
mov dword [esi], 0xffffffff
add esi, 4
mov dword [esp + 0x18], eax
cmp eax, 2
jl 0x4c6f9f
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x30]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4c6f90
dec dword [edi]
jne 0x4c703c
mov ecx, dword [edi + 0xc]
mov eax, edi
call fcn.0046f890
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4c7065
push 1
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.004c2ff0
add esp, 0xc
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret