Function at 0x1001329
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.01001df0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ulib.dll_public:_void___thiscall_DSTRING::constructor_void_]
mov esi, ecx
lea ecx, [ebp - 0x44]
call edi
lea ecx, [ebp - 0x2c]
call edi
mov eax, dword [esi + 0x9c]
push 1
mov dword [ebp - 8], eax
mov edi, 0x400
push edi
lea eax, [ebp - 0x1044]
push eax
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x90]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ulib.dll_public:_unsigned_short_int____thiscall_WSTRING::QueryWSTR_unsigned_long_int__unsigned_long_int__unsigned_short_int___unsigned_long_int__unsigned_char_const]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_WSTRING::Initialize_void_]
test al, al
jne 0x1001395
mov eax, dword [esi]
push 1
push 0x2eec
jmp 0x100150c
call dword [sym.imp.ulib.dll_public:_static_void___stdcall_WSTRING::SetConsoleConversions_void_]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 8]
test al, al
jne 0x10014e9
mov ecx, dword [ebp + 8]
push ebx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_STREAM::ReadLine_class_WSTRING___unsigned_char_]
test al, al
je 0x1001503
cmp dword [ebp - 0x20], ebx
jne 0x10013d6
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 8]
test al, al
jne 0x10014de
push 1
push edi
lea eax, [ebp - 0x844]
push eax
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ulib.dll_public:_unsigned_short_int____thiscall_WSTRING::QueryWSTR_unsigned_long_int__unsigned_long_int__unsigned_short_int___unsigned_long_int__unsigned_char_const]
mov eax, 0x3ff
cmp dword [ebp - 0x20], eax
ja 0x10013f9
mov eax, dword [ebp - 0x20]
inc dword [ebp - 0x10]
and byte [ebp - 1], 0
cmp dword [ebp - 8], ebx
je 0x100145e
cmp eax, dword [ebp - 8]
jb 0x100145e
cmp byte [esi + 0x88], 0
mov dword [ebp - 0x14], ebx
jne 0x100141d
mov dword [ebp - 0x14], 1
sub eax, dword [ebp - 8]
lea ebx, [ebp + eax*2 - 0x842]
lea eax, [ebp - 0x844]
cmp ebx, eax
jb 0x100145c
cmp byte [ebp - 1], 0
jne 0x100145c
push dword [ebp - 8]
lea eax, [ebp - 0x1044]
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x1001458
mov byte [ebp - 1], 1
dec ebx
dec ebx
jmp 0x1001427
xor ebx, ebx
mov al, byte [esi + 0x89]
test al, al
je 0x1001472
cmp byte [ebp - 1], 0
jne 0x1001478
test al, al
jne 0x10014ce
cmp byte [ebp - 1], 0
jne 0x10014ce
inc dword [ebp - 0xc]
cmp byte [esi + 0x8a], 0
je 0x10014ce
push 0xffffffffffffffff
lea eax, [ebp - 0x844]
push eax
lea ecx, [ebp - 0x44]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_WSTRING::Initialize_unsigned_short_int_const___unsigned_long_int_]
cmp byte [esi + 0x8b], 0
mov eax, dword [esi]
lea ecx, [ebp - 0x44]
push ecx
je 0x10014bc
push dword [ebp - 0x10]
push 0x100119c
push ebx
push 0x2eeb
push esi
call dword [eax + 8]
add esp, 0x18
jmp 0x10014ce
push 0x1001198
push ebx
push 0x2eea
push esi
call dword [eax + 8]
add esp, 0x14
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 8]
test al, al
je 0x10013ab
cmp dword [ebp - 0xc], ebx
je 0x10014e9
mov dword [esi + 0x168], ebx
mov esi, dword [sym.imp.ulib.dll_public_virtual:_void___thiscall_DSTRING::destructor_void_]
lea ecx, [ebp - 0x2c]
call esi
lea ecx, [ebp - 0x44]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [esi]
push 1
push 0x2eed
mov ecx, esi
call dword [eax + 0xc]
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3