Function at 0x140055340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x130
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x80], 0xfffffffffffffffe
mov qword [rbp + 0x148], rbx
mov qword [rbp + 0x150], rsi
mov qword [rbp + 0x158], rdi
mov rax, qword [0x1401f00d0]
xor rax, rbp
mov qword [rbp + 0x108], rax
mov r15, rcx
add rcx, 0x180
cmp qword [rcx + 0x18], 0x10
jb 0x14005539b
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
lea r8, str.VDID
mov edx, 0x3e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x140055abf
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140055abf
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r9, rax
lea ecx, [rbx + 1]
mov edx, ecx
lea rax, [rcx + 0xf]
cmp rax, rdx
ja 0x14005540f
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140097980
sub rsp, rax
lea rdi, [rsp + 0x20]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], 0
mov qword [rbp + 0x100], 0xf
xor r12d, r12d
mov qword [rbp + 0xf8], r12
mov byte [rbp + 0xe8], r12b
cmp byte [rdi], r12b
jne 0x140055458
mov r8d, r12d
jmp 0x140055469
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdi + r8], r12b
jne 0x140055460
mov rdx, rdi
lea rcx, [rbp + 0xe8]
call fcn.140011e80
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r12
lea rdx, [0x1400ce0fc]
lea rcx, [rbp + 8]
call fcn.14004aab0
mov rbx, rax
mov qword [rbp + 0x20], rax
mov r8, qword [rax + 0x10]
mov qword [rbp + 0x40], r8
mov qword [rbp + 0x30], r12
cmp r8, 0x10
ja 0x1400554b7
lea rax, [rbp + 0x30]
mov rdx, rbx
jmp 0x1400554ca
mov rcx, r8
call fcn.140097960
mov qword [rbp + 0x30], rax
mov rdx, qword [rbx]
mov r8, qword [rbp + 0x40]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 1
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0xa8]
call fcn.14004be70
mov r8, rax
lea rdx, [rbp + 0xe8]
lea rcx, [rbp + 0x50]
call fcn.14004adb0
nop
cmp qword [rbx + 0x10], 0x10
jbe 0x140055510
mov rcx, qword [rbx]
test rcx, rcx
je 0x140055510
call fcn.140097968
mov rbx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x58]
cmp rbx, rdx
je 0x140055a25
movabs r13, 0x7ffffffffffffff
movzx edi, byte [rbp]
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r12
lea rdx, [0x1400ce65c]
lea rcx, [rbp + 0x68]
call fcn.14004aab0
mov rsi, rax
mov qword [rbp + 0x28], rax
mov r8, qword [rax + 0x10]
mov qword [rbp + 0x18], r8
mov qword [rbp + 8], r12
cmp r8, 0x10
ja 0x14005556e
lea rax, [rbp + 8]
mov rdx, rsi
jmp 0x140055581
mov rcx, r8
call fcn.140097960
mov qword [rbp + 8], rax
mov rdx, qword [rsi]
mov r8, qword [rbp + 0x18]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 1
lea rdx, [rbp + 8]
lea rcx, [rbp + 0xa8]
call fcn.14004be70
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.14004ab60
nop
cmp qword [rsi + 0x10], 0x10
jbe 0x1400555c3
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400555c3
call fcn.140097968
mov rax, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
sub rax, rcx
sar rax, 5
cmp rax, 2
jne 0x140055955
mov qword [rbp + 0xc0], 0xf
mov qword [rbp + 0xb8], r12
mov byte [rbp + 0xa8], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rcx
lea rcx, [rbp + 0xa8]
call fcn.140011d50
nop
mov rdx, qword [rbp + 0x30]
add rdx, 0x20
mov qword [rbp + 0xe0], 0xf
mov qword [rbp + 0xd8], r12
mov byte [rbp + 0xc8], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0xc8]
call fcn.140011d50
nop
cmp qword [rbp + 0xb8], 0
je 0x140055890
cmp qword [rbp + 0xd8], 0
je 0x140055890
mov cl, 1
call qword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_]
mov r14, rax
mov qword [rbp + 0x90], rax
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0x68]
call fcn.1400583b0
mov rsi, rax
mov qword [rbp + 0x48], rax
movzx ecx, word [rax]
mov word [rbp + 8], cx
mov rcx, qword [rax + 0x10]
mov qword [rbp + 0x18], rcx
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
lea rdx, [rbp + 8]
lea rcx, [rbp + 0xa8]
call fcn.14004c230
movzx eax, word [rsi]
mov word [rbp + 8], ax
mov rcx, qword [rsi + 0x10]
mov qword [rbp + 0x18], rcx
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rdx, [rbp + 8]
lea rcx, [rbp + 0xa8]
call fcn.14004c160
nop
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400556f6
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400556f6
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
test r14, r14
je 0x140055718
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
test rax, rax
je 0x140055718
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
mov cl, 1
call qword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_]
mov r14, rax
mov qword [rbp + 0xa0], rax
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x68]
call fcn.1400583b0
mov rsi, rax
mov qword [rbp + 0x48], rax
movzx ecx, word [rax]
mov word [rbp + 8], cx
mov rcx, qword [rax + 0x10]
mov qword [rbp + 0x18], rcx
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
lea rdx, [rbp + 8]
lea rcx, [rbp + 0xc8]
call fcn.14004c230
movzx eax, word [rsi]
mov word [rbp + 8], ax
mov rcx, qword [rsi + 0x10]
mov qword [rbp + 0x18], rcx
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rdx, [rbp + 8]
lea rcx, [rbp + 0xc8]
call fcn.14004c160
nop
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400557b1
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400557b1
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
test r14, r14
je 0x1400557d3
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
test rax, rax
je 0x1400557d3
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
lea rcx, [rbp + 0xc8]
cmp qword [rbp + 0xe0], 0x10
cmovae rcx, qword [rbp + 0xc8]
lea r14, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 0x10
cmovae r14, qword [rbp + 0xa8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov esi, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [rbp + 0x20], eax
mov dword [rbp + 0x24], esi
lea rsi, [r15 + 0x148]
mov rax, qword [rsi + 8]
lea rcx, [rbp + 0x20]
cmp rcx, rax
jae 0x140055868
mov rcx, qword [rsi]
lea rdx, [rbp + 0x20]
cmp rcx, rdx
ja 0x140055868
lea r14, [rbp + 0x20]
sub r14, rcx
sar r14, 3
cmp rax, qword [rsi + 0x10]
jne 0x140055856
mov edx, 1
mov rcx, rsi
call fcn.1400533c0
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14005588b
mov rax, qword [rax + r14*8]
jmp 0x140055888
cmp rax, qword [rsi + 0x10]
jne 0x14005587b
mov edx, 1
mov rcx, rsi
call fcn.1400533c0
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14005588b
mov rax, qword [rbp + 0x20]
mov qword [rcx], rax
add qword [rsi + 8], 8
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x1400558e4
inc rax
mov rcx, qword [rbp + 0xc8]
cmp rax, 0x1000
jb 0x1400558df
test cl, 0x1f
jne 0x1400559db
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400559d4
sub rcx, rax
cmp rcx, 8
jb 0x1400559cd
cmp rcx, 0x27
ja 0x1400559c6
mov rcx, rax
call fcn.140097204
mov qword [rbp + 0xe0], 0xf
mov qword [rbp + 0xd8], r12
mov byte [rbp + 0xc8], 0
mov rax, qword [rbp + 0xc0]
cmp rax, 0x10
jb 0x140055951
inc rax
mov rcx, qword [rbp + 0xa8]
cmp rax, 0x1000
jb 0x14005594c
test cl, 0x1f
jne 0x1400559f7
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400559f0
sub rcx, rax
cmp rcx, 8
jb 0x1400559e9
cmp rcx, 0x27
ja 0x1400559e2
mov rcx, rax
call fcn.140097204
mov rcx, qword [rbp + 0x30]
add rbx, 0x20
test rcx, rcx
je 0x1400559b8
movzx r9d, dil
lea r8, [rbp + 0x30]
mov rdx, qword [rbp + 0x38]
call fcn.140040540
mov rax, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x30]
sub rax, rcx
sar rax, 5
cmp rax, r13
ja 0x140055a1a
shl rax, 5
cmp rax, 0x1000
jb 0x1400559b3
test cl, 0x1f
jne 0x140055a13
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140055a0c
sub rcx, rax
cmp rcx, 8
jb 0x140055a05
cmp rcx, 0x27
ja 0x1400559fe
mov rcx, rax
call fcn.140097204
mov rdx, qword [rbp + 0x58]
cmp rbx, rdx
je 0x140055a21
jmp 0x140055530
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rbx, qword [rbp + 0x50]
test rbx, rbx
je 0x140055a5f
movzx r9d, byte [rbp]
lea r8, [rbp + 0x50]
mov rcx, rbx
call fcn.140040540
mov r8, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x50]
sub r8, rdx
sar r8, 5
lea rcx, [rbp + 0x50]
call fcn.140041860
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r12
mov rax, qword [rbp + 0x100]
cmp rax, 0x10
jb 0x140055abf
inc rax
mov rcx, qword [rbp + 0xe8]
cmp rax, 0x1000
jb 0x140055aba
test cl, 0x1f
je 0x140055a8a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140055a9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140055aaa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140055ab7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140097204
mov rcx, qword [rbp + 0x108]
xor rcx, rbp
call fcn.140097900
mov rbx, qword [rbp + 0x148]
mov rsi, qword [rbp + 0x150]
mov rdi, qword [rbp + 0x158]
lea rsp, [rbp + 0x110]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret