Function at 0x140030270
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 [0x140131a90]
xor rax, rbp
mov qword [rbp + 0x108], rax
mov r15, rcx
add rcx, 0x180
cmp qword [rcx + 0x18], 0x10
jb 0x1400302cb
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
lea r8, [0x14007ffcc]
mov edx, 0x3e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x1400309ef
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1400309ef
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 0x14003033f
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400615f0
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 0x140030388
mov r8d, r12d
jmp 0x140030399
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdi + r8], r12b
jne 0x140030390
mov rdx, rdi
lea rcx, [rbp + 0xe8]
call fcn.140008200
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r12
lea rdx, [0x14007fa6c]
lea rcx, [rbp + 8]
call fcn.140024c30
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 0x1400303e7
lea rax, [rbp + 0x30]
mov rdx, rbx
jmp 0x1400303fa
mov rcx, r8
call fcn.1400615cc
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.140026750
mov r8, rax
lea rdx, [rbp + 0xe8]
lea rcx, [rbp + 0x50]
call fcn.140024f30
nop
cmp qword [rbx + 0x10], 0x10
jbe 0x140030440
mov rcx, qword [rbx]
test rcx, rcx
je 0x140030440
call fcn.1400615d4
mov rbx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x58]
cmp rbx, rdx
je 0x140030955
movabs r13, 0x7ffffffffffffff
movzx edi, byte [rbp]
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r12
lea rdx, [0x14007ffd4]
lea rcx, [rbp + 0x68]
call fcn.140024c30
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 0x14003049e
lea rax, [rbp + 8]
mov rdx, rsi
jmp 0x1400304b1
mov rcx, r8
call fcn.1400615cc
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.140026750
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.140024ce0
nop
cmp qword [rsi + 0x10], 0x10
jbe 0x1400304f3
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400304f3
call fcn.1400615d4
mov rax, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
sub rax, rcx
sar rax, 5
cmp rax, 2
jne 0x140030885
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.1400080d0
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.1400080d0
nop
cmp qword [rbp + 0xb8], 0
je 0x1400307c0
cmp qword [rbp + 0xd8], 0
je 0x1400307c0
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.1400332f0
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.140026b10
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.140026a40
nop
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x140030626
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140030626
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
test r14, r14
je 0x140030648
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
test rax, rax
je 0x140030648
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.1400332f0
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.140026b10
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.140026a40
nop
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400306e1
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400306e1
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
test r14, r14
je 0x140030703
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
test rax, rax
je 0x140030703
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 0x140030798
mov rcx, qword [rsi]
lea rdx, [rbp + 0x20]
cmp rcx, rdx
ja 0x140030798
lea r14, [rbp + 0x20]
sub r14, rcx
sar r14, 3
cmp rax, qword [rsi + 0x10]
jne 0x140030786
mov edx, 1
mov rcx, rsi
call fcn.14002df20
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400307bb
mov rax, qword [rax + r14*8]
jmp 0x1400307b8
cmp rax, qword [rsi + 0x10]
jne 0x1400307ab
mov edx, 1
mov rcx, rsi
call fcn.14002df20
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400307bb
mov rax, qword [rbp + 0x20]
mov qword [rcx], rax
add qword [rsi + 8], 8
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x140030814
inc rax
mov rcx, qword [rbp + 0xc8]
cmp rax, 0x1000
jb 0x14003080f
test cl, 0x1f
jne 0x14003090b
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140030904
sub rcx, rax
cmp rcx, 8
jb 0x1400308fd
cmp rcx, 0x27
ja 0x1400308f6
mov rcx, rax
call fcn.140060e74
mov qword [rbp + 0xe0], 0xf
mov qword [rbp + 0xd8], r12
mov byte [rbp + 0xc8], 0
mov rax, qword [rbp + 0xc0]
cmp rax, 0x10
jb 0x140030881
inc rax
mov rcx, qword [rbp + 0xa8]
cmp rax, 0x1000
jb 0x14003087c
test cl, 0x1f
jne 0x140030927
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140030920
sub rcx, rax
cmp rcx, 8
jb 0x140030919
cmp rcx, 0x27
ja 0x140030912
mov rcx, rax
call fcn.140060e74
mov rcx, qword [rbp + 0x30]
add rbx, 0x20
test rcx, rcx
je 0x1400308e8
movzx r9d, dil
lea r8, [rbp + 0x30]
mov rdx, qword [rbp + 0x38]
call fcn.140016e00
mov rax, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x30]
sub rax, rcx
sar rax, 5
cmp rax, r13
ja 0x14003094a
shl rax, 5
cmp rax, 0x1000
jb 0x1400308e3
test cl, 0x1f
jne 0x140030943
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14003093c
sub rcx, rax
cmp rcx, 8
jb 0x140030935
cmp rcx, 0x27
ja 0x14003092e
mov rcx, rax
call fcn.140060e74
mov rdx, qword [rbp + 0x58]
cmp rbx, rdx
je 0x140030951
jmp 0x140030460
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 0x14003098f
movzx r9d, byte [rbp]
lea r8, [rbp + 0x50]
mov rcx, rbx
call fcn.140016e00
mov r8, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x50]
sub r8, rdx
sar r8, 5
lea rcx, [rbp + 0x50]
call fcn.140019e00
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r12
mov rax, qword [rbp + 0x100]
cmp rax, 0x10
jb 0x1400309ef
inc rax
mov rcx, qword [rbp + 0xe8]
cmp rax, 0x1000
jb 0x1400309ea
test cl, 0x1f
je 0x1400309ba
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 0x1400309ca
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 0x1400309da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1400309e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140060e74
mov rcx, qword [rbp + 0x108]
xor rcx, rbp
call fcn.1400614f0
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