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

Disassembly:
sub esp, 0x280
mov eax, dword [0x41605c]
xor eax, esp
mov dword [esp + 0x27c], eax
mov eax, dword [esp + 0x284]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
lea ecx, [esp + 0x14]
push ecx
push 0x412328
xor edi, edi
push 1
push edi
xor esi, esi
push 0x412338
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40189b
cmp dword [esp + 0x14], edi
je 0x40189b
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401550
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
push esi
push edi
call ebp
mov edi, eax
mov eax, esi
mov edx, ebx
mov ecx, edi
mov dword [esp + 0x44], edi
call fcn.00403c70
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x30]
push edx
call ebx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
mov ecx, edi
sub esp, 0x10
mov eax, esp
mov word [esp + 0x44], 8
mov edi, dword [esp + 0x44]
mov dword [eax], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x4c], ecx
mov esi, dword [edx]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esi + 0x24]
mov dword [eax + 0xc], ecx
call edx
test eax, eax
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jne 0x401882
mov eax, dword [esp + 0x20]
test eax, eax
je 0x401882
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
test eax, eax
jl 0x401876
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x40186a
mov eax, dword [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401613
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
push edi
push 0
call ebp
mov edx, dword [esp + 0x10]
mov ebp, eax
mov eax, edi
mov ecx, ebp
mov dword [esp + 0x4c], ebp
call fcn.00403c70
lea ecx, [esp + 0x30]
push ecx
call ebx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
sub esp, 0x10
mov eax, esp
mov word [esp + 0x44], 8
mov ebp, dword [esp + 0x44]
mov dword [eax], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x4c], ecx
mov edi, dword [edx]
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [edi + 0x24]
mov dword [eax + 0xc], ecx
call edx
test eax, eax
jne 0x401863
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401863
xor edi, edi
cmp dword [esp + 0x28], edi
mov dword [esp + 0x40], edi
jle 0x40185b
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x14], 0
call ebx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
sub esp, 0x10
mov eax, esp
mov word [esp + 0x84], 3
mov ebp, dword [esp + 0x84]
mov dword [eax], ebp
mov ebp, dword [esp + 0x88]
mov ecx, edi
mov dword [esp + 0x8c], ecx
mov edi, dword [edx]
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [edi + 0x28]
mov dword [eax + 0xc], ecx
call edx
test eax, eax
jl 0x401842
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
jl 0x401836
mov esi, dword [esp + 0x48]
lea eax, [esp + 0x80]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
nop
movzx ecx, word [esi + eax]
test cx, cx
je 0x401746
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x401730
jmp 0x40174a
test edx, edx
jne 0x40174d
sub eax, 2
push 0x413cd8
mov edx, 0x104
lea edi, [esp + 0x84]
mov word [eax], 0
call fcn.00403cb0
mov edx, dword [esp + 0x30]
push edx
mov edx, 0x104
call fcn.00403cb0
mov eax, edi
add esp, 8
lea ecx, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x401780
sub eax, ecx
sar eax, 1
lea edi, [eax + 1]
push edi
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
mov eax, edi
lea edx, [esp + 0x80]
mov ecx, esi
call fcn.00403c70
lea eax, [esp + 0x50]
push eax
call ebx
lea ecx, [esp + 0x60]
push ecx
mov word [esp + 0x54], 8
mov dword [esp + 0x5c], esi
call ebx
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov word [esp + 0x70], 3
mov ebp, dword [esp + 0x70]
mov dword [eax], ebp
mov ebp, dword [esp + 0x74]
mov dword [eax + 4], ebp
mov ecx, 4
mov dword [eax + 8], ecx
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x7c]
mov edi, dword [edx]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x60]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [edi + 0x3c]
mov dword [eax + 0xc], ecx
call edx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
mov eax, dword [esp + 0x2c]
push eax
call esi
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [esp + 0x40]
add edi, 1
cmp edi, dword [esp + 0x28]
mov dword [esp + 0x40], edi
jl 0x4016a2
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x4c]
push eax
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x44]
push eax
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
jmp 0x40189d
mov eax, esi
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403dac
add esp, 0x280
ret