Function at 0x407f37
Capabilities:
Check if file exists
Delete file
Print debug messages
Terminate process

Disassembly:
push 0x868
mov eax, 0x45c9de
call fcn.00454457
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x82c]
push 1
mov edx, ebx
mov dword [ebp - 0x850], ebx
call fcn.004031dc
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0040b3ee
lea eax, [ebp - 0x82c]
push eax
call fcn.00404837
cmp dword [ebp - 0x818], 8
lea eax, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
test eax, eax
jne 0x407fa4
mov ecx, dword [ebx + 0xc]
inc eax
push eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
jmp 0x408165
lea ecx, [ebp - 0x82c]
call fcn.0040b0a6
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x874], esi
lea edi, [ebp - 0x870]
cmp dword [ebp - 0x818], 8
rep stosd dword es:[edi], eax
push 0x14
stosw word es:[edi], ax
pop eax
mov word [ebp - 0x864], ax
lea eax, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
push 3
mov dword [ebp - 0x86c], eax
lea eax, [ebp - 0x874]
pop edi
push eax
mov dword [ebp - 0x868], esi
mov dword [ebp - 0x870], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, eax
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x84c], ecx
sete al
mov dword [ebp - 0x848], eax
test eax, eax
jne 0x408152
cmp dword [ebp - 0x818], 8
lea ecx, [ebp - 0x82c]
lea eax, [ebp - 0x844]
cmovae ecx, dword [ebp - 0x82c]
push ecx
push 0x465d48
push eax
call fcn.0040174a
add esp, 8
mov byte [ebp - 4], 1
mov eax, esp
lea ecx, [ebp - 0x844]
mov dword [eax], 0x465da8
cmp dword [ebp - 0x830], 8
cmovae ecx, dword [ebp - 0x844]
push ecx
mov eax, esp
mov dword [eax], ecx
call fcn.0040d584
pop ecx
pop ecx
sub eax, edi
je 0x4081ae
sub eax, 1
je 0x40817d
sub eax, 1
jne 0x408096
mov dword [ebp - 0x848], 1
mov esi, str.hwang
lea edi, [ebp - 0x814]
push 0x7f2
lea eax, [ebp - 0x806]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00432310
add esp, 0xc
lea eax, [ebp - 0x82c]
cmp dword [ebp - 0x818], 8
cmovae eax, dword [ebp - 0x82c]
push eax
lea eax, [ebp - 0x808]
push str.Delete__s_failed__r_n
push eax
call fcn.0040320e
mov ebx, dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
lea eax, [ebp - 0x814]
add esp, 0xc
push eax
call ebx
mov esi, str.hwang
lea edi, [ebp - 0x814]
push 0x7f2
lea eax, [ebp - 0x806]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
push esi
push eax
call fcn.00432310
add esp, 0xc
lea eax, [ebp - 0x808]
push dword [ebp - 0x84c]
push str.SHFileOperation_error_code_:__x_r_n
push eax
call fcn.0040320e
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
call ebx
push esi
push 1
lea ecx, [ebp - 0x844]
call fcn.00401bd2
mov ebx, dword [ebp - 0x850]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x848]
push esi
mov dword [eax], ecx
xor ecx, ecx
inc ecx
mov dword [eax + 8], ecx
push ecx
add dword [ebx + 0xc], 0x10
lea ecx, [ebp - 0x82c]
call fcn.00401bd2
xor eax, eax
inc eax
call fcn.00454401
ret
push ebx
call fcn.00407f37
mov edx, dword [ebx + 0xc]
pop ecx
xor ecx, ecx
test eax, eax
push esi
setne cl
mov dword [edx + 8], 1
mov dword [edx], ecx
lea ecx, [ebp - 0x844]
add dword [ebx + 0xc], 0x10
push 1
call fcn.00401bd2
push esi
push 1
jmp 0x408169
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]