Function at 0x10017430
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x3c]
sub esp, 0x3c
push 0xffffffffffffffff
push 0x1002a597
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x10041bd0]
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], 0x1002dbe4
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 [0x10041f2c]
mov ecx, dword [0x10041f30]
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.1000ced0
test eax, eax
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 0xc4]
push 0
mov eax, dword [eax + 4]
je 0x1001755d
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 0x10017567
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 0x100179de
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.10028260
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.10028260
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.10028260
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.100159c0
add esp, 0x14
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x10017678
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp + 0xc]
call fcn.10015d40
mov eax, dword [eax]
inc dword [eax + 0x2c]
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.100159c0
add esp, 8
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x10017644
cmp dword [ebp - 0x68], 0
je 0x10017707
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0x78]
cmp dword [eax], ecx
jne 0x100176a9
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.10005320
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 [0x10041f2c]
mov ecx, dword [0x10041f30]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x7c], 0
test esi, esi
jne 0x10017755
jmp 0x1001773a
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 [0x10041f2c]
mov ecx, dword [0x10041f30]
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 0x100317c8
lea ecx, [ebp - 0xb4]
call fcn.1000ced0
test eax, eax
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 0xc4]
push 0
mov eax, dword [eax + 4]
je 0x1001778a
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 0x10017794
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.100159c0
add esp, 8
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x100177ee
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp + 0xc]
call fcn.10015d40
mov eax, dword [eax]
cmp dword [eax + 0x2c], 1
jg 0x100179ce
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.100159c0
add esp, 8
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x100177b3
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 0x10017830
cmp dword [ecx + 4], 0
je 0x10017829
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 0x10017810
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.10015c20
push 0x30
push dword [ebp + 0x10]
call fcn.100282b0
push 8
push dword [ebp + 0xc]
call fcn.100282b0
add esp, 0x10
lea ecx, [ebp + 4]
push 3
call esi
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x100178a0
cmp dword [ecx + 4], 0
je 0x10017899
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 0x10017880
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 0x1001797b
mov esi, dword [ebp + 0x20]
inc edi
cmp edi, 0x1000
jb 0x10017971
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 0x1001791f
push 0x1002b78c
push 0x1002b7a0
push 0
push 0x9a
push 0x1002b7a8
push 2
call eax
add esp, 0x18
cmp eax, 1
jne 0x100178fb
int3
push 0
push 0x9a
push 0x1002b818
push 0x1002b8ec
push 0x1002b8f0
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 0x1001792c
cmp esi, 0x27
jbe 0x1001796e
push 0x1002b78c
push 0x1002b7a0
push 0
push 0xa4
push 0x1002b7a8
push 2
call eax
add esp, 0x18
cmp eax, 1
jne 0x1001794f
int3
push 0
push 0xa4
push 0x1002b818
push 0x1002b8ec
push 0x1002b8f0
call dword [sym.imp.ucrtbased.dll__invalid_parameter]
add esp, 0x14
mov esi, dword [ebp + 0x18]
push edi
push esi
call fcn.100282b0
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.100282b0
add esp, 8
lea ecx, [ebp - 0xc4]
call fcn.1000bf80
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.100282d0
lea esp, [ebp + 0x3c]
pop ebp
ret
lea ecx, [ebp - 0xc4]
call fcn.1000eba0
call fcn.10016fa0
lea ecx, [ebp - 0xc4]
call fcn.1000eba0
mov esi, dword [sym.imp.ucrtbased.dll_remove]
push 0x100317bc
call esi
push 0x100317c0
call esi
push 0x100317c4
call esi
add esp, 0xc
call fcn.10016290
int3