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

Disassembly:
push 0xffffffffffffffff
push 0x410fab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
mov dword [esp + 0x90], edi
push eax
call fcn.0040eb40
mov esi, eax
cmp esi, edi
jge 0x40edad
mov eax, dword [esp + 0x10]
mov dword [esp + 0x90], 0xffffffff
cmp eax, edi
je 0x40eda6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x40f238
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0x400
lea ecx, [esp + 0x30]
push 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], 0x415db0
mov edx, dword [eax]
push ecx
push 0x411fd0
push eax
call dword [edx + 0x14]
mov esi, eax
cmp esi, edi
jge 0x40ee03
mov eax, dword [esp + 0x10]
mov dword [esp + 0x90], 0xffffffff
cmp eax, edi
je 0x40ee81
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, esi
jmp 0x40f238
mov word [esp + 0x58], di
xor eax, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], eax
mov word [esp + 0x38], di
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
push edi
lea edx, [esp + 0x3c]
push edi
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x54]
mov byte [esp + 0x9c], 2
push edx
mov edx, dword [esp + 0x2c]
push 2
push 0x400
push 0x411fd0
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
cmp esi, edi
jge 0x40ee88
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x38]
push eax
call ebx
lea ecx, [esp + 0x58]
push ecx
call ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x90], 0xffffffff
cmp eax, edi
je 0x40ee81
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, esi
jmp 0x40f238
mov ebp, 9
cmp word [esp + 0x38], bp
jne 0x40f206
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x40f206
lea edx, [esp + 0x14]
mov dword [esp + 0x14], edi
mov ecx, dword [eax]
push edx
push 0x415da0
push eax
call dword [ecx]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, edi
lea eax, [esp + 0x38]
mov byte [esp + 0x90], 3
push eax
jne 0x40ef02
call esi
lea ecx, [esp + 0x58]
push ecx
call esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x90], 0xffffffff
cmp eax, edi
je 0x40efdc
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 0x80004002
jmp 0x40f238
call esi
mov eax, dword [esp + 0x14]
push edi
lea edx, [esp + 0x3c]
push edi
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x54]
push edx
push 0x4000
push 0x400
push edi
push eax
call dword [ecx + 0x20]
mov ebx, eax
cmp ebx, edi
jge 0x40ef6f
mov eax, dword [esp + 0x14]
mov byte [esp + 0x90], 2
cmp eax, edi
je 0x40ef41
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x38]
push edx
call esi
lea eax, [esp + 0x58]
push eax
call esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x90], 0xffffffff
cmp eax, edi
je 0x40ef68
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
jmp 0x40f238
cmp word [esp + 0x38], bp
jne 0x40f1cd
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x40f1cd
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edi
mov edx, dword [eax]
push ecx
push 0x415da0
push eax
call dword [edx]
cmp dword [esp + 0x18], edi
jne 0x40efe6
mov eax, dword [esp + 0x14]
mov byte [esp + 0x90], 2
cmp eax, edi
je 0x40efb5
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x38]
push eax
call esi
lea ecx, [esp + 0x58]
push ecx
call esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x90], 0xffffffff
cmp eax, edi
je 0x40efdc
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 0x80004002
jmp 0x40f238
mov eax, dword [0x415c20]
mov dword [esp + 0x20], eax
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov byte [esp + 0x90], 5
xor ebx, ebx
mov dword [esp + 0x24], edi
mov ecx, dword [esp + 0x9c]
mov eax, dword [ecx + 4]
cmp eax, edi
je 0x40f11a
mov ecx, dword [ecx + 8]
sub ecx, eax
sar ecx, 4
cmp ebx, ecx
jae 0x40f11a
push ebx
lea edx, [esp + 0x24]
push 0x415d98
push edx
call fcn.0040fb70
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
call ebp
mov esi, eax
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push 2
mov ecx, dword [eax]
push esi
push eax
mov byte [esp + 0xa0], 6
call dword [ecx + 0x1c]
push esi
mov edi, eax
mov byte [esp + 0x94], 5
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jl 0x40f112
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0xa0]
add esp, 4
mov word [esi], 8
mov eax, dword [eax + 4]
mov eax, dword [ecx + eax + 4]
test eax, eax
jne 0x40f0a4
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call ebp
lea edx, [esp + 0x2c]
mov dword [esi + 8], eax
mov dword [esp + 0x6c], edx
mov eax, 1
push 0
push 0
lea edx, [esp + 0x70]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x20]
push 0
push edx
mov edx, dword [esp + 0x2c]
push 4
mov dword [esp + 0x40], 0xfffffffd
mov dword [esp + 0x7c], esi
mov ecx, dword [eax]
push 0x400
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x40f112
push esi
call fcn.00410178
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
add esp, 4
add eax, 0x10
inc ebx
mov dword [esp + 0x24], eax
xor edi, edi
jmp 0x40f003
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor edi, edi
lea eax, [esp + 0x38]
lea ecx, [esp + 0x78]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x98]
lea edx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
mov dword [esp + 0x5c], 1
call fcn.0040de20
mov edx, dword [0x415c24]
mov ebx, eax
mov eax, dword [esp + 0x20]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f176
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x40f176
mov edx, dword [esp + 0x20]
lea eax, [edx - 0xc]
push eax
call fcn.00410178
add esp, 4
mov eax, dword [esp + 0x18]
mov byte [esp + 0x90], 3
cmp eax, edi
je 0x40f18c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x90], 2
cmp eax, edi
je 0x40f1a2
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x38]
push eax
call esi
lea ecx, [esp + 0x58]
push ecx
call esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x90], 0xffffffff
cmp eax, edi
je 0x40f1c9
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, ebx
jmp 0x40f238
mov eax, dword [esp + 0x14]
mov byte [esp + 0x90], 2
cmp eax, edi
je 0x40f1e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x38]
push edx
call esi
lea eax, [esp + 0x58]
push eax
call esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x90], 0xffffffff
cmp eax, edi
je 0x40f233
jmp 0x40f22d
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x38]
push edx
call esi
lea eax, [esp + 0x58]
push eax
call esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x90], 0xffffffff
cmp eax, edi
je 0x40f233
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80020005
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret 8