Function at 0x402651
Capabilities:
Delete file

Disassembly:
mov eax, 0x4118ee
call fcn.00410d20
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 0x402804
mov dword [ebp - 0x14], esi
lea edi, [esi + 4]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
mov dword [ebp - 0x18], 1
jmp 0x4026c3
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, ebx
je 0x40274a
cmp word [eax], bx
je 0x40274a
mov ebx, dword [sym.imp.MSVCRT.dll__wcsicmp]
push str._clnx
push eax
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x402704
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x18], eax
jge 0x402763
mov ebx, dword [edi]
test ebx, ebx
je 0x402763
cmp word [ebx], 0
je 0x402763
push ebx
call esi
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x40]
jmp 0x402733
mov eax, dword [ebp - 0x14]
push 0x41b128
push dword [eax]
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x40274a
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x18], eax
jge 0x402763
mov ebx, dword [edi]
test ebx, ebx
je 0x402763
cmp word [ebx], 0
je 0x402763
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 0x4026c1
cmp byte [ebp - 0xd], 0
je 0x402804
cmp dword [ebp - 0x38], 0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.MSVCRT.dll__waccess]
je 0x4027bf
mov eax, dword [ebp - 0x3c]
xor esi, esi
cmp eax, esi
jne 0x40278d
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 0x4027bf
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4027a3
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 0x4027bf
push 0x1f4
call ebx
inc esi
cmp esi, 0x3e8
jl 0x402797
xor esi, esi
cmp dword [ebp - 0x28], esi
je 0x402804
mov eax, dword [ebp - 0x2c]
cmp eax, esi
jne 0x4027d2
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 0x402804
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4027e8
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 0x402804
push 0x1f4
call ebx
inc esi
cmp esi, 0x3e8
jl 0x4027dc
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