Function at 0x40317a
Capabilities:
Delete file

Disassembly:
mov eax, 0x413516
call fcn.00411bd0
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 0x40332d
mov dword [ebp - 0x14], esi
lea edi, [esi + 4]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
mov dword [ebp - 0x18], 1
jmp 0x4031ec
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, ebx
je 0x403273
cmp word [eax], bx
je 0x403273
mov ebx, dword [sym.imp.MSVCRT.dll__wcsicmp]
push str._clnx
push eax
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x40322d
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x18], eax
jge 0x40328c
mov ebx, dword [edi]
test ebx, ebx
je 0x40328c
cmp word [ebx], 0
je 0x40328c
push ebx
call esi
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x40]
jmp 0x40325c
mov eax, dword [ebp - 0x14]
push 0x41d140
push dword [eax]
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x403273
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x18], eax
jge 0x40328c
mov ebx, dword [edi]
test ebx, ebx
je 0x40328c
cmp word [ebx], 0
je 0x40328c
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 0x4031ea
cmp byte [ebp - 0xd], 0
je 0x40332d
cmp dword [ebp - 0x38], 0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.MSVCRT.dll__waccess]
je 0x4032e8
mov eax, dword [ebp - 0x3c]
xor esi, esi
cmp eax, esi
jne 0x4032b6
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 0x4032e8
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4032cc
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 0x4032e8
push 0x1f4
call ebx
inc esi
cmp esi, 0x3e8
jl 0x4032c0
xor esi, esi
cmp dword [ebp - 0x28], esi
je 0x40332d
mov eax, dword [ebp - 0x2c]
cmp eax, esi
jne 0x4032fb
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 0x40332d
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x403311
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 0x40332d
push 0x1f4
call ebx
inc esi
cmp esi, 0x3e8
jl 0x403305
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