Function at 0x472c8c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2b0
mov rdi, rcx
mov esi, 0x40
mov r8d, esi
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.00424830
or qword [rsp + 0x48], 0xffffffffffffffff
lea rax, [0x00486230]
mov qword [rsp + 0x40], rax
lea rdx, [rbp - 0x58]
lea rax, [rbp - 0x58]
xor r15d, r15d
mov qword [rbp - 0x68], rax
mov r8d, 0x104
lea rax, [0x0048d7e0]
mov dword [rbp - 0x60], r15d
xor ecx, ecx
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x5c], r8d
mov word [rbp - 0x58], r15w
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x472d29
mov edx, dword [rbp - 0x5c]
mov rcx, rbx
call fcn.004293f8
mov rbx, qword [rbp - 0x68]
mov dword [rbp - 0x60], eax
jmp 0x472d2d
mov dword [rbp - 0x60], r15d
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x472d43
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
test rbx, rbx
je 0x472d7a
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rsp + 0x48], rax
cmp rcx, 0xffffffffffffffff
je 0x472f08
mov ebx, r15d
mov r8d, esi
mov eax, ebx
lea rdx, [rsp + 0x50]
mov dword [rbp + 0x1d8], r15d
sub r8d, ebx
mov qword [rsp + 0x20], r15
add rdx, rax
lea r9, [rbp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x472f03
mov eax, dword [rbp + 0x1d8]
test eax, eax
je 0x472dcf
add ebx, eax
cmp ebx, esi
jae 0x472dd1
mov rcx, qword [rsp + 0x48]
jmp 0x472d87
cmp ebx, esi
jne 0x472f03
movzx eax, word [rsp + 0x74]
mov rcx, qword [rsp + 0x48]
mov word [rbp + 0x1d8], ax
movzx eax, word [rsp + 0x76]
mov word [rbp + 0x1da], ax
cmp rcx, 0xffffffffffffffff
je 0x472f08
mov r14d, dword [rbp + 0x1d8]
lea r8, [rbp + 0x1dc]
mov edx, r14d
mov qword [rbp + 0x1d8], r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x1d8], eax
cmp eax, 0xffffffff
jne 0x472e38
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x472f03
cmp qword [rbp + 0x1d8], 0xffffffffffffffff
je 0x472f03
lea rsi, [rdi + 0xaf30]
lea rbx, [rdi + 0xaf48]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.0041f180
test al, al
je 0x472e71
lea rbx, [rdi + 0xaf48]
cmp dword [rbx], 2
jne 0x472e54
cmp dword [rbx], 2
je 0x472e7e
mov rcx, rsi
call fcn.0041ea6c
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x472f08
xor r9d, r9d
mov qword [rbp + 0x1d8], r14
lea r8, [rbp + 0x1dc]
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x1d8], eax
cmp eax, 0xffffffff
jne 0x472eb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x472f03
cmp qword [rbp + 0x1d8], 0xffffffffffffffff
je 0x472f03
lea rsi, [rdi + 0xafa8]
lea rbx, [rdi + 0xafc0]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.0041f180
test al, al
je 0x472eed
lea rbx, [rdi + 0xafc0]
cmp dword [rbx], 3
jne 0x472ed0
cmp dword [rbx], 3
je 0x472efa
mov rcx, rsi
call fcn.0041ea6c
mov rcx, qword [rsp + 0x48]
mov bl, 1
jmp 0x472f0b
mov rcx, qword [rsp + 0x48]
mov bl, r15b
mov qword [rbp - 0x68], r15
lea rax, [0x004837b8]
mov qword [rbp - 0x70], rax
lea rax, [0x00486230]
mov qword [rsp + 0x40], rax
mov dword [rbp - 0x60], r15d
cmp rcx, 0xffffffffffffffff
je 0x472f36
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x2b0]
mov al, bl
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret