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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57579e
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x5bafe0]
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 0x4d36a2
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.00402e40
mov dword [esp + 0x98], edi
cmp dword [esp + 0x64], 0x10
jb 0x4d3675
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], ecx
jmp 0x4d367d
lea edx, [esp + 0x50]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
call fcn.0052b87d
push 0x5a94e8
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], vtable.pix::error.0
call fcn.00532abb
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 0x4d36f0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], str.pix::com_error
call fcn.0052b87d
push 0x5a9524
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], vtable.pix::com_error.0
mov dword [esp + 0x48], esi
call fcn.00532abb
mov eax, dword [esp + 0x18]
cmp eax, edi
jne 0x4d3762
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.00402e40
mov dword [esp + 0x98], 1
cmp dword [esp + 0x64], 0x10
jb 0x4d3735
mov edx, dword [esp + 0x50]
mov dword [esp + 0x10], edx
jmp 0x4d373d
lea eax, [esp + 0x50]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x38]
call fcn.0052b87d
push 0x5a94e8
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], vtable.pix::error.0
call fcn.00532abb
mov byte [esp + 0x17], 1
jmp 0x4d3774
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 0x4d3890
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push ecx
call esi
test eax, eax
je 0x4d37be
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 0x4d37cd
xor esi, esi
jmp 0x4d37de
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
cmp esi, edi
je 0x4d38c1
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 0x4d382a
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 0x4d3826
mov dword [esp + 0x18], eax
jmp 0x4d382f
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 0x4d3770
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4d39dc
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 0x4d38cb
push eax
lea esi, [esp + 0x28]
call fcn.004c5560
push 0x5a9524
mov ecx, esi
push ecx
call fcn.00532abb
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], str.pix::com_error
call fcn.0052b87d
push 0x5a9524
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], vtable.pix::com_error.0
mov dword [esp + 0x38], esi
call fcn.00532abb
push 0x8007000e
call fcn.00413f90
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4d39d5
push eax
lea ecx, [esp + 0x70]
call fcn.00402940
mov byte [esp + 0x98], 4
cmp dword [esp + 0x7c], esi
jbe 0x4d39c8
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
jae 0x4d3905
lea eax, [esp + 0x6c]
cmp word [eax], 0x54
jne 0x4d39c8
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, 0x59c654
mov eax, esp
mov dword [esp + 0x38], esp
call fcn.004096d0
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.004484d0
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 0x4d39bf
push 0xffffffffffffffff
push 1
lea edx, [esp + 0x58]
push edx
call fcn.0041a0f0
mov ecx, eax
mov byte [esp + 0x98], 6
call fcn.0040a4b0
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x98], bl
call fcn.004129f0
mov ecx, dword [esp + 0x24]
add ecx, 0x1c
call fcn.0040a4b0
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.00404990
lea ecx, [esp + 0x6c]
call fcn.004129f0
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.0052b755
mov esp, ebp
pop ebp
ret 0xc