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

Disassembly:
push 0xffffffffffffffff
push 0x453981
mov eax, dword fs:[0]
push eax
sub esp, 0x868
mov eax, dword [0x47a550]
xor eax, esp
mov dword [esp + 0x860], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47a550]
xor eax, esp
push eax
lea eax, [esp + 0x87c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x88c]
xor ebx, ebx
inc ebx
push ebx
mov edx, ebp
lea ecx, [esp + 0x48]
call fcn.004027ac
pop ecx
xor esi, esi
mov dword [esp + 0x884], esi
call fcn.004099fc
lea eax, [esp + 0x44]
push eax
call fcn.00403061
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406b9e
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
jmp 0x406d1a
push ecx
lea ecx, [esp + 0x48]
call fcn.0040bcad
push 6
pop ecx
xor eax, eax
cmp dword [esp + 0x58], 8
mov dword [esp + 0x24], esi
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x14
pop eax
mov word [esp + 0x34], ax
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push 3
mov dword [esp + 0x30], eax
pop edi
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, eax
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test eax, eax
jne 0x406d0c
cmp dword [esp + 0x58], 8
lea ecx, [esp + 0x44]
cmovae ecx, dword [esp + 0x44]
push ecx
lea eax, [esp + 0x60]
push 0x45cd48
push eax
call fcn.00401898
add esp, 8
mov byte [esp + 0x888], bl
mov eax, esp
lea ecx, [esp + 0x60]
mov dword [eax], 0x45cda8
cmp dword [esp + 0x74], 8
cmovae ecx, dword [esp + 0x60]
push ecx
mov eax, esp
mov dword [eax], ecx
call fcn.0040bad1
pop ecx
pop ecx
sub eax, edi
je 0x406d7d
dec eax
je 0x406d56
dec eax
jne 0x406c62
mov dword [esp + 0x18], ebx
mov esi, str.hwang
lea edi, [esp + 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0x86]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0042e030
add esp, 0xc
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push eax
lea eax, [esp + 0x84]
push str.Delete__s_failed__r_n
push eax
call fcn.0042e0c0
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0xc
lea eax, [esp + 0x74]
push eax
call ebx
mov esi, str.hwang
lea edi, [esp + 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x7f2
xor esi, esi
lea eax, [esp + 0x86]
push esi
push eax
call fcn.0042e030
add esp, 0xc
lea eax, [esp + 0x80]
push dword [esp + 0x1c]
push str.SHFileOperation_error_code_:__x_r_n
push eax
call fcn.0042e0c0
add esp, 0xc
lea eax, [esp + 0x74]
push eax
call ebx
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [esp + 0x64]
call fcn.00401c90
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp dword [esp + 0x18], eax
setne al
mov dword [ecx], eax
mov dword [ecx + 8], ebx
add dword [ebp + 0xc], 0x10
push esi
push ebx
lea ecx, [esp + 0x4c]
call fcn.00401c90
mov eax, ebx
mov ecx, dword [esp + 0x87c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x860]
xor ecx, esp
call fcn.0042d16b
add esp, 0x874
ret
push ebp
call fcn.00406b11
mov edx, dword [ebp + 0xc]
pop ecx
xor ecx, ecx
test eax, eax
setne cl
push esi
mov dword [edx + 8], ebx
push ebx
mov dword [edx], ecx
add dword [ebp + 0xc], 0x10
lea ecx, [esp + 0x64]
call fcn.00401c90
jmp 0x406d21
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]