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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f3f2d
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x58bd90]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x4c], vtable.CArray_struct__GUID__struct__GUID_const__.0
mov dword [esp + 0x50], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x60], vtable.CArray_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__.0
mov dword [esp + 0x64], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], ecx
mov byte [esp + 0x80], 1
xor edi, edi
mov dword [esp + 0x3c], edi
xor ebx, ebx
mov dword [esp + 0x38], vtable.CArray_struct_IStream___struct_IStream__const_const__.0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x80], 2
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x28]
mov dword [esp + 0x18], ecx
test eax, eax
jle 0x4c96e2
test ecx, ecx
js 0x4c9708
cmp ecx, dword [esi + 0x28]
jge 0x4c9708
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*4]
mov eax, dword [eax]
cmp byte [eax + 0x78], 0
mov dword [esp + 0x24], eax
je 0x4c96c1
mov ebx, edx
test edx, edx
js 0x4c9708
lea edi, [edx + 1]
lea esi, [esp + 0x4c]
call fcn.00404f00
mov edi, dword [esp + 0x24]
mov ecx, dword [edi + 0x18]
shl ebx, 4
add ebx, dword [esp + 0x50]
mov eax, ebx
mov dword [eax], ecx
mov edx, dword [edi + 0x1c]
mov dword [eax + 4], edx
mov ecx, dword [edi + 0x20]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0x24]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x68]
mov ebx, eax
test eax, eax
js 0x4c9708
lea ecx, [eax + 1]
lea esi, [esp + 0x60]
call fcn.00404ad0
mov eax, dword [esp + 0x64]
lea edx, [edi + 0xc]
lea ecx, [eax + ebx*4]
push edx
call fcn.00402150
mov edi, dword [edi + 0x2c]
mov dword [esp + 0x14], 0
mov byte [esp + 0x80], 4
test edi, edi
je 0x4c9598
mov eax, dword [edi]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push 0x54cfc4
push edi
call edx
mov byte [esp + 0x80], 5
cmp dword [esp + 0x14], 0
jne 0x4c95d1
mov eax, dword [esp + 0x40]
mov ebx, eax
test eax, eax
js 0x4c9708
lea edi, [eax + 1]
lea esi, [esp + 0x38]
call fcn.004047b0
mov eax, dword [esp + 0x3c]
mov dword [eax + ebx*4], 0
jmp 0x4c96a9
lea eax, [esp + 0x1c]
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jns 0x4c962a
mov eax, dword [esp + 0x40]
mov ebx, eax
test eax, eax
js 0x4c9708
lea edi, [eax + 1]
lea esi, [esp + 0x38]
call fcn.004047b0
mov ecx, dword [esp + 0x3c]
mov dword [ecx + ebx*4], 0
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4c96c1
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x4c96c1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jns 0x4c9674
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x40]
mov ebx, eax
test eax, eax
js 0x4c9708
lea edi, [eax + 1]
lea esi, [esp + 0x38]
call fcn.004047b0
mov eax, dword [esp + 0x3c]
mov dword [eax + ebx*4], 0
jmp 0x4c96a9
mov edx, dword [esp + 0x1c]
mov esi, dword [edx]
xor ecx, ecx
push ecx
push ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esi + 0x14]
push edx
call eax
mov eax, dword [esp + 0x40]
mov ebx, eax
test eax, eax
js 0x4c9708
lea edi, [eax + 1]
lea esi, [esp + 0x38]
call fcn.004047b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov dword [edx + ebx*4], ecx
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4c96c1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x18]
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x54]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [esi + 0x28]
jl 0x4c94e5
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
xor esi, esi
mov dword [esp + 0x18], esi
test edx, edx
jle 0x4c991d
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
sub ebx, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebx
jmp 0x4c9714
call fcn.0041d34a
lea ecx, [ecx]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], 0
mov byte [esp + 0x80], 0xf
test esi, esi
js 0x4c9708
cmp esi, edx
jge 0x4c9708
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push 0x50fb9c
push 1
push 0
push edx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4c98d8
cmp esi, dword [esp + 0x68]
jge 0x4c9708
mov esi, dword [esp + 0x14]
add edi, ebx
push edi
call fcn.004a3b00
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
jns 0x4c9787
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4c9782
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], 0
jmp 0x4c98d8
cmp dword [esp + 0x14], 0
je 0x4c98d8
mov esi, dword [edi]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov ebx, esp
mov dword [esp + 0x34], esp
mov dword [esp + 0x38], ebx
call edx
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x4c97c5
cmp eax, dword [esi - 0x10]
jne 0x4c97c5
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4c97fd
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4c99b0
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0045464a
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
mov byte [esp + 0x84], 0x12
mov eax, dword [esp + 0x18]
push eax
mov byte [esp + 0x88], 0xf
mov ecx, dword [ebp + 8]
call fcn.004c8ac0
test eax, eax
jns 0x4c9828
jmp 0x4c98d8
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x18], eax
jge 0x4c9708
mov esi, dword [esp + 0x24]
cmp dword [esi], 0
je 0x4c98c0
cmp dword [esp + 0x2c], 0
jne 0x4c98c0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], 0
mov byte [esp + 0x80], 0x15
test eax, eax
je 0x4c9873
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x54cfc4
push eax
mov eax, dword [ecx]
call eax
mov byte [esp + 0x80], 0x16
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4c989d
mov byte [esp + 0x80], 0xf
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c989b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4c98d8
mov edx, dword [esi]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov byte [esp + 0x80], 0xf
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c98c0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4c98d8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], 0
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4c98f0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x54]
add dword [esp + 0x20], 0x10
inc esi
add edi, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], edi
cmp esi, edx
jl 0x4c9710
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
xor esi, esi
test ebx, ebx
jle 0x4c9949
test esi, esi
js 0x4c9708
cmp esi, ebx
jge 0x4c9708
cmp dword [edi + esi*4], 0
je 0x4c9944
mov eax, dword [edi + esi*4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
inc esi
cmp esi, ebx
jl 0x4c9923
mov byte [esp + 0x80], 1
mov dword [esp + 0x38], vtable.CArray_struct_IStream___struct_IStream__const_const__.0
test edi, edi
je 0x4c9966
push edi
call fcn.00415ef4
add esp, 4
mov byte [esp + 0x80], 0
lea edi, [esp + 0x60]
call fcn.00404e30
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x50]
mov dword [esp + 0x4c], vtable.CArray_struct__GUID__struct__GUID_const__.0
test eax, eax
je 0x4c999b
push eax
call fcn.00415ef4
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004036b0
int3