Function at 0x40f3f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
mov rax, rsp
sub rsp, 0x138
mov qword [rsp + 0xf8], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov qword [rax - 8], rsi
mov qword [rax - 0x10], rdi
mov qword [rax - 0x18], r12
mov qword [rax - 0x20], r13
mov qword [rax - 0x28], r14
mov qword [rax - 0x30], r15
mov r13d, edx
mov dword [rsp + 0x80], edx
mov rbp, rcx
xor edi, edi
mov dword [rsp + 0xd0], edi
mov eax, dword [0x0046ce50]
lea rsi, [0x00453668]
lea rbx, [0x004539a0]
lea r12, [0x0046ce30]
lea r15, [0x00453650]
test al, 1
jne 0x40f4e2
or eax, 1
mov dword [0x0046ce50], eax
mov qword [0x0046ce18], rdi
mov dword [0x0046ce20], edi
mov qword [0x0046ce10], rsi
mov dword [0x0046ce28], edi
xor edx, edx
lea rcx, [0x0046ce10]
call qword [0x00453670]
nop
mov qword [0x0046ce10], rbx
mov qword [rsp + 0xd0], r12
mov qword [0x0046ce38], rdi
mov dword [0x0046ce40], edi
mov qword [0x0046ce30], r15
mov dword [0x0046ce48], edi
xor edx, edx
mov rcx, r12
call qword [0x00453658]
nop
lea rcx, [0x00452c90]
call fcn.0042bbc0
nop
mov eax, dword [0x0046ce50]
test al, 2
jne 0x40f52d
or eax, 2
mov dword [0x0046ce50], eax
mov qword [0x0046cdf0], rdi
mov dword [0x0046cdf8], edi
lea rax, [0x00454230]
mov qword [0x0046cde8], rax
mov dword [0x0046ce00], edi
xor edx, edx
lea rcx, [0x0046cde8]
call qword [0x00454238]
nop
lea rcx, [0x00452c40]
call fcn.0042bbc0
nop
mov r14d, 1
mov ecx, dword [0x0046cdf8]
test ecx, ecx
jne 0x40f998
mov qword [rsp + 0x98], rdi
mov dword [rsp + 0xa0], edi
mov qword [rsp + 0x90], rsi
mov dword [rsp + 0xa8], edi
xor edx, edx
lea rcx, [rsp + 0x90]
call qword [0x00453670]
nop
mov qword [rsp + 0x90], rbx
lea rax, [rsp + 0xb0]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xb8], rdi
mov dword [rsp + 0xc0], edi
mov qword [rsp + 0xb0], r15
mov dword [rsp + 0xc8], edi
xor edx, edx
lea rcx, [rsp + 0xb0]
call qword [0x00453658]
nop
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x58], edi
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [0x00453658]
nop
lea rax, [0x00453688]
mov qword [rsp + 0x40], rax
mov ebx, edi
lea rax, str.message
nop
inc ebx
inc rax
cmp byte [rax], 0
jne 0x40f5f0
movsxd rsi, dword [rsp + 0x50]
lea edx, [rsi + rbx]
lea rcx, [rsp + 0x40]
call qword [0x00453690]
cmp esi, esi
jge 0x40f62f
mov rax, qword [rsp + 0x48]
lea rdx, [rax + rsi]
movsxd rcx, ebx
add rcx, rax
add rcx, rsi
mov eax, esi
sub eax, esi
movsxd r8, eax
call fcn.0042a950
movsxd r8, ebx
mov rcx, rsi
add rcx, qword [rsp + 0x48]
lea rdx, str.message
call fcn.0042a950
nop
lea rax, [0x00453718]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [0x0041a520]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xd8]
mov rcx, qword [0x0046cca8]
call fcn.00417220
mov qword [rsp + 0xd8], r15
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0xe0], rdi
mov dword [rsp + 0xe8], edi
mov dword [rsp + 0xf0], edi
test rcx, rcx
je 0x40f6ba
call fcn.0042a7a0
nop
mov qword [rsp + 0x40], r15
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x58], edi
test rcx, rcx
je 0x40f6db
call fcn.0042a7a0
mov r12d, edi
cmp dword [rsp + 0xa0], edi
jle 0x40f876
mov r13, rdi
nop
mov edx, dword [rsp + 0xc0]
lea rcx, [rsp + 0xb0]
mov rax, qword [rsp + 0xb0]
call qword [rax + 8]
mov r11, qword [rsp + 0x98]
movsxd rbx, dword [r11 + r13]
add rbx, qword [rsp + 0xb8]
mov edx, 0x3d
mov rcx, rbx
call fcn.0042c770
mov rsi, rax
test rax, rax
je 0x40f859
mov byte [rax], 0
mov rcx, rbx
call fcn.0042cbe0
mov r15d, eax
test eax, eax
jle 0x40f852
movsxd rbx, dword [0x0046cdf8]
lea edx, [rbx + 1]
lea rcx, [0x0046cde8]
mov r8, qword [0x0046cde8]
call qword [r8 + 8]
cmp ebx, ebx
jge 0x40f78c
mov rax, qword [0x0046cdf0]
lea rdx, [rax + rbx*4]
lea rcx, [rdx + 4]
mov eax, ebx
sub eax, ebx
movsxd r8, eax
shl r8, 2
call fcn.0042a950
mov rax, qword [0x0046cdf0]
mov dword [rax + rbx*4], r15d
mov r15d, dword [0x0046ce20]
movsxd rbx, dword [0x0046cdf8]
lea edx, [rbx + 1]
lea rcx, [0x0046cde8]
mov rax, qword [0x0046cde8]
call qword [rax + 8]
cmp ebx, ebx
jge 0x40f7dc
mov rax, qword [0x0046cdf0]
lea rdx, [rax + rbx*4]
lea rcx, [rdx + 4]
mov eax, ebx
sub eax, ebx
movsxd r8, eax
shl r8, 2
call fcn.0042a950
mov rax, qword [0x0046cdf0]
mov dword [rax + rbx*4], r15d
lea rdx, [rsi + 1]
lea rcx, [rsp + 0xd8]
call fcn.0040e0b0
mov rbx, rax
mov r8, qword [rax]
mov edx, dword [rax + 0x10]
mov rcx, rax
call qword [r8 + 8]
mov rdx, qword [rbx + 8]
lea rcx, [0x0046ce10]
call fcn.00402d30
nop
lea r15, [0x00453650]
mov qword [rsp + 0xd8], r15
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0xe0], rdi
mov dword [rsp + 0xe8], edi
mov dword [rsp + 0xf0], edi
test rcx, rcx
je 0x40f859
call fcn.0042a7a0
jmp 0x40f859
lea r15, [0x00453650]
inc r12d
add r13, 4
cmp r12d, dword [rsp + 0xa0]
jl 0x40f6f0
mov r13d, dword [rsp + 0x80]
movsxd rbx, dword [0x0046cdf8]
lea edx, [rbx + 1]
lea rcx, [0x0046cde8]
mov rax, qword [0x0046cde8]
call qword [rax + 8]
cmp ebx, ebx
jge 0x40f8b4
mov rax, qword [0x0046cdf0]
lea rdx, [rax + rbx*4]
lea rcx, [rdx + 4]
mov eax, ebx
sub eax, ebx
movsxd r8, eax
shl r8, 2
call fcn.0042a950
mov rax, qword [0x0046cdf0]
mov dword [rax + rbx*4], edi
movsxd rbx, dword [0x0046cdf8]
lea edx, [rbx + 1]
lea rcx, [0x0046cde8]
mov rax, qword [0x0046cde8]
call qword [rax + 8]
cmp ebx, ebx
jge 0x40f8fc
mov rax, qword [0x0046cdf0]
lea rdx, [rax + rbx*4]
lea rcx, [rdx + 4]
mov eax, ebx
sub eax, ebx
movsxd r8, eax
shl r8, 2
call fcn.0042a950
mov rax, qword [0x0046cdf0]
mov dword [rax + rbx*4], edi
mov qword [rsp + 0xb0], r15
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0xb8], rdi
mov dword [rsp + 0xc0], edi
mov dword [rsp + 0xc8], edi
test rcx, rcx
je 0x40f936
call fcn.0042a7a0
lea rax, [0x00453630]
mov qword [rsp + 0xb0], rax
lea rax, [0x00453668]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x98], rdi
mov dword [rsp + 0xa0], edi
mov dword [rsp + 0xa8], edi
test rcx, rcx
je 0x40f98b
call fcn.0042a7a0
mov ecx, dword [0x0046cdf8]
lea r12, [0x0046ce30]
jmp 0x40f998
mov ecx, dword [0x0046cdf8]
lea r12, [0x0046ce30]
cmp ecx, 1
jle 0x40fa8d
mov rax, qword [0x0046cdf0]
mov edx, dword [0x0046ce20]
nop
cmp dword [rax], r13d
jne 0x40f9c1
movsxd rbx, dword [rax + 4]
test ebx, ebx
js 0x40f9c1
cmp ebx, edx
jl 0x40f9d3
add r14d, 2
add rax, 8
cmp r14d, ecx
jl 0x40f9b0
jmp 0x40fa8d
mov edx, dword [0x0046ce40]
mov rcx, r12
mov rax, qword [0x0046ce30]
call qword [rax + 8]
mov rax, qword [0x0046ce18]
movsxd rsi, dword [rax + rbx*4]
mov qword [rbp + 8], rdi
mov dword [rbp + 0x10], edi
mov qword [rbp], r15
mov dword [rbp + 0x18], edi
xor edx, edx
mov rcx, rbp
call qword [0x00453658]
nop
lea rax, [0x00453688]
mov qword [rbp], rax
add rsi, qword [0x0046ce38]
je 0x40fa3a
cmp byte [rsi], 0
je 0x40fa3a
mov rax, rsi
nop
nop
nop
inc edi
inc rax
cmp byte [rax], 0
jne 0x40fa30
movsxd rbx, dword [rbp + 0x10]
lea edx, [rbx + rdi]
mov rcx, rbp
call qword [0x00453690]
cmp ebx, ebx
jge 0x40fa67
mov rdx, rbx
add rdx, qword [rbp + 8]
movsxd rcx, edi
add rcx, rdx
mov eax, ebx
sub eax, ebx
movsxd r8, eax
call fcn.0042a950
movsxd r8, edi
mov rcx, rbx
add rcx, qword [rbp + 8]
mov rdx, rsi
call fcn.0042a950
nop
lea rax, [0x00453718]
mov qword [rbp], rax
mov rax, rbp
jmp 0x40fc63
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x78], edi
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [0x00453658]
nop
lea r14, [0x00453688]
mov qword [rsp + 0x60], r14
movsxd rbx, dword [rsp + 0x70]
mov edx, ebx
lea rcx, [rsp + 0x60]
call qword [0x00453690]
cmp ebx, ebx
jge 0x40fae7
mov rcx, qword [rsp + 0x68]
add rcx, rbx
mov eax, ebx
sub eax, ebx
movsxd r8, eax
mov rdx, rcx
call fcn.0042a950
nop
lea rax, [0x00453718]
mov qword [rsp + 0x60], rax
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [0x00453720]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
mov ecx, r13d
shr ecx, 4
inc ecx
and r13d, 0xf
movzx edx, cx
mov r8d, 6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r12, rax
test rax, rax
je 0x40fbce
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r11, rax
lea rax, [0x00453628]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r11
shr ebx, 1
mov dword [rsp + 0x50], ebx
mov ecx, edi
test r13d, r13d
jle 0x40fba5
mov r8d, r13d
nop
test ecx, ecx
js 0x40fb92
cmp ecx, ebx
jge 0x40fb92
movsxd rax, ecx
movzx edx, word [r11 + rax*2]
jmp 0x40fb95
xor dx, dx
movzx eax, dx
lea ecx, [rcx + rax + 1]
dec r8
jne 0x40fb80
test ecx, ecx
js 0x40fbb3
cmp ecx, ebx
jge 0x40fbb3
movsxd rax, ecx
movzx edx, word [r11 + rax*2]
jmp 0x40fbb6
xor dx, dx
movzx r8d, dx
lea eax, [rcx + 1]
cdqe
lea rdx, [r11 + rax*2]
lea rcx, [rsp + 0x60]
call fcn.00402b10
nop
mov qword [rbp + 8], rdi
mov dword [rbp + 0x10], edi
mov qword [rbp], r15
mov dword [rbp + 0x18], edi
xor edx, edx
mov rcx, rbp
call qword [0x00453658]
nop
mov qword [rbp], r14
movsxd rsi, dword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
movsxd rbx, dword [rbp + 0x10]
lea edx, [rsi + rbx]
mov rcx, rbp
call qword [0x00453690]
cmp ebx, ebx
jge 0x40fc21
mov rdx, rbx
add rdx, qword [rbp + 8]
lea rcx, [rdx + rsi]
mov eax, ebx
sub eax, ebx
movsxd r8, eax
call fcn.0042a950
mov r8, rsi
mov rcx, rbx
add rcx, qword [rbp + 8]
mov rdx, r12
call fcn.0042a950
nop
lea rax, [0x00453718]
mov qword [rbp], rax
mov qword [rsp + 0x60], r15
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x78], edi
test rcx, rcx
je 0x40fc60
call fcn.0042a7a0
mov rax, rbp
mov rbx, qword [rsp + 0x150]
mov rbp, qword [rsp + 0x158]
mov rsi, qword [rsp + 0x130]
mov rdi, qword [rsp + 0x128]
mov r12, qword [rsp + 0x120]
mov r13, qword [rsp + 0x118]
mov r14, qword [rsp + 0x110]
mov r15, qword [rsp + 0x108]
add rsp, 0x138
ret