Function at 0x1000b7d0
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x3c]
sub esp, 0x3c
push 0xffffffffffffffff
push 0x1001b677
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x10030a98]
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], 0x1001def4
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 [0x10030dec]
mov ecx, dword [0x10030df0]
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.100058e0
test eax, eax
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 0xc4]
push 0
mov eax, dword [eax + 4]
je 0x1000b8fd
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 0x1000b907
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 0x1000bd7e
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.10019430
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.10019430
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.10019430
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.1000a470
add esp, 0x14
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x1000ba18
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp + 0xc]
call fcn.1000a7f0
mov eax, dword [eax]
inc dword [eax + 0x2c]
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.1000a470
add esp, 8
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x1000b9e4
cmp dword [ebp - 0x68], 0
je 0x1000baa7
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0x78]
cmp dword [eax], ecx
jne 0x1000ba49
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.10001d20
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 [0x10030dec]
mov ecx, dword [0x10030df0]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x7c], 0
test esi, esi
jne 0x1000baf5
jmp 0x1000bada
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 [0x10030dec]
mov ecx, dword [0x10030df0]
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 0x10020910
lea ecx, [ebp - 0xb4]
call fcn.100058e0
test eax, eax
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 0xc4]
push 0
mov eax, dword [eax + 4]
je 0x1000bb2a
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 0x1000bb34
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.1000a470
add esp, 8
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x1000bb8e
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp + 0xc]
call fcn.1000a7f0
mov eax, dword [eax]
cmp dword [eax + 0x2c], 1
jg 0x1000bd6e
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.1000a470
add esp, 8
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x1000bb53
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 0x1000bbd0
cmp dword [ecx + 4], 0
je 0x1000bbc9
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 0x1000bbb0
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.1000a6d0
push 0x30
push dword [ebp + 0x10]
call fcn.10019480
push 8
push dword [ebp + 0xc]
call fcn.10019480
add esp, 0x10
lea ecx, [ebp + 4]
push 3
call esi
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x1000bc40
cmp dword [ecx + 4], 0
je 0x1000bc39
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 0x1000bc20
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 0x1000bd1b
mov esi, dword [ebp + 0x20]
inc edi
cmp edi, 0x1000
jb 0x1000bd11
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 0x1000bcbf
push 0x1001c6f4
push 0x1001c708
push 0
push 0x9a
push 0x1001c710
push 2
call eax
add esp, 0x18
cmp eax, 1
jne 0x1000bc9b
int3
push 0
push 0x9a
push 0x1001c780
push 0x1001c854
push 0x1001c858
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 0x1000bccc
cmp esi, 0x27
jbe 0x1000bd0e
push 0x1001c6f4
push 0x1001c708
push 0
push 0xa4
push 0x1001c710
push 2
call eax
add esp, 0x18
cmp eax, 1
jne 0x1000bcef
int3
push 0
push 0xa4
push 0x1001c780
push 0x1001c854
push 0x1001c858
call dword [sym.imp.ucrtbased.dll__invalid_parameter]
add esp, 0x14
mov esi, dword [ebp + 0x18]
push edi
push esi
call fcn.10019480
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.10019480
add esp, 8
lea ecx, [ebp - 0xc4]
call fcn.100049a0
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.100194a0
lea esp, [ebp + 0x3c]
pop ebp
ret
lea ecx, [ebp - 0xc4]
call fcn.100070f0
call fcn.1000b4d0
lea ecx, [ebp - 0xc4]
call fcn.100070f0
mov esi, dword [sym.imp.ucrtbased.dll_remove]
push 0x10020904
call esi
push 0x10020908
call esi
push 0x1002090c
call esi
add esp, 0xc
call fcn.1000aca0
int3