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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b1a5a
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4f07b0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x24], vtable.CArray_struct__GUID__struct__GUID_const__.0
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x58], edi
mov dword [esp + 0x38], 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 + 0x3c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
mov byte [esp + 0x58], 1
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ecx + 0x28], edi
mov dword [esp + 0x14], eax
jle 0x4056e2
jmp 0x405640
cmp eax, edi
jl 0x40575f
cmp eax, dword [ecx + 0x28]
jge 0x40575f
mov edx, dword [ecx + 0x24]
lea edx, [edx + eax*4]
mov edx, dword [edx]
cmp byte [edx + 0x78], 0
mov dword [esp + 0x18], edx
je 0x4056d0
test ebx, ebx
jl 0x40575f
lea edi, [ebx + 1]
lea esi, [esp + 0x24]
call fcn.0040b210
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x18]
shl ebx, 4
add ebx, dword [esp + 0x28]
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 + 0x40]
test eax, eax
mov ebx, eax
jl 0x40575f
add eax, 1
lea esi, [esp + 0x38]
call fcn.0040b5d0
mov eax, dword [esp + 0x3c]
add edi, 0xc
lea ecx, [eax + ebx*4]
push edi
call fcn.00409c00
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 0x2c]
add eax, 1
xor edi, edi
cmp eax, dword [ecx + 0x28]
mov dword [esp + 0x14], eax
jl 0x405640
xor esi, esi
cmp ebx, edi
mov dword [esp + 0x14], esi
jle 0x405850
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
jmp 0x405700
mov dword [esp + 0x10], edi
mov byte [esp + 0x58], 3
cmp esi, edi
jl 0x40575f
cmp esi, ebx
jge 0x40575f
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 0x4b664c
push 1
push edi
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x405825
mov edi, dword [esp + 0x10]
call fcn.00425320
test eax, eax
jge 0x405764
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405825
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], 0
jmp 0x405825
call fcn.004547dc
cmp dword [esp + 0x10], 0
je 0x405825
cmp esi, dword [esp + 0x40]
jge 0x40575f
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + esi*4]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
mov ebx, esp
mov dword [esp + 0x20], esp
mov dword [esp + 0x24], ebx
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4057ae
cmp eax, dword [esi]
jne 0x4057ae
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4057e9
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x405894
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00488be5
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
mov byte [esp + 0x5c], 5
mov eax, dword [esp + 0x14]
push eax
mov byte [esp + 0x60], 3
mov ecx, dword [ebp + 8]
call fcn.00402e80
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40581d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, edi
je 0x40583c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
add dword [esp + 0x18], 0x10
add esi, 1
cmp esi, ebx
mov dword [esp + 0x14], esi
jl 0x405700
mov byte [esp + 0x58], 0
lea edi, [esp + 0x38]
call fcn.0040ad10
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x24], vtable.CArray_struct__GUID__struct__GUID_const__.0
je 0x40587f
push eax
call fcn.004546de
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0040a1d0
int3