Function at 0x409240
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508246
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x5635bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf4], ecx
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14e4], ecx
mov ecx, dword [ebp - 0xf4]
call fcn.00409cb0
mov ecx, dword [ebp - 0xf4]
call fcn.0040a6e0
mov ecx, dword [ebp - 0xf4]
call fcn.0040a420
mov ecx, dword [ebp - 0xf4]
call fcn.00409fd0
mov ecx, dword [ebp - 0xf4]
call fcn.00409b90
mov ecx, dword [ebp - 0xf4]
call fcn.0040aba0
push 0x10
call fcn.004592b1
add esp, 4
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x94], 0
je 0x4092f5
mov ecx, dword [ebp - 0x94]
call fcn.004210f0
mov dword [ebp - 0xf8], eax
jmp 0x4092ff
mov dword [ebp - 0xf8], 0
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0x90], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0x90]
mov dword [eax + 0x230], ecx
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0xf4]
call fcn.00409f40
mov dword [ebp - 4], 1
push 0x511dac
lea ecx, [ebp - 0x48]
call fcn.00403ab0
push 0x511db8
lea ecx, [ebp - 0x48]
call fcn.00403ab0
push 0x511dd0
lea eax, [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xf4]
call fcn.00409f40
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x100], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x100]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.004042c0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb0]
call fcn.00401cc0
push str.Configure.xml
lea ecx, [ebp - 0x2c]
call fcn.00403ab0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x8c], 0
jmp 0x4093d9
mov ecx, dword [ebp - 0x8c]
add ecx, 1
mov dword [ebp - 0x8c], ecx
cmp dword [ebp - 0x8c], 0x40
jge 0x409441
push str.configure
mov edx, dword [ebp - 0x8c]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xf4]
lea ecx, [eax + edx + 0x2d8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40943f
mov edx, dword [ebp - 0x8c]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + edx + 0x318]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x8c]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0x50]
add ecx, dword [eax + edx + 0x31c]
mov dword [ebp - 0x4c], ecx
jmp 0x409441
jmp 0x4093ca
lea ecx, [ebp - 0x2c]
call fcn.00401cf0
push eax
lea ecx, [ebp - 0xcc]
call fcn.00401c80
mov byte [ebp - 4], 5
lea edx, [ebp - 0xcc]
push edx
lea eax, [ebp - 0x88]
push eax
call fcn.0043a630
add esp, 8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xcc]
call fcn.00401cc0
lea ecx, [ebp - 0x48]
call fcn.00401cf0
push eax
lea ecx, [ebp - 0xe8]
call fcn.00401c80
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xe8]
push ecx
lea edx, [ebp - 0x6c]
push edx
call fcn.0043a630
add esp, 8
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xe8]
call fcn.00401cc0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00403a00
push eax
lea ecx, [ebp - 0x88]
call fcn.00403a00
push eax
mov ecx, dword [ebp - 0xf4]
call fcn.0040a1d0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xec], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.00403a30
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0xf4]
call fcn.004096c0
lea ecx, [ebp - 0x2c]
call fcn.00401cf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409527
lea ecx, [ebp - 0x2c]
call fcn.00401cf0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xf4]
call fcn.004095b0
push 0x511e04
mov eax, dword [ebp - 0xf4]
add eax, 0x12c
push eax
call fcn.004640e0
add esp, 8
mov dword [ebp - 0xf0], 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x6c]
call fcn.00401c50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.00401c50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401cc0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046252a
mov esp, ebp
pop ebp
ret 4