Function at 0x409bb6
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x21c], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409f44
lea eax, [ebp - 0x214]
push eax
push 0x403280
push 1
push 0
push 0x4012a4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x409f44
cmp dword [ebp + 0x1c], 0
je 0x409c63
push dword [ebp + 0x1c]
lea eax, [ebp - 0x210]
push 0x402438
push 0x104
push eax
call fcn.004083b4
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x210]
add esp, 0x10
mov edi, esp
mov esi, dword [eax]
push ecx
push eax
mov ecx, dword [esi + 0x1c]
call dword [0x4255c0]
call dword [esi + 0x1c]
cmp edi, esp
je 0x409c63
mov ecx, 4
int 0x29
mov eax, dword [ebp - 0x214]
mov edi, esp
push 0x402488
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x4255c0]
call esi
cmp edi, esp
je 0x409c8b
mov ecx, 4
int 0x29
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x218]
mov edi, esp
push ecx
push 0x402c9c
mov esi, dword [eax]
push eax
mov ecx, dword [esi]
call dword [0x4255c0]
call dword [esi]
cmp edi, esp
je 0x409cb7
mov ecx, 4
int 0x29
mov esi, eax
test esi, esi
js 0x409e2f
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x409d28
push 0x1f
pop ecx
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_SHStrDupW]
test eax, eax
js 0x409e0c
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x230]
mov edi, esp
push ecx
push 0x4032d8
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x18]
call dword [0x4255c0]
call dword [esi + 0x18]
cmp edi, esp
je 0x409d19
mov ecx, 4
int 0x29
mov esi, eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
test esi, esi
js 0x409e0c
call fcn.0040c4a2
push 0xb
pop ecx
test al, al
je 0x409d91
mov eax, dword [ebp + 0x14]
mov edi, esp
neg eax
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x230]
sbb eax, eax
mov word [ebp - 0x228], ax
mov eax, dword [ebp - 0x218]
push ecx
push 0x4032c4
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x18]
call dword [0x4255c0]
call dword [esi + 0x18]
cmp edi, esp
je 0x409d7f
mov ecx, 4
int 0x29
mov esi, eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
push 0xb
pop ecx
test esi, esi
js 0x409e0c
mov eax, dword [ebp + 0x10]
mov edi, esp
neg eax
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x230]
sbb eax, eax
mov word [ebp - 0x228], ax
mov eax, dword [ebp - 0x218]
push ecx
push 0x4032b0
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x18]
call dword [0x4255c0]
call dword [esi + 0x18]
cmp edi, esp
je 0x409dd8
mov ecx, 4
int 0x29
test eax, eax
js 0x409dff
mov eax, dword [ebp - 0x218]
mov edi, esp
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x4255c0]
call esi
cmp edi, esp
je 0x409dff
mov ecx, 4
int 0x29
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [ebp - 0x218]
mov edi, esp
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4255c0]
call esi
cmp edi, esp
je 0x409e2f
mov ecx, 4
int 0x29
mov eax, dword [ebp - 0x214]
mov edi, esp
push dword [ebp - 0x234]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x4255c0]
call esi
cmp edi, esp
je 0x409e58
mov ecx, 4
int 0x29
test eax, eax
js 0x409f21
mov edx, dword [ebp - 0x238]
test edx, edx
je 0x409e96
mov eax, dword [ebp - 0x214]
mov edi, esp
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x4255c0]
call esi
cmp edi, esp
je 0x409e8e
mov ecx, 4
int 0x29
test eax, eax
js 0x409f21
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x21c]
mov edi, esp
push ecx
push 0x4012e4
mov esi, dword [eax]
push eax
mov ecx, dword [esi]
call dword [0x4255c0]
call dword [esi]
cmp edi, esp
je 0x409ec2
mov ecx, 4
int 0x29
test eax, eax
js 0x409f21
mov eax, dword [ebp - 0x21c]
mov edi, esp
push 1
push ebx
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x18]
call dword [0x4255c0]
call dword [esi + 0x18]
cmp edi, esp
je 0x409eeb
mov ecx, 4
int 0x29
test eax, eax
js 0x409efe
push dword [ebp + 0x18]
push 0x4024b4
push ebx
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
mov eax, dword [ebp - 0x21c]
mov edi, esp
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4255c0]
call esi
cmp edi, esp
je 0x409f21
mov ecx, 4
int 0x29
mov eax, dword [ebp - 0x214]
mov edi, esp
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4255c0]
call esi
cmp edi, esp
je 0x409f44
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422f70
mov esp, ebp
pop ebp
ret 0x18