Function at 0x404dc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4234a6
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x42e6dc]
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.l:WinDDK
push 0x104
push 0x431090
call fcn.0040bc49
add esp, 0xc
push str._tmp_0.bin
push 0x104
push 0x431090
call fcn.0040bc9e
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 0xc
jmp 0x404e30
push 0x42b168
push 0x431090
call fcn.0040e222
add esp, 8
test eax, eax
je 0x404e51
push eax
call fcn.0040d2d0
jmp 0x4050ce
mov ecx, 0xf
call fcn.00404d10
mov esi, eax
push esi
call fcn.0040b03f
add esp, 4
mov edi, eax
push esi
push 0x40
push edi
call fcn.00410a20
add esp, 0xc
push 0x4316a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 0xc
lea ecx, [ebp - 0x188]
push 0x431090
call fcn.00402a20
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 0x404ebb
xor esi, esi
jmp 0x404ee2
lea ecx, [ebp - 0x184]
call fcn.00402ff0
push dword [ebp - 0x134]
xor ecx, ecx
test al, al
cmove esi, ecx
call fcn.0040d2d0
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 [0x431084]
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 0x404fc8
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 0x404fb6
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x404fc8
push 0
call fcn.00404ab0
push 0x4316a0
call ebx
push edi
call fcn.0040bd80
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 0x405049
mov edx, dword [ebp - 0x178]
lea eax, [ebp - 0x140]
cmp dword [edx], eax
jne 0x405049
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 0x40505d
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 0x405091
mov ecx, dword [esi]
test ecx, ecx
je 0x405088
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x405088
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
push esi
call fcn.0040bee9
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.0040afc0
add esp, 4
push 0x4316a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 8
lea ecx, [ebp - 0xe0]
push 0x20
push 0x431090
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 0x40511b
xor esi, esi
jmp 0x40513f
lea ecx, [ebp - 0xd0]
call fcn.00402ff0
push dword [ebp - 0x80]
xor ecx, ecx
test al, al
cmove esi, ecx
call fcn.0040d2d0
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 [0x431084]
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 0x40521f
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 0x405210
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
jne 0x405406
push 0x4316a0
call ebx
xor eax, eax
jmp 0x405230
cmp byte [ebp + eax - 0x1c], 0
jne 0x405484
inc eax
cmp eax, 0xa
jl 0x405230
push 0x431090
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 0x4052be
mov edx, dword [ebp - 0xc4]
lea ecx, [ebp - 0x8c]
cmp dword [edx], ecx
jne 0x4052be
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 0x405393
test eax, eax
je 0x4052e5
lea ecx, [ebp - 0xd0]
call fcn.00402ff0
push dword [ebp - 0x80]
call fcn.0040d2d0
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 [0x431084]
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 0x4053c7
mov ecx, dword [esi]
test ecx, ecx
je 0x4053be
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4053be
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
push esi
call fcn.0040bee9
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.0040afc0
add esp, 4
jmp 0x404e30
mov ecx, dword [ecx + 0x10]
and ecx, eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x42ffdc
push eax
test cl, 4
je 0x405443
push str.ios_base::badbit_set
lea ecx, [ebp - 0x19c]
call fcn.00404300
push 0x42c5cc
lea eax, [ebp - 0x19c]
push eax
call fcn.0040ea9b
test cl, 2
lea ecx, [ebp - 0x19c]
je 0x405469
push str.ios_base::failbit_set
call fcn.00404300
push 0x42c5cc
lea eax, [ebp - 0x19c]
push eax
call fcn.0040ea9b
push str.ios_base::eofbit_set
call fcn.00404300
push 0x42c5cc
lea eax, [ebp - 0x19c]
push eax
call fcn.0040ea9b
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 0x4054f6
mov edx, dword [ebp - 0xc4]
lea ecx, [ebp - 0x8c]
cmp dword [edx], ecx
jne 0x4054f6
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 0x4055cb
test eax, eax
je 0x40551d
lea ecx, [ebp - 0xd0]
call fcn.00402ff0
push dword [ebp - 0x80]
call fcn.0040d2d0
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 [0x431084]
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 0x4055ff
mov ecx, dword [esi]
test ecx, ecx
je 0x4055f6
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4055f6
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
push esi
call fcn.0040bee9
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.0040afc0
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.0040bbef
mov esp, ebp
pop ebp
ret