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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x490]
sub rsp, 0x590
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x5e0], rbx
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov rbx, r9
mov dword [rsp + 0x68], r8d
mov r12d, 1
xor r13d, r13d
or r15, 0xffffffffffffffff
test rdx, rdx
jne 0x1400fb45c
lea rax, [rbp - 0x38]
mov qword [rbp - 0x40], rax
mov word [rbp - 0x38], r13w
mov r8d, r15d
mov rdx, qword [0x1404435d0]
lea rcx, [rbp - 0x40]
call fcn.1400c2e90
nop
mov rdx, qword [str.h6D_]
cmp word [rdx], r13w
jne 0x1400fb269
mov rdx, qword [rbp + 0x4d0]
test rdx, rdx
je 0x1400fb1c5
lea rcx, [rbp - 0x40]
call fcn.1400c2d30
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, r12d
mov edx, 0x80000000
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400fb213
lea rax, [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
cmp rcx, rax
je 0x1400fb4ee
call fcn.14027b988
jmp 0x1400fb4ee
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test eax, eax
je 0x1400fb1f8
mov dword [rsp + 0x50], r13d
mov ecx, edi
call fcn.140125a94
mov rsi, rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
mov r8d, edi
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 + 0x50], edi
je 0x1400fb441
mov rcx, rsi
call fcn.140125e14
jmp 0x1400fb1f8
lea rcx, [rbp - 0x40]
call fcn.1400c2d30
lea rax, [rbp + 0x58]
mov qword [rbp + 0x50], rax
mov word [rbp + 0x58], r13w
mov r8d, r15d
mov rdx, qword [0x1404436f0]
lea rcx, [rbp + 0x50]
call fcn.1400c2e90
nop
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x1400fb2a5
mov rbx, qword [0x140457478]
jmp 0x1400fb2d3
mov rcx, qword [rbp + 0x50]
call fcn.1400c29c0
mov rdi, rax
mov r9, rax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rbp - 0x40]
call fcn.1400d21a0
mov rbx, rax
test rdi, rdi
je 0x1400fb2d3
mov rcx, rdi
call fcn.140125e14
test rbx, rbx
jne 0x1400fb2f3
lea rax, [rbp + 0x58]
mov rcx, qword [rbp + 0x50]
cmp rcx, rax
je 0x1400fb1f8
call fcn.14027b988
jmp 0x1400fb1f8
mov dword [rsp + 0x50], r13d
lea rax, [rbp + 0xe8]
mov qword [rbp + 0xe0], rax
mov word [rbp + 0xe8], r13w
mov r8d, r15d
mov rdx, qword [rbp + 0x4d0]
lea rcx, [rbp + 0xe0]
call fcn.1400c2e90
nop
lea r8, [0x14034b08c]
lea rdx, [0x14034b0a4]
lea rcx, [rbp + 0xe0]
call fcn.1400c3270
cmp dword [rbx], 1
je 0x1400fb350
mov dword [0x140457d08], 0x80000
jmp 0x1400fb37b
lea rax, [rbp + 0x250]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rbx + 8]
call fcn.1400d1ec0
mov dword [0x140457d08], eax
test eax, eax
je 0x1400fb39c
lea rax, [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
cmp rcx, rax
je 0x1400fb2d8
call fcn.14027b988
jmp 0x1400fb2d8
mov edi, dword [rbp + 0x47c]
test edi, edi
je 0x1400fb37b
mov ecx, edi
call fcn.140125a94
mov rsi, rax
cmp dword [rbx], 1
je 0x1400fb3c1
mov dword [0x140457d08], 0x80000
jmp 0x1400fb3e5
mov r9d, edi
mov r8, rsi
mov edx, dword [rsp + 0x50]
mov rcx, qword [rbx + 8]
call fcn.1400d1fc0
mov dword [0x140457d08], eax
test eax, eax
je 0x1400fb403
cmp eax, 0x600
je 0x1400fb403
mov rcx, rsi
call fcn.140125e14
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x1400fb37b
mov rcx, rbx
call fcn.1400d2330
jmp 0x1400fb37b
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x1400fb415
mov rcx, rbx
call fcn.1400d2330
nop
lea rax, [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
cmp rcx, rax
je 0x1400fb42e
call fcn.14027b988
nop
lea rax, [rbp + 0x58]
mov rcx, qword [rbp + 0x50]
cmp rcx, rax
je 0x1400fb441
call fcn.14027b988
nop
lea rax, [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
cmp rcx, rax
je 0x1400fb4e5
call fcn.14027b988
jmp 0x1400fb4e5
test rbx, rbx
jne 0x1400fb473
mov rbx, qword [0x1404578b8]
test rbx, rbx
cmove rbx, qword [0x140457268]
mov r8, rdx
mov rdx, rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400fb4ee
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
jne 0x1400fb4a9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1400fb4ee
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x1400fb4ee
mov ecx, edi
call fcn.140125a94
mov rsi, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov r8d, edi
mov rcx, rsi
call fcn.1402743b0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeResource]
test rsi, rsi
jne 0x1400fb58a
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, r12d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400fb870
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test eax, eax
je 0x1400fb870
mov dword [rsp + 0x60], r13d
mov ecx, edi
call fcn.140125a94
mov rsi, rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x60]
mov r8d, edi
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 + 0x60], edi
je 0x1400fb581
mov rcx, rsi
call fcn.140125e14
jmp 0x1400fb870
test rsi, rsi
je 0x1400fb870
mov qword [rbp + 0x180], r13
mov dword [rbp + 0x1a0], r13d
mov qword [rbp + 0x238], rsi
mov qword [rbp + 0x228], rsi
movsxd rcx, edi
add rcx, rsi
mov qword [rbp + 0x240], rcx
mov qword [rbp + 0x230], rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x4c]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x170]
call fcn.1400eaa40
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x1400fb5f6
mov rbx, r13
mov qword [rsp + 0x58], rbx
jmp 0x1400fb661
mov edi, dword [rsp + 0x4c]
mov r14d, dword [rsp + 0x48]
cmp dword [rsp + 0x70], 8
je 0x1400fb622
mov r9d, 4
mov r8d, edi
mov edx, r14d
mov rcx, rax
call fcn.1400eaf20
mov rbx, rax
mov qword [rsp + 0x58], rax
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, 8
cmp dword [rax + rcx], 0
je 0x1400fb643
mov eax, ntohs
mov eax, dword [rax + rcx]
jmp 0x1400fb649
mov eax, dword [0x140457d74]
test eax, eax
je 0x1400fb661
mov r9d, 4
mov r8d, edi
mov edx, r14d
mov rcx, rbx
call fcn.1400eb040
mov rcx, rsi
call fcn.140125e14
xor eax, eax
test rbx, rbx
je 0x1400fb872
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x50], eax
mov dword [rbp - 0x78], Ordinal_46
mov edx, dword [rsp + 0x48]
mov dword [rbp - 0x74], edx
mov eax, dword [rsp + 0x4c]
neg eax
mov dword [rbp - 0x70], eax
mov qword [rbp - 0x6c], 0x200001
mov edi, edx
imul edi, dword [rsp + 0x4c]
lea eax, [rdi*4]
mov dword [rbp - 0x64], eax
xor r12b, r12b
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [rbp - 0x78]
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateDIBSection]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400fb870
test edi, edi
jle 0x1400fb827
lea r8, [rbx + 3]
mov r14, 0xfffffffffffffffe
sub r14, rbx
sub r15, rbx
mov qword [rsp + 0x60], r15
mov r13, rbx
neg r13
mov r15, 0xfffffffffffffffd
sub r15, rbx
mov esi, edi
mov rbx, qword [rsp + 0x60]
nop dword [rax]
nop dword [rax + rax]
lea rdi, [r8 + r13]
movzx ecx, byte [r8]
mov rax, qword [rsp + 0x40]
mov byte [rdi + rax], cl
lea r9, [r15 + r8]
lea r10, [r14 + r8]
lea r11, [rbx + r8]
cmp cl, 0xff
jae 0x1400fb7b3
movzx ecx, byte [r8 - 1]
movzx eax, byte [r8]
imul ecx, eax
mov eax, 0x80808081
mul ecx
shr edx, 7
mov rax, qword [rsp + 0x40]
mov byte [r9 + rax], dl
movzx ecx, byte [r8 - 2]
movzx eax, byte [r8]
imul ecx, eax
mov eax, 0x80808081
mul ecx
shr edx, 7
mov rax, qword [rsp + 0x40]
mov byte [r10 + rax], dl
movzx ecx, byte [r8 - 3]
movzx eax, byte [r8]
imul ecx, eax
mov eax, 0x80808081
mul ecx
shr edx, 7
mov rax, qword [rsp + 0x40]
mov byte [r11 + rax], dl
mov r12b, 1
jmp 0x1400fb7dd
movzx ecx, byte [r8 - 1]
mov rax, qword [rsp + 0x40]
mov byte [r9 + rax], cl
movzx ecx, byte [r8 - 2]
mov rax, qword [rsp + 0x40]
mov byte [r10 + rax], cl
movzx ecx, byte [r8 - 3]
mov rax, qword [rsp + 0x40]
mov byte [r11 + rax], cl
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x68]
cmp dword [r9 + rax], ecx
jne 0x1400fb811
mov byte [r9 + rax], 0
mov rax, qword [rsp + 0x40]
mov byte [r10 + rax], 0
mov rax, qword [rsp + 0x40]
mov byte [r11 + rax], 0
mov rax, qword [rsp + 0x40]
mov byte [rdi + rax], 0
mov r12b, 1
add r8, 4
sub rsi, 1
jne 0x1400fb730
mov rbx, qword [rsp + 0x58]
xor r13d, r13d
mov rcx, rbx
call fcn.14027b988
mov ecx, 0xb8
call fcn.140125dd0
mov qword [rsp + 0x58], rax
lea rcx, [rax + 0x30]
mov qword [rax + 0x28], rcx
mov word [rcx], r13w
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov r14d, dword [rsp + 0x48]
mov dword [rax + 0x18], r14d
mov edi, dword [rsp + 0x4c]
mov dword [rax + 0x1c], edi
mov byte [rax + 0x20], r12b
jmp 0x1400fb872
xor eax, eax
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x5e0]
add rsp, 0x590
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret