Function at 0x18004e020
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1801aef28]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rcx
xor edi, edi
mov r13, rdi
inc byte [rcx + 1]
movzx eax, byte [rcx + 1]
cmp al, 5
jbe 0x18004dbfc
cmp al, 0x14
jae 0x18004dbfc
cmp word [rcx + 0x44], di
jne 0x18004dbfc
call fcn.18004d7e0
cmp dword [rbx + 4], edi
je 0x18004dfe5
cmp byte [rbx], 0x14
ja 0x18004dfe5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
mov eax, dword [rbx + 0x40]
add eax, 0x3e8
cmp eax, r11d
jae 0x18004dfe5
lea r14, [rbx + 8]
mov r8d, 1
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.180087860
nop
cmp dword [rbx + 4], 0
jne 0x18004dc55
lea rcx, [rsp + 0x58]
call fcn.1800878e0
jmp 0x18004dfe5
mov dword [rbx + 4], edi
lea rcx, [rsp + 0x58]
call fcn.1800878e0
inc byte [rbx]
mov r12, rdi
mov rbp, rdi
lea rcx, [rbx + 0x44]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18004de6a
test rax, rax
je 0x18004de6a
mov dword [rsp + 0x4c], edi
mov dword [rsp + 0x48], edi
mov r15d, 0x800
mov rcx, r15
call fcn.1800a1b44
mov r13, rax
test rax, rax
je 0x18004de6a
mov r14d, 0xfffff800
jmp 0x18004dcf8
mov r14d, dword [rsp + 0x44]
mov r15d, 0x800
jmp 0x18004dcf8
mov r14d, dword [rsp + 0x44]
mov r15d, 0x800
cmp dword [rsp + 0x4c], 0
jne 0x18004de66
mov r8, r15
xor edx, edx
mov rcx, r13
call fcn.1800a1250
mov r12, rdi
mov rbp, rdi
cmp dword [0x1801df0a0], ebp
je 0x18004dd3b
lea r9, str.CDealWhatsApp::GetLoginUserName_1
lea r8, str.whatsapp
or edx, 0xffffffff
lea rcx, [0x1801de7b8]
call fcn.18008da50
mov r9d, 2
xor r8d, r8d
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x18004dd6e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x4c], 1
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
mov r8d, 0x7ff
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
sub r14d, r15d
mov dword [rsp + 0x44], r14d
mov r14d, dword [rsp + 0x48]
cmp r14d, r15d
cmova r14d, r15d
mov byte [rsp + 0x78], WSAGetLastError
mov byte [rsp + 0x79], 0x61
mov byte [rsp + 0x7a], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x7b], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x7c], 0x2d
mov byte [rsp + 0x7d], 0x77
mov byte [rsp + 0x7e], 0x69
mov byte [rsp + 0x7f], 0x64
mov r9d, 8
lea r8, [rsp + 0x78]
mov edx, r14d
mov rcx, r13
call fcn.18006f060
mov r15, rax
test rax, rax
je 0x18004dced
cmp byte [rax + 0xa], 0x22
jne 0x18004dce0
cmp dword [0x1801df0a0], ebp
je 0x18004de17
lea r9, str.CDealWhatsApp::GetLoginUserName_2
lea r8, str.whatsapp
or edx, 0xffffffff
lea rcx, [0x1801de7b8]
call fcn.18008da50
lea r12, [r15 + 0xb]
mov eax, r13d
sub eax, r12d
add r14d, eax
cmp r14d, 0x50
mov eax, 0x50
cmova r14d, eax
mov byte [rsp + 0x40], 0x22
lea r9d, [rax - 0x4f]
lea r8, [rsp + 0x40]
mov edx, r14d
mov rcx, r12
call fcn.18006f060
mov rbp, rax
test rax, rax
mov r14d, dword [rsp + 0x44]
mov r15d, 0x800
je 0x18004dcf8
mov edi, 1
lea r14, [rbx + 8]
cmp dword [0x1801df0a0], 0
je 0x18004de9a
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbp
lea r9, str.CDealWhatsApp::GetLoginUserName_3___p____p_
lea r8, str.whatsapp
or edx, 0xffffffff
lea rcx, [0x1801de7b8]
call fcn.18008da50
test edi, edi
je 0x18004df9f
test rbp, rbp
je 0x18004df9f
test r12, r12
je 0x18004df9f
mov byte [rsp + 0x80], 0
xor eax, eax
mov qword [rsp + 0x81], rax
mov qword [rsp + 0x89], rax
mov qword [rsp + 0x91], rax
mov qword [rsp + 0x99], rax
mov qword [rsp + 0xa1], rax
mov qword [rsp + 0xa9], rax
mov qword [rsp + 0xb1], rax
mov qword [rsp + 0xb9], rax
mov qword [rsp + 0xc1], rax
mov dword [rsp + 0xc9], eax
mov word [rsp + 0xcd], ax
mov byte [rsp + 0xcf], al
sub rbp, r12
mov r8, rbp
mov rdx, r12
lea rcx, [rsp + 0x80]
call fcn.1800a2980
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.180080c20
nop
lea rdi, [rbx + 0x24c]
mov r8d, 0x4f
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.1800a11c4
mov rcx, rdi
call fcn.18004dac0
cmp dword [0x1801df0a0], 0
je 0x18004df93
mov qword [rsp + 0x20], rdi
lea r9, str.CDealWhatsApp::GetLoginUserName_4___s_
lea r8, str.whatsapp
or edx, 0xffffffff
lea rcx, [0x1801de7b8]
call fcn.18008da50
nop
lea rcx, [rsp + 0x50]
call fcn.18007d270
jmp 0x18004dfc4
mov r8d, 1
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.180087860
nop
mov dword [rbx + 4], 1
lea rcx, [rsp + 0x58]
call fcn.1800878e0
test r13, r13
je 0x18004dfd1
mov rcx, r13
call fcn.1800a133c
cmp rsi, 0xffffffffffffffff
je 0x18004dfe5
test rsi, rsi
je 0x18004dfe5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbx + 0x24c]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1800a1220
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
sub rsp, 0x28
call fcn.18004d6a0
mov rcx, rax
add rsp, 0x28
jmp 0x18004dba0