Function at 0x4176a0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ed51
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a8
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
xor edi, edi
test esi, esi
je 0x417e24
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417e24
push 0x208
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.005219d0
add esp, 0xc
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [ebp - 0x220]
push 0x5c
push eax
call fcn.0052093e
add esp, 8
test eax, eax
je 0x417742
xor ecx, ecx
lea edi, [eax + 2]
mov word [eax], cx
lea esi, [ebp - 0x220]
push 0
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x29c], 0
push eax
push 0x150a
push str.shell32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x417e20
mov ecx, dword [ebp - 0x29c]
test ecx, ecx
je 0x417e20
push eax
xor edx, edx
mov dword [ebp - 0x264], 0
push ecx
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], dx
call fcn.00410900
mov dword [ebp - 4], 0
mov dword [ebp - 0x258], 0
lea eax, [ebp - 0x258]
push eax
push 0x58d19c
push 0x17
push 0
push 0x56cb20
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4177e8
mov byte [ebp - 0x29d], 0
jmp 0x417dc8
mov eax, 3
mov dword [ebp - 0x290], 0
mov word [ebp - 0x298], ax
mov word [ebp - 0x288], ax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x224], 0
lea edx, [ebp - 0x224]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x258]
push edx
push 1
lea edx, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0
mov ecx, dword [eax]
push edx
push 8
lea edx, [ebp - 0x288]
push edx
lea edx, [ebp - 0x298]
push edx
push eax
call dword [ecx + 0x3c]
test eax, eax
jns 0x417863
mov byte [ebp - 0x29d], 0
jmp 0x417d9c
mov dword [ebp - 0x254], 0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x254]
mov eax, dword [ebp - 0x224]
push edx
push 0x56cae0
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jns 0x417898
mov byte [ebp - 0x29d], 0
jmp 0x417d88
mov dword [ebp - 0x250], 0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 0x254]
push edx
push 0x56cb30
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jns 0x4178cd
mov byte [ebp - 0x29d], 0
jmp 0x417d74
mov dword [ebp - 0x24c], 0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x24c]
mov eax, dword [ebp - 0x250]
push edx
push 0x56ca40
push 0x56ca60
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x417908
mov byte [ebp - 0x29d], 0
jmp 0x417d60
mov dword [ebp - 0x248], 0
mov byte [ebp - 4], 8
lea edx, [ebp - 0x248]
mov eax, dword [ebp - 0x24c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
js 0x417d45
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x41794b
mov dword [ebp - 0x224], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x224]
push edx
push 0x56cb40
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
test eax, eax
js 0x417d45
mov dword [ebp - 0x244], 0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 0x224]
push edx
push 0x56cb50
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x417d28
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x4179b4
mov dword [ebp - 0x224], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x224]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x417d28
mov dword [ebp - 0x240], 0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 0x224]
push edx
push 0x56cb60
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jns 0x417a04
mov byte [ebp - 0x29d], 0
jmp 0x417cd9
mov dword [ebp - 0x23c], 0
xor eax, eax
mov byte [ebp - 4], 0xb
mov word [ebp - 0x2b8], ax
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
js 0x417e44
mov eax, 8
push esi
mov word [ebp - 0x2b8], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x2b0], eax
test eax, eax
jne 0x417a55
test esi, esi
jne 0x417e4a
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x23c]
mov eax, dword [ebp - 0x240]
movups xmm0, xmmword [ebp - 0x2b8]
push ecx
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
push eax
movups xmmword [ecx], xmm0
call dword [edx + 0x24]
mov esi, eax
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x417a9a
mov byte [ebp - 0x29d], 0
jmp 0x417cc5
mov dword [ebp - 0x238], 0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x22c], ecx
test edi, edi
jne 0x417ac2
xor esi, esi
mov dword [ebp - 0x2a4], esi
jmp 0x417adf
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x2a4], esi
test esi, esi
je 0x417e6a
mov ecx, dword [ebp - 0x22c]
lea edx, [ebp - 0x238]
mov byte [ebp - 4], 0xe
mov eax, dword [ecx]
push edx
push esi
push ecx
call dword [eax + 0x30]
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jns 0x417b0a
mov byte [ebp - 0x29d], 0
jmp 0x417cb1
mov dword [ebp - 0x230], 0
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 0x238]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
js 0x417c96
mov eax, dword [ebp - 0x230]
lea edx, [ebp - 0x234]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x417c96
xor eax, eax
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x234], eax
jle 0x417c96
nop dword [eax]
nop word [eax + eax]
mov dword [ebp - 0x228], 0
mov ecx, 3
mov dword [ebp - 0x2b0], eax
mov word [ebp - 0x2b8], cx
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x228]
mov eax, dword [ebp - 0x230]
movups xmm0, xmmword [ebp - 0x2b8]
push ecx
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
push eax
movups xmmword [ecx], xmm0
call dword [edx + 0x28]
mov esi, eax
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
js 0x417cf6
mov dword [ebp - 0x22c], 0
mov byte [ebp - 4], 0x12
lea edx, [ebp - 0x22c]
mov eax, dword [ebp - 0x228]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jns 0x417bf9
push dword [ebp - 0x22c]
jmp 0x417cf0
mov eax, dword [ebp - 0x22c]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x417c04
mov ecx, dword [ebp - 0x264]
lea edi, [ebp - 0x274]
sub edx, esi
sar edx, 1
cmp dword [ebp - 0x260], 8
cmovae edi, dword [ebp - 0x274]
cmp ecx, edx
jne 0x417cef
mov esi, ecx
mov edx, eax
test esi, esi
je 0x417c55
sub edi, eax
nop
mov cx, word [edx + edi]
cmp cx, word [edx]
jne 0x417cef
add edx, 2
sub esi, 1
jne 0x417c40
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
push dword [ebp - 0x22c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x417c81
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2a4]
mov byte [ebp - 0x29d], 1
cmp eax, dword [ebp - 0x234]
jl 0x417c9d
mov byte [ebp - 0x29d], 0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x417cb1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x417cc5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x417cd9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x417d2f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x417d2f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x417d0a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2a4]
inc eax
mov dword [ebp - 0x2a4], eax
cmp eax, dword [ebp - 0x234]
jl 0x417b70
jmp 0x417c96
mov byte [ebp - 0x29d], 0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x417d4c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x417d4c
mov byte [ebp - 0x29d], 0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x417d60
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x417d74
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x417d88
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x417d9c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x417db0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x288]
push eax
call esi
lea eax, [ebp - 0x298]
push eax
call esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x417ddc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x260]
cmp eax, 8
jb 0x417e18
mov edx, dword [ebp - 0x274]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417e0e
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417e74
push ecx
push edx
call fcn.00497cc1
add esp, 8
mov al, byte [ebp - 0x29d]
jmp 0x417e26
xor al, al
jmp 0x417e26
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push eax
call fcn.0041e660
mov eax, 0xa
mov dword [ebp - 0x2b0], 0x8007000e
push 0x8007000e
mov word [ebp - 0x2b8], ax
call fcn.0041e660
push 0x8007000e
call fcn.0041e660
call fcn.00524999
int3