Function at 0x4046d8
Capabilities:
Delete file

Disassembly:
mov eax, 0x430a3e
call fcn.0041aad0
sub esp, 0x34
and byte [ebp - 0xd], 0
push ebx
push esi
push edi
call dword [sym.imp.MSVCRT.dll___p___wargv]
mov esi, dword [eax]
call dword [sym.imp.MSVCRT.dll___p___argc]
mov edi, dword [eax]
mov al, byte [ebp - 0xd]
xor ebx, ebx
lea ecx, [ebp - 0x40]
push ebx
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x40], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov al, byte [ebp - 0xd]
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x30], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
cmp edi, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
jle 0x40488b
mov dword [ebp - 0x14], esi
lea edi, [esi + 4]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
mov dword [ebp - 0x18], 1
jmp 0x40474a
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, ebx
je 0x4047d1
cmp word [eax], bx
je 0x4047d1
mov ebx, dword [sym.imp.MSVCRT.dll__wcsicmp]
push str._clnx
push eax
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x40478b
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x18], eax
jge 0x4047ea
mov ebx, dword [edi]
test ebx, ebx
je 0x4047ea
cmp word [ebx], 0
je 0x4047ea
push ebx
call esi
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x40]
jmp 0x4047ba
mov eax, dword [ebp - 0x14]
push 0x44716c
push dword [eax]
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x4047d1
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x18], eax
jge 0x4047ea
mov ebx, dword [edi]
test ebx, ebx
je 0x4047ea
cmp word [ebx], 0
je 0x4047ea
push ebx
call esi
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
inc dword [ebp - 0x1c]
add dword [ebp - 0x14], 4
add edi, 4
inc dword [ebp - 0x18]
mov byte [ebp - 0xd], 1
inc dword [ebp - 0x1c]
add dword [ebp - 0x14], 4
mov eax, dword [ebp - 0x1c]
add edi, 4
inc dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jl 0x404748
cmp byte [ebp - 0xd], 0
je 0x40488b
cmp dword [ebp - 0x38], 0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.MSVCRT.dll__waccess]
je 0x404846
mov eax, dword [ebp - 0x3c]
xor esi, esi
cmp eax, esi
jne 0x404814
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push esi
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x404846
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x40482a
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll__wremove]
test eax, eax
pop ecx
je 0x404846
push 0x1f4
call ebx
inc esi
cmp esi, 0x3e8
jl 0x40481e
xor esi, esi
cmp dword [ebp - 0x28], esi
je 0x40488b
mov eax, dword [ebp - 0x2c]
cmp eax, esi
jne 0x404859
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push esi
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x40488b
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40486f
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll__wremove]
test eax, eax
pop ecx
je 0x40488b
push 0x1f4
call ebx
inc esi
cmp esi, 0x3e8
jl 0x404863
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret