Function at 0x409440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f8d4
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5f237c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov edi, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x50], ebx
push 0x104
mov dword [ebp - 0x54], 0
call fcn.00405840
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 0x5b0154
push 0x17
push 0
push 0x5b3b80
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4096c1
mov eax, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x14], esi
test eax, eax
je 0x4094e6
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x5affcc
push eax
call dword [ecx]
mov esi, dword [ebp - 0x14]
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x18]
cmovs esi, ecx
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x409537
cmp dword [edi + 0x14], 8
jb 0x4094f6
mov edi, dword [edi]
test edi, edi
jne 0x409521
mov dword [ebp - 0x50], edi
push 0
mov dword [ebp - 0x54], 1
mov eax, dword [esi]
push edi
push esi
mov byte [ebp - 4], 3
call dword [eax + 0x14]
mov esi, dword [ebp - 0x14]
test eax, eax
mov eax, dword [ebp - 0x18]
js 0x40953a
mov byte [ebp - 0x49], 1
jmp 0x40953e
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x50], edi
test edi, edi
je 0x409746
jmp 0x4094fd
mov edi, dword [ebp - 0x50]
mov byte [ebp - 0x49], 0
test byte [ebp - 0x54], 1
mov dword [ebp - 4], 2
je 0x409558
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
cmp byte [ebp - 0x49], 0
je 0x4096b3
cmp dword [ebp - 0x1c], 8
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
cmovae edx, dword [ebp - 0x30]
push 4
push 0
push 0x104
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x4096b0
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
mov esi, dword [ebp - 0x30]
cmp edx, 8
cmovae ecx, esi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409597
mov eax, dword [ebp - 0x20]
sub ecx, edi
sar ecx, 1
cmp ecx, eax
ja 0x4095c1
cmp edx, 8
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x30]
cmovae eax, esi
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x4095ce
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040c6c0
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40961e
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
call fcn.00405770
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
test eax, eax
je 0x409600
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x409611
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
lea ecx, [ebp - 0x30]
call fcn.00406670
jmp 0x409728
push str.Program_Files
lea ecx, [ebp - 0x84]
call fcn.004059a0
push str.Program_Files__x86_
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.004059a0
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040e770
add esp, 0x10
lea ecx, [ebp - 0x6c]
call fcn.00406670
lea ecx, [ebp - 0x84]
call fcn.00406670
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.00405770
lea ecx, [ebp - 0x48]
call fcn.00406670
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
test eax, eax
je 0x409695
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
test eax, eax
je 0x4096a6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x30]
call fcn.00406670
jmp 0x409728
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
test esi, esi
je 0x4096c1
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
mov dword [ebx + 0x10], 0
push eax
mov dword [ebx + 0x14], 7
mov ecx, ebx
push 0x5af9d4
mov word [ebx], ax
call fcn.0040cb10
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
test eax, eax
je 0x4096f2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x409728
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40971e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409750
push edx
push ecx
call fcn.0045a50f
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a51d
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.00407940
call fcn.0056eeea
int3