Function at 0x140018190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x240
mov rax, qword [0x140072010]
xor rax, rsp
mov qword [rsp + 0x238], rax
mov dword [rsp + 0x3c], 0
lea rdx, [0x140059060]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rax, [rsp + 0x1b8]
movzx edx, byte [rsp + 0x40]
mov rcx, rax
call fcn.140059fc0
nop
lea rax, str.ragre_gnetrg_jnyyrg_nqqerff_be_genafnpgvba_unfu:
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x50]
cmp byte [rax + rcx], 0
jne 0x1400181f9
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov r8, qword [rsp + 0xd0]
lea rdx, str.ragre_gnetrg_jnyyrg_nqqerff_be_genafnpgvba_unfu:
lea rcx, [rsp + 0x1b8]
call fcn.14005a2d0
nop
lea rdx, [rsp + 0x1b8]
lea rcx, [rsp + 0x198]
call fcn.140057900
mov qword [rsp + 0x188], rax
mov eax, dword [rsp + 0x3c]
or eax, 1
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x198]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x88]
cmp qword [rax + 0x18], 0x10
jb 0x1400182bc
mov dword [rsp + 0x48], 1
jmp 0x1400182c4
mov dword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x26], al
movzx eax, byte [rsp + 0x26]
test eax, eax
je 0x1400182f9
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xa0]
call fcn.140057500
mov qword [rsp + 0xe8], rax
jmp 0x14001833a
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xe8]
cmp qword [rsp + 0x58], rax
je 0x1400183bf
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movsx eax, byte [rax]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalpha]
test eax, eax
je 0x1400183ba
mov rax, qword [rsp + 0x60]
movsx eax, byte [rax]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_islower]
test eax, eax
je 0x140018382
mov byte [rsp + 0x20], 0x61
jmp 0x140018387
mov byte [rsp + 0x20], 0x41
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
mov rax, qword [rsp + 0x60]
movsx eax, byte [rax]
movsx ecx, byte [rsp + 0x21]
sub eax, ecx
add eax, 0xd
cdq
mov ecx, 0x1a
idiv ecx
mov eax, edx
movsx ecx, byte [rsp + 0x21]
add eax, ecx
mov rcx, qword [rsp + 0x60]
mov byte [rcx], al
jmp 0x14001832d
lea rax, [rsp + 0x198]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov rcx, rax
call fcn.140058650
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0xf8]
call fcn.1400010c0
lea rcx, [rsp + 0x198]
call fcn.140057fd0
nop
lea rcx, [rsp + 0x1b8]
call fcn.140057fd0
lea rax, [rsp + 0x218]
movzx edx, byte [rsp + 0x41]
mov rcx, rax
call fcn.140059fc0
nop
lea rax, [0x14006d601]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x68], 0xffffffffffffffff
inc qword [rsp + 0x68]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x68]
cmp byte [rax + rcx], 0
jne 0x14001843d
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x110], rax
mov r8, qword [rsp + 0x110]
lea rdx, [0x14006d601]
lea rcx, [rsp + 0x218]
call fcn.14005a2d0
nop
lea rdx, [rsp + 0x218]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140059160
mov rax, qword [rsp + 0x228]
mov qword [rsp + 0x118], rax
cmp qword [rsp + 0x118], 0x18
jb 0x140018602
lea rax, [rsp + 0x27]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x27]
call fcn.140018cc0
mov rcx, rax
call fcn.140052e40
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x218]
call fcn.140057240
cmp rax, 0xffffffffffffffff
jne 0x1400188d8
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x28]
call fcn.140018db0
mov rcx, rax
call fcn.140052e40
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x218]
call fcn.140057240
cmp rax, 0xffffffffffffffff
jne 0x1400188d8
lea rax, [rsp + 0x29]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x29]
call fcn.140018ea0
mov rcx, rax
call fcn.140052db0
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x218]
call fcn.140057240
cmp rax, 0xffffffffffffffff
jne 0x1400188d8
lea rax, [rsp + 0x2a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x2a]
call fcn.140018f90
mov rcx, rax
call fcn.140052db0
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x218]
call fcn.140057240
cmp rax, 0xffffffffffffffff
jne 0x1400188d8
lea rax, [rsp + 0x2b]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x2b]
call fcn.140019080
mov rcx, rax
call fcn.140052d20
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x218]
call fcn.140057240
cmp rax, 0xffffffffffffffff
jne 0x1400188d8
lea rax, [rsp + 0x2c]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x2c]
call fcn.140019170
mov rcx, rax
call fcn.140052c90
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x1f8]
movzx edx, byte [rsp + 0x42]
mov rcx, rax
call fcn.140059fc0
nop
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
inc qword [rsp + 0x70]
mov rax, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x70]
cmp byte [rax + rcx], 0
jne 0x14001865c
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x130], rax
mov r8, qword [rsp + 0x130]
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x1f8]
call fcn.14005a2d0
nop
lea rax, [rsp + 0x1f8]
mov qword [rsp + 0x138], rax
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x1d8]
call fcn.140057900
mov qword [rsp + 0x190], rax
mov eax, dword [rsp + 0x3c]
or eax, 2
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x18], 0x10
jb 0x140018730
mov dword [rsp + 0x4c], 1
jmp 0x140018738
mov dword [rsp + 0x4c], 0
movzx eax, byte [rsp + 0x4c]
mov byte [rsp + 0x2d], al
movzx eax, byte [rsp + 0x2d]
test eax, eax
je 0x14001876d
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0xb8]
call fcn.140057500
mov qword [rsp + 0x150], rax
jmp 0x1400187ae
mov rax, qword [rsp + 0x78]
inc rax
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x150]
cmp qword [rsp + 0x78], rax
je 0x140018846
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
movsx eax, byte [rax]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalpha]
test eax, eax
je 0x140018841
mov rax, qword [rsp + 0x80]
movsx eax, byte [rax]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_islower]
test eax, eax
je 0x140018803
mov byte [rsp + 0x22], 0x61
jmp 0x140018808
mov byte [rsp + 0x22], 0x41
movzx eax, byte [rsp + 0x22]
mov byte [rsp + 0x23], al
mov rax, qword [rsp + 0x80]
movsx eax, byte [rax]
movsx ecx, byte [rsp + 0x23]
sub eax, ecx
add eax, 0xd
cdq
mov ecx, 0x1a
idiv ecx
mov eax, edx
movsx ecx, byte [rsp + 0x23]
add eax, ecx
mov rcx, qword [rsp + 0x80]
mov byte [rcx], al
jmp 0x1400187a1
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov rcx, rax
call fcn.140058650
mov qword [rsp + 0x160], rax
mov rcx, qword [rsp + 0x160]
call fcn.1400010c0
lea rcx, [rsp + 0x1d8]
call fcn.140057fd0
nop
lea rcx, [rsp + 0x1f8]
call fcn.140057fd0
lea rdx, [0x140059060]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [0x140059060]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rcx, [rsp + 0x218]
call fcn.140057fd0
jmp 0x140018ca7
lea rax, [rsp + 0x2e]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x2e]
call fcn.140019360
mov rcx, rax
call fcn.140052c00
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400594f0
mov ecx, 0x8fc
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x2f]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x2f]
call fcn.140019450
mov rcx, rax
call fcn.140052b70
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400594f0
mov ecx, 0x1964
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
call fcn.140019700
mov rcx, rax
call fcn.140052a50
mov qword [rsp + 0x168], rax
lea rcx, [rsp + 0x31]
call fcn.1400195c0
mov rcx, rax
call fcn.140052ae0
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400594f0
lea rdx, [rsp + 0x218]
mov rcx, rax
call fcn.1400590b0
mov rcx, qword [rsp + 0x168]
mov rdx, rcx
mov rcx, rax
call fcn.1400594f0
mov ecx, 0x1fa4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x32]
call fcn.140019800
mov rcx, rax
call fcn.1400529c0
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400594f0
mov ecx, 0x2cec
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x33]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x33]
call fcn.140019980
mov rcx, rax
call fcn.140052930
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400594f0
mov ecx, 0x3cf0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x35]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x34]
call fcn.140019c60
mov rcx, rax
call fcn.140052810
mov qword [rsp + 0x170], rax
lea rcx, [rsp + 0x35]
call fcn.140019b50
mov rcx, rax
call fcn.1400528a0
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400594f0
lea rdx, [rsp + 0x218]
mov rcx, rax
call fcn.1400590b0
mov rcx, qword [rsp + 0x170]
mov rdx, rcx
mov rcx, rax
call fcn.1400594f0
mov ecx, 0x1f40
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0xa
idiv ecx
mov eax, edx
cmp eax, 6
jne 0x140018afe
mov byte [rsp + 0x24], 0
jmp 0x140018b03
mov byte [rsp + 0x24], 1
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x25], al
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x25]
test eax, eax
je 0x140018b33
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x23
idiv ecx
mov eax, edx
mov dword [rsp + 0x44], eax
jmp 0x140018b4a
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x32
idiv ecx
mov eax, edx
add eax, 0x23
mov dword [rsp + 0x44], eax
lea rdx, [0x140059060]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [0x140059060]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rax, [rsp + 0x36]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x36]
call fcn.140019d70
mov rcx, rax
call fcn.140052780
mov qword [rsp + 0x178], rax
lea rdx, [rsp + 0x218]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400590b0
mov rcx, qword [rsp + 0x178]
mov rdx, rcx
mov rcx, rax
call fcn.1400594f0
movzx eax, byte [rsp + 0x25]
test eax, eax
je 0x140018be1
mov dx, 2
mov rax, qword [rsp + 0x250]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
jmp 0x140018bf7
mov dx, 4
mov rax, qword [rsp + 0x250]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rax, [rsp + 0x37]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x37]
call fcn.140019e80
mov rcx, rax
call fcn.1400526f0
mov qword [rsp + 0x180], rax
mov edx, dword [rsp + 0x44]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, qword [rsp + 0x180]
mov rdx, rcx
mov rcx, rax
call fcn.1400594f0
mov dx, 7
mov rax, qword [rsp + 0x250]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x38]
call fcn.140019f70
mov rcx, rax
call fcn.140052660
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400594f0
mov ecx, 0x1194
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rcx, [rsp + 0x218]
call fcn.140057fd0
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.14005f1e0
add rsp, 0x240
pop rdi
ret