Function at 0x100166b0
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x3c]
sub esp, 0x3c
push 0xffffffffffffffff
push 0x10028eb7
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x10040cf8]
xor eax, ebp
mov dword [ebp + 0x38], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp + 0x18], 0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0xc4], 0x1002cbe4
call dword [sym.imp.MSVCP140D.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xb4]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xc4]
mov dword [ebp + 0x18], 1
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 4], 1
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xc8], eax
lea eax, [ebp - 0xb4]
mov ecx, eax
mov dword [ebp + 4], eax
call dword [sym.imp.MSVCP140D.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 2
mov dword [ebp - 0xb4], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0x6c], 0
mov byte [ebp - 0x77], 0
call dword [sym.imp.MSVCP140D.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x1004104c]
mov ecx, dword [0x10041050]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x7c], 0
push 0x40
push 1
push str.chgccghcchgh
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], 3
call fcn.1000ce70
test eax, eax
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 0xc4]
push 0
mov eax, dword [eax + 4]
je 0x100167dd
push 0
add ecx, eax
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x100167e7
push 2
add ecx, eax
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xb8], 6
jne 0x10016c5e
push 8
mov byte [ebp - 4], 4
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
call fcn.10026bb0
lea ecx, [ebp + 0x1c]
mov dword [eax + 4], 0
mov dword [ebp + 0x1c], eax
mov dword [eax], ecx
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
lea eax, [ebp + 0xb]
mov byte [ebp - 4], 5
push 8
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 4], eax
call fcn.10026bb0
lea ecx, [ebp + 0xc]
mov dword [ebp], eax
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp + 0xc], eax
push 0x30
mov byte [ebp - 4], 6
call fcn.10026bb0
mov dword [ebp], 0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x1c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.10015370
add esp, 0x14
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x100168f8
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp + 0xc]
call fcn.100156f0
mov eax, dword [eax]
inc dword [eax + 0x2c]
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.10015370
add esp, 8
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x100168c4
cmp dword [ebp - 0x68], 0
je 0x10016987
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0x78]
cmp dword [eax], ecx
jne 0x10016929
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x98]
mov dword [eax], ecx
mov eax, dword [ebp - 0x88]
mov dword [eax], edx
lea esi, [ebp - 0xb4]
mov ecx, esi
call fcn.100052c0
push dword [ebp - 0x68]
xor ecx, ecx
test al, al
cmove esi, ecx
call dword [sym.imp.ucrtbased.dll_fclose]
xor ecx, ecx
add esp, 4
test eax, eax
mov byte [ebp - 0x6c], cl
mov byte [ebp - 0x77], cl
cmovne esi, ecx
lea ecx, [ebp - 0xb4]
call dword [sym.imp.MSVCP140D.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x1004104c]
mov ecx, dword [0x10041050]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x7c], 0
test esi, esi
jne 0x100169d5
jmp 0x100169ba
lea ecx, [ebp - 0xb4]
mov byte [ebp - 0x6c], 0
mov byte [ebp - 0x77], 0
call dword [sym.imp.MSVCP140D.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x1004104c]
mov ecx, dword [0x10041050]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
push 0
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 0x40
push 1
push 0x100304e0
lea ecx, [ebp - 0xb4]
call fcn.1000ce70
test eax, eax
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 0xc4]
push 0
mov eax, dword [eax + 4]
je 0x10016a0a
push 0
add ecx, eax
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x10016a14
push 2
add ecx, eax
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.10015370
add esp, 8
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x10016a6e
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp + 0xc]
call fcn.100156f0
mov eax, dword [eax]
cmp dword [eax + 0x2c], 1
jg 0x10016c4e
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.10015370
add esp, 8
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x10016a33
mov esi, dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::_Lockit::constructor_int_]
lea ecx, [ebp + 0x18]
push 3
call esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10016ab0
cmp dword [ecx + 4], 0
je 0x10016aa9
nop dword [eax + eax]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
test eax, eax
jne 0x10016a90
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], 0
mov edi, dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
lea ecx, [ebp + 0x18]
call edi
mov eax, dword [ebp + 0x10]
push dword [eax + 4]
lea eax, [ebp + 0xc]
push eax
mov ecx, eax
call fcn.100155d0
push 0x30
push dword [ebp + 0x10]
call fcn.10026c00
push 8
push dword [ebp + 0xc]
call fcn.10026c00
add esp, 0x10
lea ecx, [ebp + 4]
push 3
call esi
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x10016b20
cmp dword [ecx + 4], 0
je 0x10016b19
nop word [eax + eax]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
test eax, eax
jne 0x10016b00
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 4], 0
lea ecx, [ebp + 4]
call edi
mov edi, dword [ebp + 0x34]
cmp edi, 0x10
jb 0x10016bfb
mov esi, dword [ebp + 0x20]
inc edi
cmp edi, 0x1000
jb 0x10016bf1
mov eax, dword [esi - 4]
add edi, 0x27
cmp dword [esi - 8], 0xfafafafa
mov dword [ebp + 0x18], eax
mov eax, dword [sym.imp.ucrtbased.dll__CrtDbgReport]
je 0x10016b9f
push 0x1002a78c
push 0x1002a7a0
push 0
push 0x9a
push 0x1002a7a8
push 2
call eax
add esp, 0x18
cmp eax, 1
jne 0x10016b7b
int3
push 0
push 0x9a
push 0x1002a818
push 0x1002a8ec
push 0x1002a8f0
call dword [sym.imp.ucrtbased.dll__invalid_parameter]
mov eax, dword [sym.imp.ucrtbased.dll__CrtDbgReport]
add esp, 0x14
sub esi, dword [ebp + 0x18]
cmp esi, 8
jb 0x10016bac
cmp esi, 0x27
jbe 0x10016bee
push 0x1002a78c
push 0x1002a7a0
push 0
push 0xa4
push 0x1002a7a8
push 2
call eax
add esp, 0x18
cmp eax, 1
jne 0x10016bcf
int3
push 0
push 0xa4
push 0x1002a818
push 0x1002a8ec
push 0x1002a8f0
call dword [sym.imp.ucrtbased.dll__invalid_parameter]
add esp, 0x14
mov esi, dword [ebp + 0x18]
push edi
push esi
call fcn.10026c00
add esp, 8
mov eax, dword [ebp + 0x1c]
push 8
push eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
mov dword [ebp + 0x1c], 0
call fcn.10026c00
add esp, 8
lea ecx, [ebp - 0xc4]
call fcn.1000bf20
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x38]
xor ecx, ebp
call fcn.10026c20
lea esp, [ebp + 0x3c]
pop ebp
ret
lea ecx, [ebp - 0xc4]
call fcn.1000eb40
call fcn.100163b0
lea ecx, [ebp - 0xc4]
call fcn.1000eb40
mov esi, dword [sym.imp.ucrtbased.dll_remove]
push 0x100304d4
call esi
push 0x100304d8
call esi
push 0x100304dc
call esi
add esp, 0xc
call fcn.10015ba0
int3