Function at 0x404db0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422ff6
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x42f6dc]
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
push str.v:Intel
push 0x104
push 0x432090
call fcn.0040b739
add esp, 0xc
push str._tmp_0.bin
push 0x104
push 0x432090
call fcn.0040b78e
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 0xc
jmp 0x404e20
push 0x42b210
push 0x432090
call fcn.0040d9e2
add esp, 8
test eax, eax
je 0x404e41
push eax
call fcn.0040cdc0
jmp 0x4050be
mov ecx, 0xf
call fcn.00404d00
mov esi, eax
push esi
call fcn.0040ab1f
add esp, 4
mov edi, eax
push esi
push 0x40
push edi
call fcn.004103e0
add esp, 0xc
push 0x4326a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 0xc
lea ecx, [ebp - 0x188]
push 0x432090
call fcn.00402a50
push 0
push esi
push edi
lea ecx, [ebp - 0x188]
mov dword [ebp - 4], 0
call fcn.00401b90
cmp dword [ebp - 0x134], 0
lea esi, [ebp - 0x184]
jne 0x404eab
xor esi, esi
jmp 0x404ed2
lea ecx, [ebp - 0x184]
call fcn.00402ff0
push dword [ebp - 0x134]
xor ecx, ecx
test al, al
cmove esi, ecx
call fcn.0040cdc0
xor ecx, ecx
add esp, 4
test eax, eax
cmovne esi, ecx
lea eax, [ebp - 0x180]
mov dword [ebp - 0x178], eax
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x170]
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x160]
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x154], eax
mov eax, dword [0x432084]
mov byte [ebp - 0x138], 0
mov byte [ebp - 0x13f], 0
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x144], 0
test esi, esi
jne 0x404fb8
mov eax, dword [ebp - 0x188]
lea ecx, [ebp - 0x188]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], esi
jne 0x404fa6
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x404fb8
push 0
call fcn.00404aa0
push 0x4326a8
call ebx
push edi
call fcn.0040b7f1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x188]
add esp, 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x18c], eax
cmp dword [ebp - 0x134], 0
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
je 0x405039
mov edx, dword [ebp - 0x178]
lea eax, [ebp - 0x140]
cmp dword [edx], eax
jne 0x405039
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
mov dword [edx], eax
mov eax, dword [ebp - 0x168]
mov dword [eax], ecx
mov eax, dword [ebp - 0x158]
sub ecx, ecx
mov dword [eax], ecx
cmp byte [ebp - 0x138], 0
je 0x40504d
lea ecx, [ebp - 0x184]
call fcn.00402ea0
mov esi, dword [ebp - 0x150]
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
test esi, esi
je 0x405081
mov ecx, dword [esi]
test ecx, ecx
je 0x405078
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x405078
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
push esi
call fcn.0040b9d9
add esp, 4
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x18c], eax
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::ios_base.0
call fcn.0040aaa0
add esp, 4
push 0x4326a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 8
lea ecx, [ebp - 0xe0]
push 0x20
push 0x432090
call fcn.00402020
push 0
push 0xa
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 4], 1
call fcn.00401cf0
cmp dword [ebp - 0x80], 0
lea esi, [ebp - 0xd0]
jne 0x40510b
xor esi, esi
jmp 0x40512f
lea ecx, [ebp - 0xd0]
call fcn.00402ff0
push dword [ebp - 0x80]
xor ecx, ecx
test al, al
cmove esi, ecx
call fcn.0040cdc0
xor ecx, ecx
add esp, 4
test eax, eax
cmovne esi, ecx
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
mov eax, dword [0x432084]
mov byte [ebp - 0x84], 0
mov byte [ebp - 0x8b], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x90], 0
test esi, esi
jne 0x40520f
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], esi
jne 0x405200
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
jne 0x4053f6
push 0x4326a8
call ebx
xor eax, eax
jmp 0x405220
cmp byte [ebp + eax - 0x1c], 0
jne 0x405474
inc eax
cmp eax, 0xa
jl 0x405220
push 0x432090
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xe4], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xd0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
test eax, eax
je 0x4052ae
mov edx, dword [ebp - 0xc4]
lea ecx, [ebp - 0x8c]
cmp dword [edx], ecx
jne 0x4052ae
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x94]
mov dword [edx], eax
mov eax, dword [ebp - 0xb4]
mov dword [eax], ecx
mov eax, dword [ebp - 0xa4]
sub ecx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x80]
cmp byte [ebp - 0x84], 0
je 0x405383
test eax, eax
je 0x4052d5
lea ecx, [ebp - 0xd0]
call fcn.00402ff0
push dword [ebp - 0x80]
call fcn.0040cdc0
add esp, 4
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
mov eax, dword [0x432084]
mov byte [ebp - 0x84], 0
mov byte [ebp - 0x8b], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x90], 0
mov esi, dword [ebp - 0x9c]
mov dword [ebp - 0xd0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
test esi, esi
je 0x4053b7
mov ecx, dword [esi]
test ecx, ecx
je 0x4053ae
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4053ae
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
push esi
call fcn.0040b9d9
add esp, 4
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0xe4], eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], vtable.std::ios_base.0
call fcn.0040aaa0
add esp, 4
jmp 0x404e20
mov ecx, dword [ecx + 0x10]
and ecx, eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x430fdc
push eax
test cl, 4
je 0x405433
push str.ios_base::badbit_set
lea ecx, [ebp - 0x19c]
call fcn.00404300
push 0x42d78c
lea eax, [ebp - 0x19c]
push eax
call fcn.0040e25b
test cl, 2
lea ecx, [ebp - 0x19c]
je 0x405459
push str.ios_base::failbit_set
call fcn.00404300
push 0x42d78c
lea eax, [ebp - 0x19c]
push eax
call fcn.0040e25b
push str.ios_base::eofbit_set
call fcn.00404300
push 0x42d78c
lea eax, [ebp - 0x19c]
push eax
call fcn.0040e25b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xe4], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xd0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
test eax, eax
je 0x4054e6
mov edx, dword [ebp - 0xc4]
lea ecx, [ebp - 0x8c]
cmp dword [edx], ecx
jne 0x4054e6
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x94]
mov dword [edx], eax
mov eax, dword [ebp - 0xb4]
mov dword [eax], ecx
mov eax, dword [ebp - 0xa4]
sub ecx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x80]
cmp byte [ebp - 0x84], 0
je 0x4055bb
test eax, eax
je 0x40550d
lea ecx, [ebp - 0xd0]
call fcn.00402ff0
push dword [ebp - 0x80]
call fcn.0040cdc0
add esp, 4
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
mov eax, dword [0x432084]
mov byte [ebp - 0x84], 0
mov byte [ebp - 0x8b], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x90], 0
mov esi, dword [ebp - 0x9c]
mov dword [ebp - 0xd0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
test esi, esi
je 0x4055ef
mov ecx, dword [esi]
test ecx, ecx
je 0x4055e6
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4055e6
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
push esi
call fcn.0040b9d9
add esp, 4
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0xe4], eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], vtable.std::ios_base.0
call fcn.0040aaa0
add esp, 4
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.0040b6df
mov esp, ebp
pop ebp
ret