Function at 0x4084f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b40dc
mov eax, dword fs:[0]
push eax
sub esp, 0x5dc
mov eax, dword [0x4e5070]
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 edi, ecx
push 0x104
lea eax, [ebp - 0x318]
mov dword [ebp - 0x5e8], 0
push 0
push eax
call fcn.00498020
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
cmp byte [ebp - 0x318], 0
mov dword [ebp - 0x524], 0xf
mov dword [ebp - 0x528], 0
mov byte [ebp - 0x538], 0
jne 0x40857c
xor ecx, ecx
jmp 0x40858e
lea ecx, [ebp - 0x318]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408585
sub ecx, edx
push ecx
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x538]
call fcn.00403a90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x550]
push 0xb
push 0x4c9e34
mov dword [ebp - 0x53c], 0xf
mov dword [ebp - 0x540], 0
mov byte [ebp - 0x550], 0
call fcn.00403a90
lea eax, [edi + 0x64]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x538]
lea ecx, [ebp - 0x550]
call fcn.0040cca0
mov eax, dword [ebp - 0x53c]
add esp, 4
cmp eax, 0x10
jb 0x40860f
inc eax
lea ecx, [ebp - 0x550]
push eax
push dword [ebp - 0x550]
call fcn.00403e20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x524]
cmp eax, 0x10
jb 0x408634
inc eax
lea ecx, [ebp - 0x538]
push eax
push dword [ebp - 0x538]
call fcn.00403e20
cmp byte [ebp - 0x318], 0
mov dword [ebp - 0x53c], 0xf
mov dword [ebp - 0x540], 0
mov byte [ebp - 0x550], 0
jne 0x40865c
xor ecx, ecx
jmp 0x40866e
lea ecx, [ebp - 0x318]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408665
sub ecx, edx
push ecx
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x550]
call fcn.00403a90
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x538]
push 0xb
push 0x4c9e40
mov dword [ebp - 0x524], 0xf
mov dword [ebp - 0x528], 0
mov byte [ebp - 0x538], 0
call fcn.00403a90
lea eax, [edi + 0x7c]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x550]
lea ecx, [ebp - 0x538]
call fcn.0040cca0
mov eax, dword [ebp - 0x524]
add esp, 4
cmp eax, 0x10
jb 0x4086ef
inc eax
lea ecx, [ebp - 0x538]
push eax
push dword [ebp - 0x538]
call fcn.00403e20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x53c]
cmp eax, 0x10
jb 0x408714
inc eax
lea ecx, [ebp - 0x550]
push eax
push dword [ebp - 0x550]
call fcn.00403e20
cmp byte [ebp - 0x318], 0
mov dword [ebp - 0x53c], 0xf
mov dword [ebp - 0x540], 0
mov byte [ebp - 0x550], 0
jne 0x40873c
xor ecx, ecx
jmp 0x40874e
lea ecx, [ebp - 0x318]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408745
sub ecx, edx
push ecx
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x550]
call fcn.00403a90
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x538]
push 0xb
push 0x4c9e4c
mov dword [ebp - 0x524], 0xf
mov dword [ebp - 0x528], 0
mov byte [ebp - 0x538], 0
call fcn.00403a90
lea ebx, [edi + 0xdc]
mov byte [ebp - 4], 5
push ebx
lea edx, [ebp - 0x550]
lea ecx, [ebp - 0x538]
call fcn.0040cca0
mov eax, dword [ebp - 0x524]
add esp, 4
cmp eax, 0x10
jb 0x4087d2
inc eax
lea ecx, [ebp - 0x538]
push eax
push dword [ebp - 0x538]
call fcn.00403e20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x53c]
cmp eax, 0x10
jb 0x4087f7
inc eax
lea ecx, [ebp - 0x550]
push eax
push dword [ebp - 0x550]
call fcn.00403e20
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00498020
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x210]
add esp, 0xc
push 0x200
push eax
push 0x65
push dword [edi + 0x14]
call esi
cmp byte [ebp - 0x210], 0
mov dword [ebp - 0x524], 0xf
mov dword [ebp - 0x528], 0
mov byte [ebp - 0x538], 0
jne 0x40884e
xor ecx, ecx
jmp 0x408860
lea ecx, [ebp - 0x210]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408857
sub ecx, edx
push ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x538]
call fcn.00403a90
lea eax, [ebp - 0x538]
push eax
lea ecx, [edi + 0x1c]
call fcn.004032a0
mov eax, dword [ebp - 0x524]
cmp eax, 0x10
jb 0x4088a0
inc eax
lea ecx, [ebp - 0x538]
push eax
push dword [ebp - 0x538]
call fcn.00403e20
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00498020
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x200
push eax
push 0x66
push dword [edi + 0x14]
call esi
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x538]
call fcn.00403320
push eax
lea ecx, [edi + 0x34]
call fcn.004032a0
mov eax, dword [ebp - 0x524]
cmp eax, 0x10
jb 0x408902
inc eax
lea ecx, [ebp - 0x538]
push eax
push dword [ebp - 0x538]
call fcn.00403e20
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00498020
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x200
push eax
push 0x67
push dword [edi + 0x14]
call esi
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x538]
call fcn.00403320
push eax
lea ecx, [edi + 0x94]
call fcn.004032a0
mov eax, dword [ebp - 0x524]
cmp eax, 0x10
jb 0x408967
inc eax
lea ecx, [ebp - 0x538]
push eax
push dword [ebp - 0x538]
call fcn.00403e20
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00498020
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x200
push eax
push 0x70
push dword [edi + 0x14]
call esi
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x538]
call fcn.00403320
lea ecx, [edi + 0xac]
push eax
call fcn.004032a0
mov eax, dword [ebp - 0x524]
cmp eax, 0x10
jb 0x4089cc
inc eax
lea ecx, [ebp - 0x538]
push eax
push dword [ebp - 0x538]
call fcn.00403e20
lea eax, [ebp - 0x538]
mov ecx, edi
push eax
call fcn.00407f90
mov eax, dword [ebp - 0x524]
cmp eax, 0x10
jb 0x4089f8
inc eax
lea ecx, [ebp - 0x538]
push eax
push dword [ebp - 0x538]
call fcn.00403e20
xor eax, eax
mov dword [ebp - 0x584], 7
mov dword [ebp - 0x588], 0
mov word [ebp - 0x598], ax
mov edx, ebx
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x5e0]
call fcn.00410ac0
push eax
lea ecx, [ebp - 0x5c8]
mov byte [ebp - 4], 7
call fcn.0040aa00
add esp, 4
lea ecx, [ebp - 0x5e0]
mov byte [ebp - 4], 9
call fcn.00403100
push ecx
lea edx, [ebp - 0x5c8]
call fcn.0040e1d0
add esp, 4
lea ecx, [ebp - 0x568]
push str.UninstallString
call fcn.004031c0
push ecx
lea eax, [ebp - 0x598]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x568]
mov dword [ebp - 0x5e8], 1
push eax
lea edx, [ebp - 0x5c8]
call fcn.0040e3a0
add esp, 0xc
test al, al
je 0x408aa6
cmp dword [ebp - 0x588], 0
je 0x408aa6
mov bl, 1
jmp 0x408aa8
xor bl, bl
lea ecx, [ebp - 0x568]
mov dword [ebp - 4], 9
call fcn.00403100
test bl, bl
je 0x408b60
push 0x208
lea eax, [ebp - 0x520]
push 0
push eax
call fcn.00498020
add esp, 0xc
lea eax, [ebp - 0x598]
cmp dword [ebp - 0x584], 8
cmovae eax, dword [ebp - 0x598]
push eax
lea eax, [ebp - 0x520]
push 0x104
push eax
call fcn.00498d61
add esp, 0xc
lea eax, [ebp - 0x520]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x520]
push eax
lea ecx, [ebp - 0x568]
call fcn.004031c0
lea edx, [ebp - 0x568]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x538]
call fcn.004109f0
push eax
lea ecx, [edi + 0xc4]
call fcn.004032a0
lea ecx, [ebp - 0x538]
call fcn.00403260
lea ecx, [ebp - 0x568]
mov byte [ebp - 4], 9
call fcn.00403100
jmp 0x408e20
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00498020
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x200
push eax
push 0x6a
push dword [edi + 0x14]
call esi
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x568]
call fcn.00403320
push eax
lea ecx, [edi + 0xc4]
call fcn.004032a0
lea ecx, [ebp - 0x568]
call fcn.00403260
cmp dword [edi + 0xd4], 0
mov byte [ebp - 0x5e1], 0
je 0x408c28
push ecx
push 0x4c9794
lea ecx, [edi + 0xc4]
call fcn.00409ff0
inc eax
lea ecx, [edi + 0xc4]
push eax
push 0
lea eax, [ebp - 0x538]
push eax
call fcn.00409fb0
cmp dword [ebp - 0x524], 0x10
lea eax, [ebp - 0x538]
cmovae eax, dword [ebp - 0x538]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
movzx ebx, byte [ebp - 0x5e1]
test eax, eax
mov ecx, 1
cmove ebx, ecx
lea ecx, [ebp - 0x538]
call fcn.00403260
test bl, bl
je 0x408d81
mov dword [ebp - 0x544], 0
mov dword [ebp - 0x540], 0
mov dword [ebp - 0x53c], 0
mov esi, 1
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x5e8], esi
call fcn.0049cb4c
push esi
mov ebx, eax
call fcn.0049cacc
add esp, 4
test eax, eax
jne 0x408c8a
push ebx
call fcn.0049cacc
add esp, 4
lea eax, [ebp - 0x5e8]
lea ecx, [ebp - 0x544]
push eax
call fcn.00409e50
mov esi, dword [ebp - 0x5e8]
inc esi
mov dword [ebp - 0x5e8], esi
cmp esi, 0x1b
jl 0x408c55
mov esi, dword [ebp - 0x540]
mov ebx, dword [ebp - 0x544]
sub esi, ebx
sar esi, 2
cmp esi, 1
jbe 0x408d53
push 0
call fcn.0049b8cd
add esp, 4
push eax
call fcn.00498e72
add esp, 4
call fcn.00498e51
xor edx, edx
div esi
lea eax, [esi - 1]
cmp edx, eax
jae 0x408cd4
inc edx
xor eax, eax
mov dword [ebp - 0x524], 7
mov dword [ebp - 0x528], 0
mov word [ebp - 0x538], ax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x538]
mov ax, word [ebx + edx*4]
add ax, 0x40
movzx eax, ax
push eax
call fcn.00409ef0
push 0x4c9798
lea ecx, [ebp - 0x538]
call fcn.00409f60
lea edx, [ebp - 0x538]
lea ecx, [ebp - 0x568]
call fcn.004109f0
lea esi, [edi + 0xc4]
push eax
mov ecx, esi
call fcn.004032a0
lea ecx, [ebp - 0x568]
call fcn.00403260
lea ecx, [ebp - 0x538]
call fcn.00403100
jmp 0x408d65
lea esi, [edi + 0xc4]
push str.C:Program_Files__x86_
mov ecx, esi
call fcn.00403220
mov byte [ebp - 4], 9
test ebx, ebx
je 0x408d87
mov eax, dword [ebp - 0x53c]
sub eax, ebx
sar eax, 2
push eax
push ebx
call fcn.0040a680
jmp 0x408d87
lea esi, [edi + 0xc4]
push 0x4c95c4
mov edx, esi
lea ecx, [ebp - 0x550]
call fcn.0040a8a0
add esp, 4
lea ecx, [edi + 0xac]
mov byte [ebp - 4], 0xe
push ecx
mov edx, eax
lea ecx, [ebp - 0x538]
call fcn.0040a9b0
add esp, 4
mov ecx, esi
push eax
call fcn.004032a0
mov eax, dword [ebp - 0x524]
cmp eax, 0x10
jb 0x408ddd
inc eax
lea ecx, [ebp - 0x538]
push eax
push dword [ebp - 0x538]
call fcn.00403e20
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x53c]
mov dword [ebp - 0x524], 0xf
mov dword [ebp - 0x528], 0
mov byte [ebp - 0x538], 0
cmp eax, 0x10
jb 0x408e1a
inc eax
lea ecx, [ebp - 0x550]
push eax
push dword [ebp - 0x550]
call fcn.00403e20
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00498020
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x200
push eax
push 0x68
push dword [edi + 0x14]
call esi
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x568]
call fcn.00403320
push eax
lea ecx, [edi + 0x4c]
call fcn.004032a0
mov eax, dword [ebp - 0x554]
cmp eax, 0x10
jb 0x408e82
inc eax
lea ecx, [ebp - 0x568]
push eax
push dword [ebp - 0x568]
call fcn.00403e20
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00498020
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x200
push eax
push 0x69
push dword [edi + 0x14]
call esi
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x580]
call fcn.00403320
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x580]
cmp dword [ebp - 0x56c], 0x10
cmovae eax, dword [ebp - 0x580]
push eax
call fcn.0049c9c7
add esp, 4
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x210]
push 0x200
push 0
push eax
call fcn.00498020
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x200
push eax
push 0x6f
push dword [edi + 0x14]
call esi
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x5b0]
call fcn.00403320
lea ecx, [ebp - 0x5b0]
call fcn.004049a0
test al, al
je 0x408f2f
mov byte [edi + 6], 1
mov eax, dword [ebp - 0x59c]
cmp eax, 0x10
jb 0x408f4d
inc eax
lea ecx, [ebp - 0x5b0]
push eax
push dword [ebp - 0x5b0]
call fcn.00403e20
mov eax, dword [ebp - 0x56c]
mov dword [ebp - 0x59c], 0xf
mov dword [ebp - 0x5a0], 0
mov byte [ebp - 0x5b0], 0
cmp eax, 0x10
jb 0x408f86
inc eax
lea ecx, [ebp - 0x580]
push eax
push dword [ebp - 0x580]
call fcn.00403e20
lea ecx, [ebp - 0x5c8]
mov dword [ebp - 0x56c], 0xf
mov dword [ebp - 0x570], 0
mov byte [ebp - 0x580], 0
call fcn.00403100
lea ecx, [ebp - 0x598]
call fcn.00403100
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.00493122
mov esp, ebp
pop ebp
ret