Function at 0x4018c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405e98
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x58]
call fcn.004016b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
test ecx, ecx
jne 0x401927
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_get_AppData_path.
call fcn.004044e0
push 0x404700
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x401b5f
mov edi, 0x7fffffff
mov eax, edi
sub eax, ecx
cmp eax, 0xa
jb 0x401bb0
cmp dword [ebp - 0x44], 0xf
lea eax, [ebp - 0x58]
push 0xa
cmova eax, dword [ebp - 0x58]
push str.ExitTrial
push ecx
push eax
push ecx
push dword [ebp - 0x10c]
lea ecx, [ebp - 0x28]
call fcn.00404ce0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0xf
push 0
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4019bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4019bf
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_create_directory:
call fcn.004044e0
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x28]
push dword [ebp - 0x18]
cmova edx, dword [ebp - 0x28]
mov ecx, eax
call fcn.00404de0
add esp, 4
mov ecx, eax
push 0x404700
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x401b1d
mov ecx, dword [ebp - 0x18]
sub edi, ecx
cmp edi, 0xb
jb 0x401bb0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push 0xb
cmova eax, dword [ebp - 0x28]
push str._serial.txt
push ecx
push eax
push ecx
push dword [ebp - 0x10c]
lea ecx, [ebp - 0x40]
call fcn.00404ce0
push 0xb0
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 2
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x108]
cmova eax, dword [ebp - 0x40]
push eax
call fcn.00404180
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x108], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x10c], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0xb8], 0
jne 0x401a89
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_open_file_for_writing:
call fcn.004044e0
cmp dword [ebp - 0x2c], 0xf
lea edx, [ebp - 0x40]
push dword [ebp - 0x30]
cmova edx, dword [ebp - 0x40]
mov ecx, eax
call fcn.00404de0
add esp, 4
mov ecx, eax
push 0x404700
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x401acc
cmp dword [esi + 0x14], 0xf
mov eax, dword [esi + 0x10]
jbe 0x401a94
mov esi, dword [esi]
push eax
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.00404de0
add esp, 4
lea ecx, [ebp - 0x104]
call fcn.004040f0
test eax, eax
jne 0x401acc
push eax
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x108]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x108]
call fcn.00401bc0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x401b0b
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401b01
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b85
push ecx
push edx
call fcn.00405099
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x401b4d
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401b43
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b85
push ecx
push edx
call fcn.00405099
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x401b95
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401b8b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401b8b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00405099
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405056
mov esp, ebp
pop ebp
ret
call fcn.00401170
int3