Function at 0x403480
Capabilities:
Delete file
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b1f8
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x410018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x80], ebx
mov esi, ecx
mov dword [ebp - 0x7c], edi
call dword [sym.imp.MSVCR100.dll_tmpnam]
mov eax, esi
mov dword [ebp - 0x48], edi
add esp, 4
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4034e0
sub eax, edi
mov edi, eax
mov eax, esi
lea esi, [ebp - 0x58]
call fcn.00408250
push str.___
mov ecx, esi
push ecx
lea edx, [ebp - 0x74]
mov edi, 1
push edx
mov dword [ebp - 4], edi
call fcn.004086e0
push eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.004089d0
add esp, 0x10
mov byte [ebp - 4], 4
cmp dword [ebp - 0x60], 0x10
jb 0x403538
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x3c]
xor esi, esi
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], esi
mov byte [ebp - 0x74], 0
jae 0x403554
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCR100.dll_system]
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x130]
push edx
call fcn.004071d0
mov byte [ebp - 4], 5
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], esi
mov byte [ebx], 0
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x7c], edi
mov edi, dword [eax + 4]
mov ecx, dword [ebp + edi - 0x124]
lea eax, [ebp + edi - 0x130]
and cl, 6
movsx edx, cl
neg edx
sbb edx, edx
not edx
test eax, edx
je 0x403614
test byte [ebp + edi - 0x124], 1
jne 0x403608
lea ecx, [ebp - 0x130]
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
mov edx, dword [ebx + 0x14]
mov byte [ebp - 0x78], al
cmp edx, 0x10
jb 0x4035ce
mov ecx, dword [ebx]
jmp 0x4035d0
mov ecx, ebx
mov eax, dword [ebx + 0x10]
add eax, ecx
cmp edx, 0x10
jb 0x4035de
mov ecx, dword [ebx]
jmp 0x4035e0
mov ecx, ebx
cmp eax, esi
jne 0x4035e8
xor eax, eax
jmp 0x4035ea
sub eax, ecx
mov ecx, dword [ebp - 0x78]
push ecx
mov edi, ebx
call fcn.00408320
mov edx, dword [ebp - 0x130]
mov eax, dword [edx + 4]
test byte [ebp + eax - 0x124], 1
je 0x4035b3
lea ecx, [ebp - 0x130]
push ecx
call fcn.004072c0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.MSVCR100.dll_remove]
mov ecx, dword [ebp - 0x130]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0xc8]
add esp, 4
mov dword [ebp - 0x78], eax
mov dword [ebp + edx - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 6
call fcn.004067d0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 4]
mov edx, dword [sym.imp.MSVCP100.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov dword [ebp + ecx - 0x130], edx
lea ecx, [ebp - 0xc8]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov edi, 0x10
cmp dword [ebp - 0x28], edi
jb 0x40368a
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x3c], 0
cmp dword [ebp - 0x44], edi
jb 0x4036aa
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409fb6
mov esp, ebp
pop ebp
ret