Function at 0x10018490
Capabilities:
Delete file
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b41b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x1003a018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
lea eax, [ebp - 0x24]
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x84], ebx
mov esi, ecx
mov dword [ebp - 0x80], edi
call dword [sym.imp.MSVCR100.dll_tmpnam]
mov eax, esi
mov dword [ebp - 0x4c], edi
add esp, 4
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100184f1
sub eax, edi
push esi
mov edi, eax
lea esi, [ebp - 0x5c]
call fcn.10023260
push 0x100345dc
mov ecx, esi
push ecx
lea edx, [ebp - 0x78]
mov edi, 1
push edx
mov dword [ebp - 4], edi
call fcn.10023880
push eax
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10024ad0
add esp, 0x10
mov byte [ebp - 4], 4
cmp dword [ebp - 0x64], 0x10
jb 0x10018548
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x40]
xor esi, esi
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], esi
mov byte [ebp - 0x78], 0
jae 0x10018564
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVCR100.dll_system]
add esp, 4
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x134]
push edx
call fcn.100220f0
mov byte [ebp - 4], 5
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], esi
mov byte [ebx], 0
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x80], edi
mov edi, dword [eax + 4]
mov ecx, dword [ebp + edi - 0x128]
lea eax, [ebp + edi - 0x134]
and cl, 6
movsx edx, cl
neg edx
sbb edx, edx
not edx
test eax, edx
je 0x10018624
test byte [ebp + edi - 0x128], 1
jne 0x10018618
lea ecx, [ebp - 0x134]
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 - 0x7c], al
cmp edx, 0x10
jb 0x100185de
mov ecx, dword [ebx]
jmp 0x100185e0
mov ecx, ebx
mov eax, dword [ebx + 0x10]
add eax, ecx
cmp edx, 0x10
jb 0x100185ee
mov ecx, dword [ebx]
jmp 0x100185f0
mov ecx, ebx
cmp eax, esi
jne 0x100185f8
xor eax, eax
jmp 0x100185fa
sub eax, ecx
mov ecx, dword [ebp - 0x7c]
push ecx
mov edi, ebx
call fcn.10023340
mov edx, dword [ebp - 0x134]
mov eax, dword [edx + 4]
test byte [ebp + eax - 0x128], 1
je 0x100185c3
lea ecx, [ebp - 0x134]
push ecx
call fcn.100221e0
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.MSVCR100.dll_remove]
mov ecx, dword [ebp - 0x134]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0xcc]
add esp, 4
mov dword [ebp - 0x7c], 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 - 0x124]
mov byte [ebp - 4], 6
call fcn.10021640
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x134]
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 - 0x134], edx
lea ecx, [ebp - 0xcc]
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 - 0x2c], edi
jb 0x1001869a
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], esi
mov byte [ebp - 0x40], 0
cmp dword [ebp - 0x48], edi
jb 0x100186ba
mov ecx, dword [ebp - 0x5c]
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
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10029640
mov esp, ebp
pop ebp
ret