Function at 0x403165
Capabilities:
Delete file

Disassembly:
mov eax, 0x412f2a
call fcn.004123c0
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 0x403318
mov dword [ebp - 0x14], esi
lea edi, [esi + 4]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
mov dword [ebp - 0x18], 1
jmp 0x4031d7
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, ebx
je 0x40325e
cmp word [eax], bx
je 0x40325e
mov ebx, dword [sym.imp.MSVCRT.dll__wcsicmp]
push str._clnx
push eax
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x403218
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x18], eax
jge 0x403277
mov ebx, dword [edi]
test ebx, ebx
je 0x403277
cmp word [ebx], 0
je 0x403277
push ebx
call esi
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x40]
jmp 0x403247
mov eax, dword [ebp - 0x14]
push 0x41d140
push dword [eax]
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x40325e
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x18], eax
jge 0x403277
mov ebx, dword [edi]
test ebx, ebx
je 0x403277
cmp word [ebx], 0
je 0x403277
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 0x4031d5
cmp byte [ebp - 0xd], 0
je 0x403318
cmp dword [ebp - 0x38], 0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.MSVCRT.dll__waccess]
je 0x4032d3
mov eax, dword [ebp - 0x3c]
xor esi, esi
cmp eax, esi
jne 0x4032a1
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 0x4032d3
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4032b7
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 0x4032d3
push 0x1f4
call ebx
inc esi
cmp esi, 0x3e8
jl 0x4032ab
xor esi, esi
cmp dword [ebp - 0x28], esi
je 0x403318
mov eax, dword [ebp - 0x2c]
cmp eax, esi
jne 0x4032e6
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 0x403318
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4032fc
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 0x403318
push 0x1f4
call ebx
inc esi
cmp esi, 0x3e8
jl 0x4032f0
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