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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5188de
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x54d028]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x54d028]
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 0x4b4952
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.00407ad0
mov dword [esp + 0x98], edi
cmp dword [esp + 0x64], 0x10
jb 0x4b4925
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], ecx
jmp 0x4b492d
lea edx, [esp + 0x50]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
call fcn.004d696a
push 0x53f104
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], vtable.pix::error.0
call fcn.004da48a
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 0x4b49a0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], str.pix::com_error
call fcn.004d696a
push 0x53f140
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], vtable.pix::com_error.0
mov dword [esp + 0x48], esi
call fcn.004da48a
mov eax, dword [esp + 0x18]
cmp eax, edi
jne 0x4b4a12
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.00407ad0
mov dword [esp + 0x98], 1
cmp dword [esp + 0x64], 0x10
jb 0x4b49e5
mov edx, dword [esp + 0x50]
mov dword [esp + 0x10], edx
jmp 0x4b49ed
lea eax, [esp + 0x50]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x38]
call fcn.004d696a
push 0x53f104
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], vtable.pix::error.0
call fcn.004da48a
mov byte [esp + 0x17], 1
jmp 0x4b4a24
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 0x4b4b40
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push ecx
call esi
test eax, eax
je 0x4b4a6e
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 0x4b4a7d
xor esi, esi
jmp 0x4b4a8e
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
cmp esi, edi
je 0x4b4b71
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 0x4b4ada
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 0x4b4ad6
mov dword [esp + 0x18], eax
jmp 0x4b4adf
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 0x4b4a20
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4b4c8c
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 0x4b4b7b
push eax
lea esi, [esp + 0x28]
call fcn.0044b2a0
push 0x53f140
mov ecx, esi
push ecx
call fcn.004da48a
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], str.pix::com_error
call fcn.004d696a
push 0x53f140
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], vtable.pix::com_error.0
mov dword [esp + 0x38], esi
call fcn.004da48a
push 0x8007000e
call fcn.00406150
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4b4c85
push eax
lea ecx, [esp + 0x70]
call fcn.00404da0
mov byte [esp + 0x98], 4
cmp dword [esp + 0x7c], esi
jbe 0x4b4c78
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
jae 0x4b4bb5
lea eax, [esp + 0x6c]
cmp word [eax], 0x54
jne 0x4b4c78
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, 0x5332d0
mov eax, esp
mov dword [esp + 0x38], esp
call fcn.00401490
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.004014d0
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 0x4b4c6f
push 0xffffffffffffffff
push 1
lea edx, [esp + 0x58]
push edx
call fcn.00417ad0
mov ecx, eax
mov byte [esp + 0x98], 6
call fcn.0040b3b0
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x98], bl
call fcn.00412770
mov ecx, dword [esp + 0x24]
add ecx, 0x1c
call fcn.0040b3b0
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.00401290
lea ecx, [esp + 0x6c]
call fcn.00412770
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.004d62e5
mov esp, ebp
pop ebp
ret 0xc