Function at 0x180145e54
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x6f8]
sub rsp, 0x7d0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1802240e0]
xor rax, rsp
mov qword [rbp + 0x6c0], rax
mov rbx, rcx
lea rcx, [rbp + 0x1a0]
call fcn.1801293b8
nop
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x1a0]
call fcn.18012e1fc
lea rdx, [rbp + 0x2b0]
lea rcx, [rbp + 0x80]
call fcn.180125008
nop
xor edi, edi
mov esi, edi
mov r14d, edi
call fcn.18012b268
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.180125008
nop
call fcn.18012b270
mov rcx, rax
call fcn.180125b04
mov r13d, 0x80
lea r12d, [rdi + 1]
test al, al
je 0x180145fba
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.18012530c
lea rcx, [rsp + 0x60]
call fcn.1800b6970
mov rcx, rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, r12d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180145f5f
lea rcx, [rsp + 0x60]
call fcn.180125164
jmp 0x18014612f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
test eax, eax
je 0x180145f50
mov dword [rsp + 0x40], edi
mov ecx, r14d
call fcn.18017e210
mov rsi, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], r14d
je 0x18014611c
mov rcx, rsi
call fcn.18017df04
mov rsi, rdi
jmp 0x180145f50
call fcn.18012b270
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.18012530c
call fcn.18012b5a4
test al, al
je 0x180145fdf
call fcn.18012b278
mov rbx, rax
jmp 0x18014603f
call fcn.18012b280
mov rdx, rax
lea rcx, [rbp + 0x110]
call fcn.180125008
nop
lea rcx, [rbp + 0x110]
call fcn.1800b6970
mov rcx, rax
xor edx, edx
call fcn.1801311c0
mov r15, rax
lea rcx, [rsp + 0x60]
call fcn.1800b6970
mov rcx, rax
mov rdx, r15
call fcn.180154f90
mov rbx, rax
test r15, r15
je 0x180146033
mov rcx, r15
call fcn.18017df04
nop
lea rcx, [rbp + 0x110]
call fcn.180125164
test rbx, rbx
je 0x180145f50
mov dword [rsp + 0x44], edi
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x10]
call fcn.180125008
nop
lea r8, [0x1801bc5e4]
lea rdx, [0x1801b1a1c]
lea rcx, [rbp - 0x10]
call fcn.180125d84
lea rcx, [rbp - 0x10]
call fcn.1800b6970
mov rdx, rax
lea rax, [rbp + 0x490]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
mov r8b, r12b
mov rcx, rbx
call fcn.180154990
test eax, eax
je 0x1801460ae
lea rcx, [rbp - 0x10]
call fcn.180125164
jmp 0x180145f50
mov r14d, dword [rbp + 0x6bc]
test r14d, r14d
je 0x1801460a0
mov ecx, r14d
call fcn.18017e210
mov rsi, rax
mov r9d, r14d
mov r8, rax
mov edx, dword [rsp + 0x44]
mov rcx, rbx
call fcn.18015548c
test eax, eax
je 0x180146100
cmp eax, 0x600
je 0x180146100
mov rcx, rsi
call fcn.18017df04
mov rsi, rdi
call fcn.18012b5a4
test al, al
jne 0x1801460a0
mov rcx, rbx
call fcn.1801546d0
jmp 0x1801460a0
call fcn.18012b5a4
test al, al
jne 0x180146112
mov rcx, rbx
call fcn.1801546d0
nop
lea rcx, [rbp - 0x10]
call fcn.180125164
nop
lea rcx, [rsp + 0x60]
call fcn.180125164
test rsi, rsi
jne 0x180146299
lea rcx, [rbp + 0x80]
call fcn.1800b6970
mov rcx, rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, r12d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1801461c8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
test eax, eax
je 0x1801461c8
mov dword [rsp + 0x48], edi
mov ecx, r14d
call fcn.18017e210
mov rsi, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
mov r8d, r14d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x48], r14d
je 0x1801461bf
mov rcx, rsi
call fcn.18017df04
mov rsi, rdi
test rsi, rsi
jne 0x180146299
lea rcx, [rbp + 0x80]
call fcn.180125b18
test al, al
je 0x180146294
call fcn.18012b254
mov r12, rax
test rax, rax
je 0x180146294
mov qword [rsp + 0x50], rdi
lea rcx, [rbp + 0x80]
call fcn.1800b6970
mov rcx, rax
mov r8d, 0xa
lea rdx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
movzx ebx, ax
lea rcx, [rbp + 0x338]
call fcn.1800b6970
mov r8, rax
mov edx, ebx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
je 0x180146294
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r13, rax
test rax, rax
jne 0x180146256
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1801462b0
mov rdx, r15
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
test eax, eax
je 0x180146294
mov ecx, r14d
call fcn.18017e210
mov rsi, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov r8d, r14d
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeResource]
test rsi, rsi
je 0x1801462b0
mov edx, r14d
mov rcx, rsi
call fcn.180145d90
mov rdi, rax
mov rcx, rsi
call fcn.18017df04
nop
lea rcx, [rbp + 0x80]
call fcn.180125164
nop
lea rcx, [rbp + 0x408]
call fcn.180125164
lea rcx, [rbp + 0x338]
call fcn.180125164
lea rcx, [rbp + 0x2b0]
call fcn.180125164
lea rcx, [rbp + 0x228]
call fcn.180125164
lea rcx, [rbp + 0x1a0]
call fcn.180125164
mov rax, rdi
mov rcx, qword [rbp + 0x6c0]
xor rcx, rsp
call fcn.18017dee0
lea r11, [rsp + 0x7d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret