Function at 0x40f090
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040f360
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40f0b5
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
jne 0x40f0bc
xor al, al
jmp 0x40f35a
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040f4e0
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40f0db
mov ecx, dword [ebp - 0x3c]
movsx edx, byte [ecx]
test edx, edx
jne 0x40f0e2
xor al, al
jmp 0x40f35a
push 0x78
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0040e6c0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x40f0fe
xor al, al
jmp 0x40f35a
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f122
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40f122
xor al, al
jmp 0x40f35a
push 0x73
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0041a160
lea ecx, [ebp - 0x38]
call fcn.0041a460
push 0xbc0
lea edx, [ebp - 0x38]
push edx
call fcn.0041a280
add esp, 8
push 1
lea ecx, [ebp - 0x38]
call fcn.0041a4b0
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x58], eax
push 1
push 0
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00410150
add esp, 0x1c
movzx eax, al
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
test eax, eax
jne 0x40f1a4
mov byte [ebp - 0x49], 0
lea ecx, [ebp - 0x38]
call fcn.0041a200
mov al, byte [ebp - 0x49]
jmp 0x40f35a
lea ecx, [ebp - 4]
call dword [sym.imp.DENKIPM.dll_Ordinal_1255]
lea ecx, [ebp - 4]
call dword [sym.imp.DENKIPM.dll_Ordinal_1154]
jmp 0x40f1c1
lea ecx, [ebp - 4]
call dword [sym.imp.DENKIPM.dll_Ordinal_1156]
lea ecx, [ebp - 4]
call dword [sym.imp.DENKIPM.dll_Ordinal_1155]
movzx edx, al
test edx, edx
jne 0x40f225
lea ecx, [ebp - 4]
call dword [sym.imp.DENKIPM.dll_Ordinal_1259]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x48]
call dword [sym.imp.DENKIPM.dll_Ordinal_1277]
movzx ecx, al
test ecx, ecx
jne 0x40f1f3
jmp 0x40f1b8
push 1
push 0
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00410f10
add esp, 0x1c
movzx ecx, al
test ecx, ecx
je 0x40f223
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
jmp 0x40f1b8
lea ecx, [ebp - 0x10]
call dword [sym.imp.DENKIPM.dll_Ordinal_1075]
push str.8.00
lea ecx, [ebp - 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1077]
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.DENKIPM.dll_Ordinal_1244]
movzx ecx, al
test ecx, ecx
je 0x40f283
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.DENKIPM.dll_Ordinal_1086]
movzx ecx, al
test ecx, ecx
je 0x40f283
mov edx, dword [ebp - 0xc]
push edx
push 0x42c46c
mov eax, dword [0x42f100]
push eax
mov ecx, dword [0x42f0fc]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40f29f
mov edx, dword [ebp - 0xc]
push edx
push 0x42c468
mov eax, dword [0x42f100]
push eax
mov ecx, dword [0x42f0fc]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.DENKIPM.dll_Ordinal_1169]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [0x42f104]
push ecx
mov edx, dword [0x42f0fc]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.DENKIPM.dll_Ordinal_1276]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [0x42f108]
push edx
mov eax, dword [0x42f0fc]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040ed00
add esp, 4
mov dword [ebp - 0x44], 0x7d4
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040ea80
add esp, 0xc
mov edx, dword [ebp - 0x3c]
push edx
push 0x40
push 0xbc0
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00428bd0
add esp, 0x14
mov byte [ebp - 0x4a], 1
lea ecx, [ebp - 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1078]
lea ecx, [ebp - 0x10]
call dword [sym.imp.DENKIPM.dll_Ordinal_1078]
lea ecx, [ebp - 4]
call dword [sym.imp.DENKIPM.dll_Ordinal_1257]
lea ecx, [ebp - 0x38]
call fcn.0041a200
mov al, byte [ebp - 0x4a]
mov esp, ebp
pop ebp
ret