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

Disassembly:
push 0xffffffffffffffff
push 0x422c18
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 0x40c6c9
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40c6cd
lea edx, [esp + 0xc]
mov dword [esp + 0xc], ebx
mov ecx, dword [eax]
push edx
push 0x42a460
push eax
call dword [ecx]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x40c6bb
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 0x40c6a8
cmp eax, ebx
je 0x40c6a8
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x40c556
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.0040c700
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 0x424ca0
push eax
mov byte [esp + 0x7c], 3
call dword [ecx + 0x14]
cmp eax, ebx
jl 0x40c699
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 0x40c5ba
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 0x40c60d
mov edi, dword [esi + 8]
sub edi, ecx
sar edi, 4
cmp edx, edi
jae 0x40c60d
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 0x40c5d2
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 0x424ca0
push edx
push eax
mov byte [esp + 0x90], 4
call dword [ecx + 0x18]
pop edi
cmp eax, ebx
pop esi
jl 0x40c672
xor ebp, ebp
mov eax, dword [esp + 0x1c]
push eax
call fcn.00421c18
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 0x40c699
push eax
call fcn.00421c3c
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 0x40c6b7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0x64], bl
je 0x40c6c9
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x64], 0xffffffff
je 0x40c6df
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