Function at 0x100e4e5
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x100e730
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
je 0x100e730
push dword [ebp + 8]
call fcn.0100c8b2
cmp eax, 1
jne 0x100e617
mov esi, dword [sym.imp.msvcrt.dll___iob_func]
call esi
add eax, 0x20
cmp dword [ebp + 8], eax
jne 0x100e52e
push 0xfffffffffffffff5
jmp 0x100e53e
call esi
add eax, 0x40
cmp dword [ebp + 8], eax
jne 0x100e5ff
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push edi
push ebx
mov dword [ebp + 8], eax
mov dword [ebp - 4], edi
call fcn.0100c981
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov dword [ebp - 0xc], eax
call ebx
test eax, eax
je 0x100e572
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
je 0x100e5d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x100e5fb
mov esi, dword [ebp + 0xc]
push edi
push esi
call fcn.0100c981
cmp eax, edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
jbe 0x100e5d7
mov dword [ebp - 0x10], esi
mov esi, 0x400
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
mov dword [ebp + 0xc], esi
cmp eax, esi
ja 0x100e5a9
mov dword [ebp + 0xc], eax
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x100e5df
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 4]
jne 0x100e5df
add dword [ebp - 8], esi
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], 0x800
cmp eax, dword [ebp - 0xc]
jb 0x100e599
xor eax, eax
inc eax
jmp 0x100e744
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call fcn.0100c7d9
call fcn.0100d1c9
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call esi
jmp 0x100e5e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100e742
push 0x42b
jmp 0x100e73c
push 1
push ebx
call fcn.0100e20d
push edi
push eax
mov dword [ebp - 0x14], eax
call fcn.0100c981
push 0x100
push edi
mov esi, 0x10133a0
push esi
mov dword [ebp - 0xc], eax
call fcn.0100c0e2
add esp, 0xc
cmp dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
jbe 0x100e5d7
mov ebx, 0xff
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, ebx
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], ebx
ja 0x100e662
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x14]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x10], eax
push edi
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x100e6bf
cmp eax, ebx
jbe 0x100e6cd
add eax, 0xffffff01
cmp eax, 3
jbe 0x100e69f
shr eax, 1
sub dword [ebp + 0xc], eax
jmp 0x100e6a2
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
jne 0x100e66b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100e6bf
push 0x42b
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x20
jmp 0x100e5e8
cmp eax, dword [ebp + 0xc]
jae 0x100e6d5
mov dword [ebp + 0xc], eax
push 0x100
push edi
push esi
call fcn.0100c0e2
add esp, 0xc
push edi
push edi
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x100e6bf
mov eax, dword [ebp + 0xc]
add dword [ebp - 8], eax
push esi
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fprintf]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fflush]
mov eax, dword [ebp - 8]
add esp, 0xc
cmp dword [ebp - 0xc], eax
ja 0x100e64d
jmp 0x100e5d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100e742
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8