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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42052d
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x42a024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x87c], ecx
push 4
lea ecx, [ebp - 0x818]
call fcn.00402890
lea ecx, [ebp - 0x818]
call fcn.004011b0
mov dword [ebp - 4], 0
push str.WhaleBots.zip
mov eax, dword [ebp - 0x87c]
add eax, 0x800
push eax
push 0x421288
lea ecx, [ebp - 0x818]
push ecx
call fcn.004017e0
add esp, 0x10
lea ecx, [ebp - 0x818]
call fcn.00401350
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4024f2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x818]
call fcn.004012e0
jmp 0x40286d
lea ecx, [ebp - 0x870]
call fcn.004080b0
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x818]
call fcn.00401350
push eax
lea ecx, [ebp - 0x870]
call fcn.00408790
test eax, eax
je 0x4027e9
lea ecx, [ebp - 0x870]
call fcn.00408590
mov dword [ebp - 0x884], eax
mov dword [ebp - 0x874], 0
jmp 0x40254e
mov edx, dword [ebp - 0x874]
add edx, 1
mov dword [ebp - 0x874], edx
mov eax, dword [ebp - 0x874]
cmp eax, dword [ebp - 0x884]
jae 0x4027ca
push 0x400
lea ecx, [ebp - 0x810]
push ecx
mov edx, dword [ebp - 0x874]
push edx
lea ecx, [ebp - 0x870]
call fcn.004085e0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x878], eax
push 0x421294
mov ecx, dword [ebp - 0x878]
push ecx
call fcn.0040ccf3
add esp, 8
test eax, eax
jne 0x4025ab
jmp 0x40253f
push 4
lea ecx, [ebp - 0x814]
call fcn.00402890
lea ecx, [ebp - 0x814]
call fcn.004011b0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x810]
push edx
mov eax, dword [ebp - 0x87c]
add eax, 0x800
push eax
push 0x4212b0
lea ecx, [ebp - 0x814]
push ecx
call fcn.004017e0
add esp, 0x10
push 0x4212bc
push 0x4212c0
lea ecx, [ebp - 0x814]
call fcn.00402150
lea ecx, [ebp - 0x814]
call fcn.00401350
push eax
call fcn.00408820
add esp, 4
test eax, eax
je 0x40263d
push ecx
mov ecx, esp
mov dword [ebp - 0x888], esp
lea edx, [ebp - 0x814]
push edx
call fcn.00401190
call fcn.00408c30
add esp, 4
jmp 0x4027b6
push 4
lea ecx, [ebp - 0x824]
call fcn.00402890
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x824]
call fcn.00401190
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x824]
call fcn.00401960
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x824]
call fcn.00401350
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4026a5
push ecx
mov ecx, esp
mov dword [ebp - 0x88c], esp
lea edx, [ebp - 0x824]
push edx
call fcn.00401190
call fcn.00408c30
add esp, 4
lea ecx, [ebp - 0x814]
call fcn.00401350
push eax
mov eax, dword [ebp - 0x874]
push eax
lea ecx, [ebp - 0x870]
call fcn.004089a0
test eax, eax
jne 0x4027a7
push 0x4212c4
mov ecx, dword [ebp - 0x878]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x40272e
lea ecx, [ebp - 0x819]
call fcn.00401630
mov byte [ebp - 4], 4
push 1
mov edx, dword [ebp - 0x878]
push edx
call fcn.00408ae0
add esp, 8
mov dword [ebp - 0x880], eax
cmp dword [ebp - 0x880], 0
jbe 0x40271f
mov eax, dword [ebp - 0x880]
push eax
call fcn.00408bf0
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x819]
call fcn.00401300
push 4
lea ecx, [ebp - 0x820]
call fcn.00402890
lea ecx, [ebp - 0x820]
call fcn.004011b0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x878]
push ecx
push str.Can_not_replace__s_file._Try_again__
lea edx, [ebp - 0x820]
push edx
call fcn.004017e0
add esp, 0xc
push 0x31
push 0
lea ecx, [ebp - 0x820]
call fcn.00401350
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
je 0x402793
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x820]
call fcn.004012e0
jmp 0x4027a7
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x820]
call fcn.004012e0
jmp 0x4026a5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x824]
call fcn.004012e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x814]
call fcn.004012e0
jmp 0x40253f
lea ecx, [ebp - 0x870]
call fcn.004082e0
lea ecx, [ebp - 0x818]
call fcn.00401350
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40284c
push 4
lea ecx, [ebp - 0x828]
call fcn.00402890
lea ecx, [ebp - 0x828]
call fcn.004011b0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x818]
call fcn.00401960
push eax
push str.Can_not_open__s
lea eax, [ebp - 0x828]
push eax
call fcn.004017e0
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x828]
call fcn.00401350
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x828]
call fcn.004012e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x870]
call fcn.00401300
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x818]
call fcn.004012e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409345
mov esp, ebp
pop ebp
ret