Function at 0x403620
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c75b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x58], eax
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], cx
push 1
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ecx
push eax
call fcn.00404f70
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4036f8
cmp dword [ebp - 0x14], 8
jb 0x40369b
push dword [ebp - 0x28]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [esi + 0x14], 8
jae 0x4036ce
mov eax, dword [esi + 0x10]
inc eax
je 0x4036d9
add eax, eax
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x4036d9
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x2c], 8
jb 0x403706
push dword [ebp - 0x40]
call edi
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x118]
cmovae eax, dword [ebp - 0x28]
sub esp, 0xc
push eax
call fcn.004057a0
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 1
push 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x108]
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
cmp dword [ebp - 0xb0], 0
lea esi, [ebp - 0x100]
jne 0x403751
xor esi, esi
jmp 0x403779
lea ecx, [ebp - 0x100]
call fcn.00406a60
push dword [ebp - 0xb0]
xor ecx, ecx
test al, al
cmove esi, ecx
call dword [sym.imp.MSVCR120.dll_fclose]
xor ecx, ecx
add esp, 4
test eax, eax
cmovne esi, ecx
lea ecx, [ebp - 0x100]
mov byte [ebp - 0xb4], 0
mov byte [ebp - 0xbb], 0
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x427e94]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xc0], 0
test esi, esi
jne 0x4037d0
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x118]
push esi
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.MSVCR120.dll__waccess_s]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call esi
add esp, 8
test eax, eax
jne 0x40380c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x80
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40389a
mov eax, dword [ebp - 0x118]
mov ebx, 0x103
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x11c], eax
lea ecx, [ebp - 0x100]
call fcn.004058a0
lea ecx, [ebp - 0xf8]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [ebp - 0x18], 0
je 0x403a12
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call esi
add esp, 8
test eax, eax
jne 0x403a12
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR120.dll__wremove]
add esp, 4
jmp 0x403a12
push dword [ebp - 0x54]
mov esi, dword [ebp - 0x4c]
mov ecx, esi
call fcn.00404330
test eax, eax
jne 0x40391f
push 0xffffffffffffffff
push dword [esi + 0x10]
mov word [ebp - 0x4c], ax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push 0
push dword [ebp - 0x54]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.004019f0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.00408160
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.00408190
cmp dword [ebp - 0x34], 0x10
jb 0x403916
push dword [ebp - 0x48]
call edi
add esp, 4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x11c], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
test ecx, ecx
je 0x40398e
mov eax, dword [ebp - 0xf4]
lea edx, [ebp - 0xbc]
cmp dword [eax], edx
jne 0x40398e
push dword [ebp - 0xc4]
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0x100]
push eax
push eax
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov ecx, dword [ebp - 0xb0]
cmp byte [ebp - 0xb4], 0
je 0x4039ee
test ecx, ecx
je 0x4039b5
lea ecx, [ebp - 0x100]
call fcn.00406a60
push dword [ebp - 0xb0]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x100]
mov byte [ebp - 0xb4], 0
mov byte [ebp - 0xbb], 0
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x427e94]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xc0], 0
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xf8]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [ebp - 0x14], 8
jb 0x403a20
push dword [ebp - 0x28]
call edi
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 - 0x10]
xor ecx, ebp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret 8