Function at 0x42f035
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x24
mov eax, 0
mov edx, dword [ebp + 8]
cmp eax, edx
jne 0x42f05e
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
add eax, 0x14
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042eed2
mov dword [ebp - 0xc], eax
mov eax, 0
mov edx, dword [ebp + 0x10]
cmp eax, edx
jne 0x42f0a9
mov eax, dword [ebp + 0xc]
cmp eax, 0
jne 0x42f08f
push 0
push 2
push 1
call fcn.0042a344
jmp 0x42f09c
push 0
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.0042a344
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x42f10b
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
sar eax, 1
mov edx, eax
mov eax, dword [ebp + 0xc]
mov cl, dl
shl eax, cl
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, dword [ebp - 0x2c]
cmp eax, edx
jle 0x42f0f5
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042a63e
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
and eax, 0xffffffe0
mov edx, dword [ebp - 0xc]
or eax, edx
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
or eax, 0x40000
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x42f15c
cmp eax, 2
je 0x42f1cb
cmp eax, 4
je 0x42f26a
call fcn.0042f153
mov eax, dword [ebp + 0x14]
cmp eax, 0
je 0x42f24f
jmp 0x42f243
mov esi, dword [ebp + 8]
mov al, byte [esi]
cmp al, 0xd
jne 0x42f1ef
mov esi, dword [ebp + 8]
mov al, byte [esi + 1]
cmp al, 0
jne 0x42f1ef
jmp 0x42f1f3
xor eax, eax
jmp 0x42f1f6
xor eax, eax
inc eax
cmp eax, 0
je 0x42f206
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0xc], eax
jmp 0x42f231
mov esi, dword [ebp + 8]
mov al, byte [esi]
mov edx, eax
mov eax, dword [ebp - 0x18]
mov byte [eax], dl
mov esi, dword [ebp + 8]
mov al, byte [esi + 1]
mov edx, eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 1], dl
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0
jg 0x42f1d7
jmp 0x42f265
mov eax, dword [ebp + 0xc]
shl eax, 1
push eax
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
jmp 0x42f415
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x42f407
mov esi, dword [ebp + 8]
mov al, byte [esi + 1]
and eax, 0xff
mov dword [ebp - 0x24], eax
mov eax, 0xd8
mov edx, dword [ebp - 0x24]
cmp eax, edx
jg 0x42f29e
mov eax, dword [ebp - 0x24]
cmp eax, 0xdb
jg 0x42f29e
jmp 0x42f2a2
xor eax, eax
jmp 0x42f2a5
xor eax, eax
inc eax
cmp eax, 0
je 0x42f396
mov eax, dword [ebp - 0x24]
shl eax, 8
push eax
pop edx
xchg edx, eax
mov esi, dword [ebp + 8]
mov al, byte [esi]
xchg edx, eax
and edx, 0xff
add eax, edx
and eax, 0x3ff
shl eax, 0xa
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
mov esi, dword [ebp + 8]
mov al, byte [esi + 1]
and eax, 0xff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0
jl 0x42f329
mov eax, 0xdc
mov edx, dword [ebp - 0x24]
cmp eax, edx
jle 0x42f319
mov eax, dword [ebp - 0x24]
cmp eax, 0xdf
jle 0x42f319
xor eax, eax
jmp 0x42f31c
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
jne 0x42f329
xor eax, eax
jmp 0x42f32c
xor eax, eax
inc eax
cmp eax, 0
je 0x42f355
push 0
push str._Input_Error:_invalid_UTF_16LE_codepoint
push 6
push 0xc
lea esi, [esp + 4]
push esi
push 1
call fcn.004219a8
push 0
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
mov eax, dword [ebp - 0x24]
shl eax, 8
push eax
pop edx
xchg edx, eax
mov esi, dword [ebp + 8]
mov al, byte [esi]
xchg edx, eax
and edx, 0xff
add eax, edx
and eax, 0x3ff
mov edx, dword [ebp - 0x28]
or eax, edx
add eax, 0x10000
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], edx
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0xc], eax
jmp 0x42f3f5
mov eax, dword [ebp + 0x14]
cmp eax, 0
je 0x42f3b5
mov esi, dword [ebp + 8]
mov al, byte [esi]
cmp al, 0xd
jne 0x42f3b5
mov eax, dword [ebp - 0x24]
cmp eax, 0
jne 0x42f3b5
jmp 0x42f3b9
xor eax, eax
jmp 0x42f3bc
xor eax, eax
inc eax
cmp eax, 0
je 0x42f3cc
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0xc], eax
jmp 0x42f3f5
mov eax, dword [ebp - 0x24]
shl eax, 8
push eax
pop edx
xchg edx, eax
mov esi, dword [ebp + 8]
mov al, byte [esi]
xchg edx, eax
and edx, 0xff
add eax, edx
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], edx
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0
jg 0x42f275