Function at 0x402be0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x42c050]
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 eax, dword [ebp + 8]
mov esi, edx
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
push 1
lea edi, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.00404790
mov edi, eax
lea eax, [ebp - 0x30]
cmp eax, edi
je 0x402ca6
cmp dword [ebp - 0x1c], 8
jb 0x402c57
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
cmp dword [edi + 0x14], 8
jae 0x402c84
mov eax, dword [edi + 0x10]
inc eax
add eax, eax
push eax
lea ecx, [ebp - 0x30]
push edi
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
jmp 0x402c8b
mov edx, dword [edi]
mov dword [ebp - 0x30], edx
mov dword [edi], ebx
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x1c], ecx
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], dx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x38], 8
jb 0x402cbc
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x402cc8
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00405060
mov byte [ebp - 4], 2
mov eax, dword [esi]
mov edx, dword [esi + 4]
push ebx
sub edx, eax
push edx
push eax
lea ecx, [ebp - 0x10c]
call dword [sym.imp.MSVCP100.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__]
lea esi, [ebp - 0x104]
cmp dword [ebp - 0xb0], ebx
je 0x402d1e
mov edi, esi
call fcn.004062d0
test al, al
jne 0x402d0a
xor esi, esi
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
test eax, eax
je 0x402d20
xor esi, esi
lea ecx, [ebp - 0x104]
mov byte [ebp - 0xb4], bl
mov byte [ebp - 0xbb], bl
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov ecx, dword [0x430fb8]
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xc0], ebx
cmp esi, ebx
jne 0x402d6d
mov edx, dword [ebp - 0x11c]
mov ecx, dword [edx + 4]
push ebx
push 2
lea ecx, [ebp + ecx - 0x11c]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [ebp - 0x30]
mov edi, 8
cmp dword [ebp - 0x1c], edi
jae 0x402d7d
lea eax, [ebp - 0x30]
mov esi, dword [sym.imp.MSVCR100.dll__waccess_s]
push ebx
push eax
call esi
add esp, 8
test eax, eax
je 0x402e43
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0xac]
mov edi, 0x103
mov dword [ebp - 0x58], eax
mov dword [ebp + edx - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 3
call fcn.00405150
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xac]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [ebp - 0x20], ebx
je 0x402e10
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x402def
lea eax, [ebp - 0x30]
push ebx
push eax
call esi
add esp, 8
test eax, eax
jne 0x402e10
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x402e06
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll__wremove]
add esp, 4
cmp dword [ebp - 0x1c], 8
jb 0x402e23
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
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.0041d5b4
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], edi
jae 0x402e4e
lea eax, [ebp - 0x30]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x402eb4
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0xac]
mov dword [ebp - 0x60], 0x103
mov dword [ebp - 0x58], eax
mov dword [ebp + edx - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 4
call fcn.00405150
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xac]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov edi, dword [ebp - 0x60]
jmp 0x402dde
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x64]
push esi
call fcn.00403940
test eax, eax
jne 0x402f36
lea edi, [eax + 1]
mov eax, dword [esi + 0x18]
push 0xffffffffffffffff
push eax
mov word [ebp - 0x58], bx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
push ecx
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 0xf
call fcn.00401b90
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edx
lea ecx, [ebp - 0x54]
mov edx, esi
mov byte [ebp - 4], 5
call fcn.00407f20
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.00407830
cmp dword [ebp - 0x40], 0x10
jb 0x402f2a
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor ebx, ebx
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0xac]
mov dword [ebp - 0x58], eax
mov dword [ebp + edx - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
lea eax, [ebp - 0x104]
mov dword [ebp - 0x64], eax
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
mov byte [ebp - 4], 7
cmp dword [ebp - 0xb0], ebx
je 0x402f9d
mov ecx, dword [ebp - 0xf4]
lea edx, [ebp - 0xbc]
cmp dword [ecx], edx
jne 0x402f9d
mov eax, dword [ebp - 0xc4]
push eax
push eax
mov eax, dword [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x104]
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
cmp byte [ebp - 0xb4], bl
je 0x402ff8
cmp dword [ebp - 0xb0], ebx
je 0x402fc8
lea edi, [ebp - 0x104]
call fcn.004062d0
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x104]
mov byte [ebp - 0xb4], bl
mov byte [ebp - 0xbb], bl
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov edx, dword [0x430fb8]
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xc0], ebx
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xac]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov edi, dword [ebp - 0x60]
jmp 0x402e10