Function at 0x140137ed0
Capabilities:
Accept command line arguments
Write file on windows

Disassembly:
mov word [rsp + 0x20], r9w
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov byte [rsp + 8], cl
sub rsp, 0x88
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x34], eax
movzx eax, word [rsp + 0xa8]
mov word [rsp + 0x38], ax
mov dword [rsp + 0x40], 0x5345
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x30], al
movzx eax, word [rsp + 0xa8]
add eax, 0x21b
movzx ecx, word [rsp + 0x38]
cmp eax, ecx
jg 0x140137f6b
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov word [rsp + 0x3c], ax
movzx r9d, word [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
mov edx, dword [rsp + 0x34]
movzx ecx, byte [rsp + 0x30]
call fcn.140137ed0
movzx eax, byte [rsp + 0x90]
sar eax, 1
mov byte [rsp + 0x30], al
jmp 0x140138169
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x48e5
je 0x14013806a
cmp dword [rsp + 0x4c], 0x5345
je 0x140137f90
jmp 0x1401380d7
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x54], al
cmp byte [rsp + 0x54], 0
je 0x140137fa2
jmp 0x140137fc1
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov eax, ecx
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x34]
call fcn.140138af0
nop
jmp 0x140138057
mov eax, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0x98]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0x6e67
je 0x140137feb
jmp 0x140137fed
jmp 0x14013800d
mov eax, dword [rsp + 0x98]
mov ecx, dword [rsp + 0xa0]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_GetOEMCP]
mov dword [rsp + 0x48], eax
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x20], al
mov r9d, 0x8d
mov r8d, 0xb6
mov dl, 0x54
mov ecx, 2
call fcn.140137660
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0x27
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov dword [rsp + 0x64], eax
mov edx, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x98]
call fcn.140138af0
nop
jmp 0x1401380d7
mov eax, dword [rsp + 0x98]
mov ecx, dword [rsp + 0x34]
xor ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0xa0]
jl 0x1401380d7
movzx eax, word [rsp + 0x3c]
mov word [rsp + 0x20], ax
movzx r9d, word [rsp + 0xa8]
mov r8w, 0xd5
mov edx, 0x65
movzx ecx, byte [rsp + 0x90]
call fcn.1401382a0
movzx eax, word [rsp + 0x3c]
movzx ecx, word [rsp + 0xa8]
add eax, ecx
mov word [rsp + 0x38], ax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x78], rax
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x90], al
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x365
je 0x140138152
cmp dword [rsp + 0x50], 0x5ceb
je 0x1401380f5
jmp 0x140138169
mov ecx, 0xc9
call qword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0xa0], eax
movzx eax, word [rsp + 0x38]
movzx ecx, word [rsp + 0x3c]
or eax, ecx
movzx ecx, word [rsp + 0xa8]
cmp eax, ecx
jne 0x140138149
mov word [rsp + 0x20], 6
mov r9d, 0x40
mov r8d, dword [rsp + 0x40]
mov edx, 0xb9
movzx ecx, word [rsp + 0x38]
call fcn.140136d90
nop
call qword [sym.imp.KERNEL32.dll_SetFileApisToANSI]
nop
jmp 0x140138169
mov eax, dword [rsp + 0x98]
movzx ecx, al
mov eax, dword [rsp + 0xa0]
shl eax, cl
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0x2900
je 0x14013817d
jmp 0x14013819c
mov r9d, dword [rsp + 0x44]
movzx r8d, byte [rsp + 0x30]
movzx edx, byte [rsp + 0x90]
mov ecx, dword [rsp + 0x40]
call fcn.140138200
nop
jmp 0x1401381de
mov eax, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0x98]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov r9d, 0xf9
lea r8, [rsp + 0x68]
mov edx, 0x8d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x48], eax
movzx eax, word [rsp + 0x38]
mov word [rsp + 0xa8], ax
mov eax, 0x94
add rsp, 0x88
ret