Function at 0x140136d90
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov word [rsp + 8], cx
push rsi
push rdi
sub rsp, 0x178
lea rax, [rsp + 0xd8]
lea rcx, str.from
mov rdi, rax
mov rsi, rcx
mov ecx, 0xa
rep movsb byte [rdi], byte [rsi]
movsx eax, word [rsp + 0x1b0]
cmp eax, 0x1fd
je 0x140137418
mov eax, dword [rsp + 0x1a0]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x44]
jb 0x140137378
movsx eax, word [rsp + 0x1b0]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
je 0x140136e10
jmp 0x140136e70
movsx eax, word [rsp + 0x1b0]
shl eax, 0x33
cmp eax, 0x319
jle 0x140136e2f
movzx eax, word [rsp + 0x190]
mov word [rsp + 0x30], ax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x38], 0xa66
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x80], rax
mov byte [rsp + 0x34], 0xf5
mov eax, dword [rsp + 0x1a0]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
jmp 0x140136e87
movzx eax, word [rsp + 0x30]
movzx ecx, word [rsp + 0x190]
xor eax, ecx
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0xa66
je 0x140136eb4
cmp dword [rsp + 0x70], 0x5b13
je 0x140136f87
jmp 0x140137041
movzx eax, byte [rsp + 0x34]
cmp eax, 0x47
jne 0x140136f5c
mov edx, 0xea
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_IsValidLanguageGroup]
mov dword [rsp + 0xa8], eax
movsx eax, word [rsp + 0x1b0]
mov dword [rsp + 0x8c], eax
cmp dword [rsp + 0x8c], 0x402
je 0x140136ef7
jmp 0x140136f4d
mov rax, qword [rsp + 0x1a8]
mov rcx, qword [rsp + 0x80]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x3c]
mov r8d, 0x29
mov edx, 0xf2
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov dword [rsp + 0x74], eax
movzx eax, word [rsp + 0x30]
movzx ecx, word [rsp + 0x190]
sar eax, cl
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
jmp 0x140136f5a
mov eax, dword [rsp + 0x3c]
add eax, 0x1ace
mov dword [rsp + 0x38], eax
jmp 0x140136f82
movsx eax, word [rsp + 0x1b0]
cmp eax, 0x179
je 0x140136f82
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x1a8]
mov qword [rsp + 0x68], rax
jmp 0x140137041
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x44]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x48]
mov edx, dword [rsp + 0x1a0]
and edx, ecx
mov ecx, edx
cmp eax, ecx
ja 0x140136ffb
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0xd9
mov r9d, 0xf9
mov r8d, 0x8f
mov edx, 0x7c
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_SetTapePosition]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x1a0], eax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
add rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
jmp 0x140137041
movabs rax, 0x7e75f9402dfd4b
cmp qword [rsp + 0x198], rax
je 0x140137041
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb8]
mov r8d, 0x4f
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x3c]
sub eax, 0x4141
cmp eax, dword [rsp + 0x38]
jl 0x1401371d8
mov eax, dword [rsp + 0x3c]
sub eax, 0x4ce4
cmp eax, dword [rsp + 0x38]
jg 0x1401371cd
movabs rax, 0x73fcbc0903f554
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0xc0], rax
movabs rax, 0x7b2515fca0f18b
cmp qword [rsp + 0xc0], rax
je 0x1401370a2
jmp 0x14013719b
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x1a8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
movzx r9d, word [rsp + 0x30]
mov r8d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x3c]
movzx ecx, byte [rsp + 0x34]
call fcn.140137ed0
mov dword [rsp + 0x28], 0x93
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, 0x9a
lea r8, str.choosers_Glandular_duckings
mov edx, 0xfa
mov ecx, 0x52
call qword [sym.imp.KERNEL32.dll_LCMapStringW]
mov dword [rsp + 0x4c], eax
movsx eax, word [rsp + 0x1b0]
shl eax, 0x92
cmp eax, 0x4b
jge 0x140137178
movzx eax, word [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
movzx ecx, word [rcx]
sar eax, cl
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x20], ax
movzx r9d, word [rsp + 0x30]
movzx r8d, word [rsp + 0x1b0]
mov rdx, qword [rsp + 0x198]
movzx ecx, byte [rsp + 0x34]
call fcn.1401382a0
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
xor rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
jmp 0x140137199
movabs rax, 0x796586f2edeecf
cmp qword [rsp + 0x198], rax
ja 0x140137199
mov eax, 0x31b
mov word [rsp + 0x1b0], ax
jmp 0x1401371cb
mov rax, qword [rsp + 0x58]
movzx r9d, word [rax]
mov r8d, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x4c]
movzx ecx, byte [rsp + 0x34]
call fcn.140137ed0
mov edx, 0x57
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
mov dword [rsp + 0x44], eax
jmp 0x1401371d8
mov eax, dword [rsp + 0x1a0]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0xa66
je 0x1401371f2
jmp 0x14013721c
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x94], eax
jmp 0x140137276
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x1a8]
or rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x98]
mov qword [rcx], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
mov word [rsp + 0x30], ax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rax]
and rax, rcx
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov ecx, 0x8d
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x4c], eax
movzx eax, word [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
movzx ecx, word [rcx]
add eax, ecx
movzx ecx, word [rsp + 0x30]
movzx edx, word [rsp + 0x190]
sub ecx, edx
cmp eax, ecx
jg 0x140137376
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0xa66
je 0x1401372c1
cmp dword [rsp + 0x78], 0x2d7d
je 0x140137368
jmp 0x140137376
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 0x1a8]
sub rdx, rcx
mov rcx, rdx
cmp rax, rcx
je 0x140137325
lea r8, [rsp + 0x3c]
xor edx, edx
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
mov dword [rsp + 0xac], eax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x30]
and eax, ecx
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x4c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x94], eax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov qword [rsp + 0xf0], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0xb0], eax
lea rax, [rsp + 0x198]
mov qword [rsp + 0xf8], rax
jmp 0x140137376
movzx eax, byte [rsp + 0x34]
add eax, 0xb5
mov byte [rsp + 0x34], al
jmp 0x140137393
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
movzx eax, word [rsp + 0x190]
mov word [rsp + 0x30], ax
movabs rax, 0x774752d9343ede
mov rcx, qword [rsp + 0x198]
and rcx, rax
mov rax, rcx
movabs rcx, 0x72fa7b5ca762dd
cmp rax, rcx
je 0x1401373ea
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov word [rsp + 0x30], ax
movabs rax, 0x784f19e3b0e8cb
mov qword [rsp + 0x1a8], rax
mov cl, 0x2a
call fcn.140137a10
call qword [sym.imp.KERNEL32.dll_GetACP]
mov dword [rsp + 0x48], eax
jmp 0x140137418
movsx eax, word [rsp + 0x1b0]
cmp eax, 0xb
jl 0x140137418
movzx eax, word [rsp + 0x190]
mov word [rsp + 0x30], ax
mov cl, 0xd2
call fcn.140137a10
movzx eax, word [rsp + 0x190]
mov word [rsp + 0x30], ax
mov edx, 0x6f
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x1a0]
mov dword [rsp + 0x44], eax
movsx eax, word [rsp + 0x1b0]
add eax, 0x691
cmp eax, 0xc5
je 0x14013747a
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x7c]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetProcessWorkingSetSize]
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x1a0]
mov dword [rsp + 0x44], eax
jmp 0x1401374c8
movabs rax, 0x711d9ff11a688a
cmp qword [rsp + 0x198], rax
je 0x1401374c8
lea rdx, [rsp + 0x7c]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x60], eax
movzx r9d, word [rsp + 0x190]
xor r8d, r8d
mov edx, 0xe2
mov cl, 0x25
call fcn.140137ed0
mov eax, dword [rsp + 0x1a0]
mov dword [rsp + 0x44], eax
mov eax, 0x43
add rsp, 0x178
pop rdi
pop rsi
ret