Function at 0x408e60
Capabilities:
Check if file exists
Delete file
Get common file path
Manipulate boot configuration
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4341f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x638
mov eax, dword [0x445164]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x638], eax
push edi
mov dword [esi], ebx
mov eax, dword [ebx + 0x2c]
xor edi, edi
cmp eax, edi
je 0x409950
mov edx, dword [0x4460e8]
mov eax, dword [edx + 0x1c]
cmp dword [eax + 0x2a8], edi
je 0x408ef8
mov word [esp + 0x228], di
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x22a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [edx + 0x1c]
mov edx, dword [ecx + 0x14]
push edx
lea eax, [esp + 0x22c]
push 0x437358
push eax
call fcn.00419260
add esp, 0xc
lea ecx, [esp + 0x228]
push ecx
jmp 0x408fb8
mov eax, dword [ebx + 0xc]
push 0x437348
push eax
call fcn.00419cde
add esp, 8
test eax, eax
jne 0x408fbf
mov edx, dword [0x4460e8]
mov word [esp + 0x20], di
mov ecx, 0x81
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [edx + 0x1c]
mov eax, dword [eax + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004197cd
lea edx, [esp + 0x28]
push 0x43731c
push edx
call fcn.004197cd
add esp, 0x10
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408fbf
mov word [esp + 0x228], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x22a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x228]
push 0x437178
push ecx
stosw word es:[edi], ax
call fcn.004197cd
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x234]
push eax
call fcn.004197cd
lea ecx, [esp + 0x238]
push 0x4372f0
push ecx
call fcn.004197cd
add esp, 0x18
lea edx, [esp + 0x228]
push edx
mov ecx, esi
call fcn.004080f0
mov ecx, dword [0x4460e8]
mov eax, dword [ecx + 0x1c]
cmp ebx, dword [eax + 0x2c]
jne 0x409004
push 0
push 0x4372d8
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x409021
mov ecx, dword [0x4460e8]
push 0x4372bc
call fcn.00402130
push 0
push 0
push 2
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x7d0
jmp 0x40901b
cmp ebx, dword [eax + 0x48]
jne 0x409021
mov ecx, dword [ecx + 0x34]
push 0x4372a8
call fcn.004019c0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.0040e950
push 0x436846
lea eax, [ebx + 0x10]
push eax
call fcn.00404940
test al, al
je 0x409041
mov ecx, ebx
call fcn.0040db80
mov eax, dword [ebx + 0x28]
xor edi, edi
cmp eax, edi
je 0x409542
mov ecx, dword [0x4460e8]
mov edx, dword [ecx + 0x1c]
cmp ebx, dword [edx + 0x2c]
mov eax, dword [esi]
jne 0x40914b
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
add eax, 0xc
push eax
add ebx, 0x50
push ebx
push ecx
call fcn.004043f0
mov ecx, esi
call fcn.004085f0
test eax, eax
je 0x4090b2
mov edx, dword [esi]
mov eax, dword [edx + 8]
push eax
lea ecx, [esp + 0x434]
push 0x437294
push ecx
call fcn.00419260
mov ecx, dword [0x4460e8]
add esp, 0xc
lea edx, [esp + 0x430]
push edx
call fcn.00402130
jmp 0x4090b7
mov edi, 1
mov eax, dword [esi]
mov edx, dword [0x4460e8]
push ecx
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov eax, dword [edx + 0x1c]
add eax, 0x10
push eax
push ecx
call fcn.004043f0
mov ecx, esi
call fcn.004085f0
test eax, eax
je 0x409118
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push edx
lea eax, [esp + 0x434]
push 0x437294
push eax
call fcn.00419260
add esp, 0xc
lea ecx, [esp + 0x430]
push ecx
mov ecx, dword [0x4460e8]
call fcn.00402130
test edi, edi
je 0x409950
mov edx, dword [esi]
mov eax, dword [edx + 8]
push eax
lea ecx, [esp + 0x434]
push 0x437280
push ecx
call fcn.00419260
mov ecx, dword [0x4460e8]
add esp, 0xc
lea edx, [esp + 0x430]
push edx
call fcn.00402130
jmp 0x409950
add eax, 0xc
push eax
lea edi, [ebx + 0x50]
push edi
lea ecx, [esp + 0x24]
push ecx
call fcn.004043f0
push 0x437264
push eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x658], 0
call fcn.00406000
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x64c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40919e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 0
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
push 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [0x4460e8]
mov edx, dword [eax + 0x1c]
mov ecx, dword [edx + 0x2a0]
test ecx, ecx
jne 0x409286
mov eax, edx
add eax, 0x98
push eax
lea ecx, [esp + 0x18]
call fcn.00401920
mov ecx, dword [esi]
add ecx, 0xc
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
mov bl, 3
push eax
mov byte [esp + 0x658], bl
call fcn.004043f0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x436674
push eax
push ecx
mov byte [esp + 0x65c], 4
call fcn.00406000
mov ecx, esi
call fcn.00408240
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x64c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40925d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x64c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409283
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [ebp + 8]
mov eax, dword [esi]
add eax, 0xc
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
call fcn.004043f0
push ecx
mov edx, esp
mov dword [esp + 0x14], esp
push 0x436674
push eax
push edx
mov byte [esp + 0x65c], 5
call fcn.00406000
mov ecx, esi
call fcn.00408240
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x64c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4092df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi]
mov ecx, dword [0x4460e8]
mov edx, dword [ecx + 0x1c]
add eax, 0xc
push eax
add edx, 0x10
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004043f0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x436674
push eax
push ecx
mov byte [esp + 0x65c], 6
call fcn.00406000
mov ecx, esi
call fcn.00408240
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x64c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409344
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x2a4]
test eax, eax
je 0x409539
mov eax, dword [ebx + 0xc]
push 0x437348
push eax
call fcn.00419cde
add esp, 8
test eax, eax
jne 0x409539
push eax
push 0x2b
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x20]
push 0x437234
push eax
call fcn.004197cd
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
lea ecx, [esp + 0x20]
push ecx
call ebx
test eax, eax
je 0x40951f
lea edx, [esp + 0x20]
push edx
push 0x104
mov eax, edx
push eax
push 0
push 0x43721c
push 0x437000
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401920
mov edx, dword [esp + 0xc]
push edx
mov byte [esp + 0x650], 7
call ebx
test eax, eax
je 0x40940c
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x40940c
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.004015a0
mov ecx, esi
call fcn.00408240
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
add ecx, 0x98
push ecx
lea edx, [esp + 0x24]
push 0x43720c
push edx
call fcn.00419260
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
call fcn.004018e0
lea ecx, [esp + 0xc]
call fcn.00401730
mov ecx, dword [esp + 0xc]
push ecx
call ebx
test eax, eax
je 0x40948e
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x40948e
push 0x4371f8
push eax
call fcn.00419d40
add esp, 8
test eax, eax
je 0x40948e
sub eax, dword [esp + 0xc]
sar eax, 1
test eax, eax
jl 0x40948e
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.004015a0
mov ecx, esi
call fcn.00408240
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx + 0x10]
push edx
lea eax, [esp + 0x24]
push 0x43720c
push eax
call fcn.00419260
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call fcn.004018e0
lea ecx, [esp + 0xc]
call fcn.00401730
mov edx, dword [esp + 0xc]
push edx
call ebx
test eax, eax
je 0x40950d
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x40950d
push 0x4371f8
push eax
call fcn.00419d40
add esp, 8
test eax, eax
je 0x40950d
sub eax, dword [esp + 0xc]
sar eax, 1
test eax, eax
jl 0x40950d
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.004015a0
mov ecx, esi
call fcn.00408240
lea ecx, [esp + 0xc]
call fcn.00401420
mov eax, dword [esp + 0x18]
jmp 0x40992b
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x4371ec
push edi
push ecx
call fcn.00406000
mov ecx, esi
call fcn.00408240
mov eax, dword [esp + 0x18]
jmp 0x40992b
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
add ecx, 0x98
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], edi
call fcn.00401920
mov edx, dword [0x4460e8]
mov eax, dword [edx + 0x1c]
cmp dword [eax + 0x2a0], edi
mov dword [esp + 0x64c], 8
jne 0x40967a
mov ecx, dword [esi]
add ecx, 0xc
push ecx
mov edx, esp
mov dword [esp + 0x14], esp
push ecx
lea eax, [esp + 0x1c]
push eax
push edx
call fcn.004043f0
mov ecx, esi
call fcn.004085f0
cmp eax, edi
je 0x40967a
mov ecx, dword [0x4460e8]
mov edx, dword [ecx + 0x1c]
cmp dword [edx + 0x2a4], edi
je 0x40964c
mov eax, dword [esi]
push 0x437348
add eax, 0xc
push eax
call fcn.00403fb0
test al, al
je 0x40964c
push 0x4371e0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00406000
lea ecx, [esp + 0xc]
mov byte [esp + 0x64c], 9
call fcn.00401730
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40963b
mov eax, dword [edi - 0xc]
test eax, eax
jl 0x40963b
push 0x4371f8
push edi
call fcn.00419d40
add esp, 8
test eax, eax
je 0x40963b
sub eax, edi
sar eax, 1
test eax, eax
jl 0x40963b
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.004015a0
mov ecx, esi
call fcn.004085f0
lea ecx, [esp + 0xc]
mov byte [esp + 0x64c], 8
call fcn.00401420
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push edx
lea eax, [esp + 0x434]
push 0x437294
push eax
call fcn.00419260
add esp, 0xc
lea ecx, [esp + 0x430]
push ecx
mov ecx, dword [0x4460e8]
call fcn.00402130
mov edx, dword [esi]
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
add edx, 0xc
push edx
lea edi, [ebx + 0x50]
push edi
push eax
call fcn.004043f0
mov ecx, esi
call fcn.004085f0
test eax, eax
je 0x4097e7
mov ecx, dword [0x4460e8]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 0x2a4]
test eax, eax
je 0x4097b3
mov eax, dword [esi]
add eax, 0xc
mov eax, dword [eax]
push 0x437348
push eax
call fcn.00419cde
add esp, 8
test eax, eax
jne 0x4097b3
push eax
push 0x2b
lea eax, [esp + 0x230]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x228]
push 0x437234
push ecx
call fcn.004197cd
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
lea edx, [esp + 0x228]
push edx
call ebx
test eax, eax
je 0x409799
lea eax, [esp + 0x228]
push eax
push 0x104
mov ecx, eax
push ecx
push 0
push 0x43721c
push 0x437000
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x228]
push edx
lea ecx, [esp + 0x10]
call fcn.00401920
lea ecx, [esp + 0xc]
mov byte [esp + 0x64c], 0xa
call fcn.00401730
mov eax, dword [esp + 0xc]
push eax
call ebx
test eax, eax
je 0x409786
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x409786
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.004015a0
mov ecx, esi
call fcn.004085f0
lea ecx, [esp + 0xc]
mov byte [esp + 0x64c], 8
call fcn.00401420
jmp 0x4097b3
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push 0x4371ec
push edi
push eax
call fcn.00406000
mov ecx, esi
call fcn.004085f0
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push edx
lea eax, [esp + 0x434]
push 0x437294
push eax
call fcn.00419260
add esp, 0xc
lea ecx, [esp + 0x430]
push ecx
mov ecx, dword [0x4460e8]
call fcn.00402130
mov ebx, dword [esp + 0x1c]
jmp 0x4097ec
mov ebx, 1
mov edx, dword [esi]
push ecx
mov ecx, dword [0x4460e8]
add edx, 0xc
mov eax, esp
mov dword [esp + 0x14], esp
push edx
mov edx, dword [ecx + 0x1c]
add edx, 0x10
push edx
push eax
call fcn.004043f0
mov ecx, esi
call fcn.004085f0
test eax, eax
je 0x4098f9
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x2a4]
test eax, eax
je 0x4098c7
mov eax, dword [esi]
add eax, 0xc
mov eax, dword [eax]
push 0x437348
push eax
call fcn.00419cde
add esp, 8
test eax, eax
jne 0x4098c7
mov edx, dword [0x4460e8]
mov eax, dword [edx + 0x1c]
push 0x4371e0
add eax, 0x10
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00406000
mov edi, dword [esp + 0x18]
push edi
mov byte [esp + 0x650], 0xb
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4098b6
mov eax, dword [edi - 0xc]
test eax, eax
jl 0x4098b6
push 0x4371f8
push edi
call fcn.00419d40
add esp, 8
test eax, eax
je 0x4098b6
sub eax, edi
sar eax, 1
test eax, eax
jl 0x4098b6
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.004015a0
mov ecx, esi
call fcn.004085f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x64c], 8
call fcn.00401420
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push ecx
lea edx, [esp + 0x434]
push 0x437294
push edx
call fcn.00419260
mov ecx, dword [0x4460e8]
add esp, 0xc
lea eax, [esp + 0x430]
push eax
call fcn.00402130
test ebx, ebx
je 0x409927
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push edx
lea eax, [esp + 0x434]
push 0x437280
push eax
call fcn.00419260
add esp, 0xc
lea ecx, [esp + 0x430]
push ecx
mov ecx, dword [0x4460e8]
call fcn.00402130
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x64c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409950
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x644]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x63c]
mov eax, 1
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4