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

Disassembly:
push 0xffffffffffffffff
push 0x422888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
mov ebp, 1
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebx
mov eax, dword [ecx + 0x68]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
mov dword [esp + 0x6c], ebx
call dword [ecx + 0x48]
cmp eax, ebx
jl 0x40c2d9
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40c2dd
lea edx, [esp + 0xc]
mov dword [esp + 0xc], ebx
mov ecx, dword [eax]
push edx
push 0x42a410
push eax
call dword [ecx]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x40c2cb
mov dword [esp + 8], ebx
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
mov byte [esp + 0x6c], 2
call dword [ecx + 0x1c]
cmp eax, ebx
mov eax, dword [esp + 8]
jl 0x40c2b8
cmp eax, ebx
je 0x40c2b8
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x40c166
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0xffffffffffffffff
push eax
call fcn.0040c310
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
lea edx, [esp + 0x6c]
push edx
push 0x800
lea edx, [esp + 0x1c]
push 1
mov dword [esp + 0x78], ebx
mov ecx, dword [eax]
push edx
push 0x424c88
push eax
mov byte [esp + 0x7c], 3
call dword [ecx + 0x14]
cmp eax, ebx
jl 0x40c2a9
xor eax, eax
push esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push edi
mov ecx, dword [esi + 4]
mov dword [esp + 0x2c], eax
cmp ecx, ebx
mov dword [esp + 0x30], eax
je 0x40c1ca
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
mov dword [esp + 0x2c], eax
shl eax, 4
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x24], eax
xor edx, edx
xor eax, eax
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x40c21d
mov edi, dword [esi + 8]
sub edi, ecx
sar edi, 4
cmp edx, edi
jae 0x40c21d
mov edi, dword [esp + 0x24]
add ecx, eax
add edi, eax
inc edx
mov ebp, dword [ecx]
add eax, 0x10
mov dword [edi], ebp
mov ebp, dword [ecx + 4]
mov dword [edi + 4], ebp
mov ebp, dword [ecx + 8]
mov dword [edi + 8], ebp
mov ebp, dword [esp + 0x20]
mov ecx, dword [ecx + 0xc]
mov dword [edi + 0xc], ecx
jmp 0x40c1e2
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x44]
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x78]
mov eax, dword [esp + 0x10]
push edx
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x84]
push 1
push ebx
mov dword [esp + 0x90], 0xffffffff
mov ecx, dword [eax]
push 0x424c88
push edx
push eax
mov byte [esp + 0x90], 4
call dword [ecx + 0x18]
pop edi
cmp eax, ebx
pop esi
jl 0x40c282
xor ebp, ebp
mov eax, dword [esp + 0x1c]
push eax
call fcn.004218a8
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 3
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x40c2a9
push eax
call fcn.004218cc
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 8]
cmp eax, ebx
mov byte [esp + 0x64], 1
je 0x40c2c7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0x64], bl
je 0x40c2d9
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x64], 0xffffffff
je 0x40c2ef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x5c]
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 8