Function at 0x10001d50
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 0x10015341
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a8
mov eax, dword [0x1001e00c]
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
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x2a4], eax
test esi, esi
je 0x10002518
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10002518
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10005880
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.10005254
add esp, 8
test eax, eax
je 0x10001e01
xor ecx, ecx
lea esi, [ebp - 0x220]
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x2a4], eax
push 0
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x29c], 0
push eax
push edi
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10002514
mov ecx, dword [ebp - 0x29c]
test ecx, ecx
je 0x10002514
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.100031e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x258], 0
lea eax, [ebp - 0x258]
push eax
push 0x1001ba90
push 0x17
push 0
push 0x100162a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, dword [ebp - 0x274]
test eax, eax
jns 0x10001ea9
mov byte [ebp - 0x29d], 0
jmp 0x100024c2
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
js 0x1000248f
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x1000248f
mov dword [ebp - 0x240], 0
lea edx, [ebp - 0x240]
mov byte [ebp - 4], 5
mov ecx, dword [eax]
push edx
push 0x10016290
push eax
call dword [ecx]
test eax, eax
mov eax, dword [ebp - 0x240]
js 0x10002478
test eax, eax
je 0x10002478
mov dword [ebp - 0x23c], 0
lea edx, [ebp - 0x23c]
mov byte [ebp - 4], 6
mov ecx, dword [eax]
push edx
push 0x10016280
push eax
call dword [ecx]
test eax, eax
mov eax, dword [ebp - 0x23c]
js 0x1000245b
test eax, eax
je 0x1000245b
mov dword [ebp - 0x238], 0
lea edx, [ebp - 0x238]
mov byte [ebp - 4], 7
mov ecx, dword [eax]
push edx
push 0x10016220
push 0x10016230
push eax
call dword [ecx + 0xc]
test eax, eax
mov eax, dword [ebp - 0x238]
js 0x1000243e
test eax, eax
je 0x1000243e
mov dword [ebp - 0x234], 0
mov byte [ebp - 4], 8
lea edx, [ebp - 0x234]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x3c]
test eax, eax
js 0x1000241b
cmp dword [ebp - 0x234], 0
je 0x1000241b
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x10002019
mov dword [ebp - 0x224], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x224]
push edx
push 0x10016270
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
test eax, eax
js 0x1000241b
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x1000241b
mov dword [ebp - 0x254], 0
lea edx, [ebp - 0x254]
mov byte [ebp - 4], 9
mov ecx, dword [eax]
push edx
push 0x10016240
push eax
call dword [ecx]
test eax, eax
js 0x100023fe
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x1000208a
mov dword [ebp - 0x224], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x254]
lea edx, [ebp - 0x224]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x100023fe
mov dword [ebp - 0x250], 0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 0x224]
push edx
push 0x10016250
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jns 0x100020da
mov byte [ebp - 0x29d], 0
jmp 0x100023af
mov dword [ebp - 0x24c], 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 0x10002538
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov eax, 8
push esi
mov word [ebp - 0x2b8], ax
call edi
mov dword [ebp - 0x2b0], eax
test eax, eax
jne 0x1000212d
test esi, esi
jne 0x1000253e
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x250]
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 0x10002172
mov byte [ebp - 0x29d], 0
jmp 0x10002395
mov dword [ebp - 0x248], 0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x22c], ecx
test eax, eax
jne 0x100021a0
xor esi, esi
mov dword [ebp - 0x2a4], esi
jmp 0x100021b9
push eax
call edi
mov esi, eax
mov dword [ebp - 0x2a4], esi
test esi, esi
je 0x1000255e
mov ecx, dword [ebp - 0x22c]
lea edx, [ebp - 0x248]
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 0x100021e4
mov byte [ebp - 0x29d], 0
jmp 0x10002381
mov dword [ebp - 0x230], 0
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 0x248]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
js 0x10002366
mov eax, dword [ebp - 0x230]
lea edx, [ebp - 0x244]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x10002366
xor eax, eax
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x244], eax
jle 0x10002366
nop dword [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 0x100023cc
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 0x100022c9
push dword [ebp - 0x22c]
jmp 0x100023c6
mov eax, dword [ebp - 0x22c]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x100022d4
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 0x100023c5
mov esi, ecx
mov edx, eax
test esi, esi
je 0x10002325
sub edi, eax
nop
mov cx, word [edi + edx]
cmp cx, word [edx]
jne 0x100023c5
add edx, 2
sub esi, 1
jne 0x10002310
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 0x10002351
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2a4]
mov byte [ebp - 0x29d], 1
cmp eax, dword [ebp - 0x244]
jl 0x1000236d
mov byte [ebp - 0x29d], 0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x10002381
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x10002395
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x100023a9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [ebp - 0x274]
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x10002405
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10002405
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x100023e0
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 - 0x244]
jl 0x10002240
jmp 0x10002366
mov byte [ebp - 0x29d], 0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x10002422
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10002422
mov byte [ebp - 0x29d], 0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x10002436
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x238]
jmp 0x10002445
mov byte [ebp - 0x29d], 0
mov byte [ebp - 4], 6
test eax, eax
je 0x10002453
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x23c]
jmp 0x10002462
mov byte [ebp - 0x29d], 0
mov byte [ebp - 4], 5
test eax, eax
je 0x10002470
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x240]
jmp 0x1000247f
mov byte [ebp - 0x29d], 0
mov byte [ebp - 4], 4
test eax, eax
je 0x10002496
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10002496
mov byte [ebp - 0x29d], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x100024aa
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 0x100024d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x260]
cmp eax, 8
jb 0x1000250c
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x10002502
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002568
push ecx
push edi
call fcn.1000426f
add esp, 8
mov al, byte [ebp - 0x29d]
jmp 0x1000251a
xor al, al
jmp 0x1000251a
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.10003c5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push eax
call fcn.10001140
mov eax, 0xa
mov dword [ebp - 0x2b0], 0x8007000e
push 0x8007000e
mov word [ebp - 0x2b8], ax
call fcn.10001140
push 0x8007000e
call fcn.10001140
call fcn.10007f66
int3