Function at 0x414c40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x428517
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4312c8]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4312c8]
xor eax, esp
push eax
lea eax, [esp + 0x134]
mov dword fs:[0], eax
mov eax, dword [esp + 0x150]
mov esi, dword [esp + 0x14c]
push eax
mov edi, ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
xor ebx, ebx
cmp esi, ebx
je 0x414e5d
push esi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x414e5d
push esi
lea ecx, [esp + 0x30]
call fcn.0040c450
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x140], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414e41
test al, 0x10
jne 0x414e41
lea ecx, [esp + 0x14]
push ecx
push 0x42b16c
push 0x17
push ebx
push 0x42b15c
mov dword [esp + 0x28], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebp, eax
cmp ebp, ebx
jge 0x414d1a
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
cmp eax, edx
je 0x414d13
push eax
call fcn.00418b36
add esp, 4
mov eax, ebp
jmp 0x414e62
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.004149d0
push 0x28
call fcn.0041901d
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x13c], 1
je 0x414d73
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x22]
push ecx
mov ecx, dword [esp + 0x14c]
push edx
mov edx, dword [esp + 0x14c]
push ecx
push edx
mov ecx, eax
call fcn.00416e50
mov ebp, eax
jmp 0x414d75
xor ebp, ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push ebp
push eax
mov byte [esp + 0x144], bl
call edx
push 4
call fcn.0041901d
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x13c], 2
je 0x414dae
mov ecx, eax
call fcn.00417b00
mov edi, eax
jmp 0x414db0
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x38]
push edi
push eax
mov byte [esp + 0x144], bl
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, ebx
jne 0x414e09
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
mov dword [esp + 0x1c], ebx
call fcn.00416e20
mov esi, eax
cmp esi, ebx
jl 0x414e09
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov word [eax], 9
mov dword [eax + 8], ecx
cmp ebp, ebx
je 0x414e19
mov edx, dword [ebp]
mov eax, dword [edx + 0x38]
push 1
mov ecx, ebp
call eax
cmp edi, ebx
je 0x414e28
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
push 1
mov ecx, edi
call eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
cmp eax, ecx
je 0x414e3d
push eax
call fcn.00418b36
add esp, 4
mov eax, esi
jmp 0x414e62
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
cmp eax, edx
je 0x414e56
push eax
call fcn.00418b36
add esp, 4
mov eax, 0x80004005
jmp 0x414e62
mov eax, 0x80070057
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00418ff5
add esp, 0x12c
ret 0x10