Function at 0x4c6510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52bdfe
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x566148]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x566148]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], esi
cmp eax, edi
jne 0x4c65d2
push 0xa
push str.pix::error
lea ecx, [esp + 0x58]
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], edi
mov byte [esp + 0x58], 0
call fcn.00407b20
mov dword [esp + 0x98], edi
cmp dword [esp + 0x64], 0x10
jb 0x4c65a5
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], ecx
jmp 0x4c65ad
lea edx, [esp + 0x50]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
call fcn.004e8fea
push 0x555c44
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], vtable.pix::error.0
call fcn.004ecd9a
mov dword [ecx], edi
mov dword [edx], edi
lea ecx, [esp + 0x18]
mov dword [esi], edi
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push ecx
push eax
mov dword [esp + 0x20], edi
call edx
mov esi, eax
cmp esi, edi
jge 0x4c6620
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], str.pix::com_error
call fcn.004e8fea
push 0x555c80
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], vtable.pix::com_error.0
mov dword [esp + 0x48], esi
call fcn.004ecd9a
mov eax, dword [esp + 0x18]
cmp eax, edi
jne 0x4c6692
push 0xa
push str.pix::error
lea ecx, [esp + 0x58]
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], edi
mov byte [esp + 0x58], 0
call fcn.00407b20
mov dword [esp + 0x98], 1
cmp dword [esp + 0x64], 0x10
jb 0x4c6665
mov edx, dword [esp + 0x50]
mov dword [esp + 0x10], edx
jmp 0x4c666d
lea eax, [esp + 0x50]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x38]
call fcn.004e8fea
push 0x555c44
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], vtable.pix::error.0
call fcn.004ecd9a
mov byte [esp + 0x17], 1
jmp 0x4c66a4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], edi
lea edx, [esp + 0x10]
mov dword [esp + 0x98], 2
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x38]
call eax
mov esi, eax
cmp esi, edi
jl 0x4c67c0
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push ecx
call esi
test eax, eax
je 0x4c66ee
mov edx, dword [esp + 0x10]
push edx
call esi
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x18]
cmp eax, edi
jne 0x4c66fd
xor esi, esi
jmp 0x4c670e
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
cmp esi, edi
je 0x4c67f1
mov edx, dword [esp + 0x10]
push edi
push 0x400
push esi
push edx
call dword [sym.imp.OLEAUT32.dll_VarR8Pow]
cmp eax, 1
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
sete bl
call esi
test bl, bl
jne 0x4c675a
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4c6756
mov dword [esp + 0x18], eax
jmp 0x4c675f
mov dword [esp + 0x18], edi
mov byte [esp + 0x17], 0
mov dword [esp + 0x98], 0xffffffff
mov ecx, dword [esp + 0x10]
push ecx
call esi
cmp byte [esp + 0x17], 0
jne 0x4c66a0
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4c690c
mov dword [esp + 0x10], edi
lea edx, [esp + 0x10]
mov esi, 3
mov dword [esp + 0x98], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
cmp eax, edi
jge 0x4c67fb
push eax
lea esi, [esp + 0x28]
call fcn.0045e060
push 0x555c80
mov ecx, esi
push ecx
call fcn.004ecd9a
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], str.pix::com_error
call fcn.004e8fea
push 0x555c80
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], vtable.pix::com_error.0
mov dword [esp + 0x38], esi
call fcn.004ecd9a
push 0x8007000e
call fcn.00406220
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4c6905
push eax
lea ecx, [esp + 0x70]
call fcn.00404eb0
mov byte [esp + 0x98], 4
cmp dword [esp + 0x7c], esi
jbe 0x4c68f8
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
jae 0x4c6835
lea eax, [esp + 0x6c]
cmp word [eax], 0x54
jne 0x4c68f8
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
push 1
sub esp, 0x14
mov bl, 5
mov byte [esp + 0xb0], bl
mov edx, 0x549220
mov eax, esp
mov dword [esp + 0x38], esp
call fcn.00401530
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00401570
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0x20
cmp eax, 2
jne 0x4c68ef
push 0xffffffffffffffff
push 1
lea edx, [esp + 0x58]
push edx
call fcn.0041b0d0
mov ecx, eax
mov byte [esp + 0x98], 6
call fcn.0040b940
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x98], bl
call fcn.004e77b0
mov ecx, dword [esp + 0x24]
add ecx, 0x1c
call fcn.0040b940
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov dword [edx], eax
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
lea esi, [esp + 0x24]
call fcn.00401110
lea ecx, [esp + 0x6c]
call fcn.004e77b0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004e8965
mov esp, ebp
pop ebp
ret 0xc