Function at 0x40a650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
mov rax, rsp
sub rsp, 0x158
mov qword [rsp + 0x118], 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 r14d, edx
mov dword [rsp + 0xa0], edx
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x110], edi
mov eax, dword [0x0044a410]
lea rbp, [0x004395d8]
lea rbx, [0x00439ba0]
lea r12, [0x0044a3f0]
lea r15, [0x004395c8]
test al, 1
jne 0x40a742
or eax, 1
mov dword [0x0044a410], eax
mov qword [0x0044a3d8], rdi
mov dword [0x0044a3e0], edi
mov qword [0x0044a3d0], rbp
mov dword [0x0044a3e8], edi
xor edx, edx
lea rcx, [0x0044a3d0]
call qword [0x004395e0]
nop
mov qword [0x0044a3d0], rbx
mov qword [rsp + 0x110], r12
mov qword [0x0044a3f8], rdi
mov dword [0x0044a400], edi
mov qword [0x0044a3f0], r15
mov dword [0x0044a408], edi
xor edx, edx
mov rcx, r12
call qword [0x004395d0]
nop
lea rcx, [0x00437e90]
call fcn.00425690
nop
mov eax, dword [0x0044a410]
test al, 2
jne 0x40a78d
or eax, 2
mov dword [0x0044a410], eax
mov qword [0x0044a3b0], rdi
mov dword [0x0044a3b8], edi
lea rax, [0x00439af0]
mov qword [0x0044a3a8], rax
mov dword [0x0044a3c0], edi
xor edx, edx
lea rcx, [0x0044a3a8]
call qword [0x00439af8]
nop
lea rcx, [0x00437e40]
call fcn.00425690
nop
mov r13d, 1
mov ecx, dword [0x0044a3b8]
test ecx, ecx
jne 0x40acc8
mov qword [rsp + 0xb8], rdi
mov dword [rsp + 0xc0], edi
mov qword [rsp + 0xb0], rbp
mov dword [rsp + 0xc8], edi
xor edx, edx
lea rcx, [rsp + 0xb0]
call qword [0x004395e0]
nop
mov qword [rsp + 0xb0], rbx
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x110], rax
mov qword [rsp + 0xd8], rdi
mov dword [rsp + 0xe0], edi
mov qword [rsp + 0xd0], r15
mov dword [rsp + 0xe8], edi
xor edx, edx
lea rcx, [rsp + 0xd0]
call qword [0x004395d0]
nop
mov qword [rsp + 0x88], rdi
mov dword [rsp + 0x90], edi
mov qword [rsp + 0x80], r15
mov dword [rsp + 0x98], edi
xor edx, edx
lea rcx, [rsp + 0x80]
call qword [0x004395d0]
nop
lea r12, [0x00439608]
mov qword [rsp + 0x80], r12
mov ebx, edi
lea rax, str.message
nop
inc ebx
inc rax
cmp byte [rax], 0
jne 0x40a860
movsxd rbp, dword [rsp + 0x90]
lea edx, [rbp + rbx]
lea rcx, [rsp + 0x80]
call qword [0x00439610]
cmp ebp, ebp
jge 0x40a8aa
mov r8, qword [rsp + 0x88]
lea rdx, [rbp + r8]
movsxd rcx, ebx
add rcx, rbp
add rcx, r8
mov eax, ebp
sub eax, ebp
movsxd r8, eax
call fcn.004230d0
movsxd r8, ebx
mov rcx, rbp
add rcx, qword [rsp + 0x88]
lea rdx, str.message
call fcn.004230d0
nop
lea rax, [0x00439658]
mov qword [rsp + 0x80], rax
mov rbp, qword [0x0044a268]
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 [0x004395d0]
nop
mov qword [rsp + 0x40], r12
movsxd rbx, dword [rsp + 0x50]
mov edx, ebx
lea rcx, [rsp + 0x40]
call qword [0x00439610]
cmp ebx, ebx
jge 0x40a92e
mov rcx, qword [rsp + 0x48]
add rcx, rbx
mov eax, ebx
sub eax, ebx
movsxd r8, eax
mov rdx, rcx
call fcn.004230d0
nop
lea rax, [0x00439658]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [0x00413a90]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0xf0]
mov rcx, rbp
call fcn.00410760
mov qword [rsp + 0xf0], r15
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0xf8], rdi
mov dword [rsp + 0x100], edi
mov dword [rsp + 0x108], edi
test rcx, rcx
je 0x40a9a9
call fcn.004230a0
lea rbp, [0x004395a0]
mov qword [rsp + 0xf0], rbp
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 0x40a9da
call fcn.004230a0
nop
mov qword [rsp + 0x80], r15
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x88], rdi
mov dword [rsp + 0x90], edi
mov dword [rsp + 0x98], edi
test rcx, rcx
je 0x40aa0a
call fcn.004230a0
mov r12d, edi
cmp dword [rsp + 0xc0], edi
jle 0x40abad
mov r14, rdi
nop
mov edx, dword [rsp + 0xe0]
lea rcx, [rsp + 0xd0]
mov rax, qword [rsp + 0xd0]
call qword [rax + 8]
mov r11, qword [rsp + 0xb8]
movsxd rbx, dword [r14 + r11]
add rbx, qword [rsp + 0xd8]
mov edx, 0x3d
mov rcx, rbx
call fcn.00424980
mov rbp, rax
test rax, rax
je 0x40ab89
mov byte [rax], 0
mov rcx, rbx
call fcn.004254a0
mov r15d, eax
test eax, eax
jle 0x40ab82
movsxd rbx, dword [0x0044a3b8]
lea edx, [rbx + 1]
lea rcx, [0x0044a3a8]
mov r8, qword [0x0044a3a8]
call qword [r8 + 8]
cmp ebx, ebx
jge 0x40aabc
mov rax, qword [0x0044a3b0]
lea rdx, [rax + rbx*4]
lea rcx, [rdx + 4]
mov eax, ebx
sub eax, ebx
movsxd r8, eax
shl r8, 2
call fcn.004230d0
mov rax, qword [0x0044a3b0]
mov dword [rax + rbx*4], r15d
mov r15d, dword [0x0044a3e0]
movsxd rbx, dword [0x0044a3b8]
lea edx, [rbx + 1]
lea rcx, [0x0044a3a8]
mov rax, qword [0x0044a3a8]
call qword [rax + 8]
cmp ebx, ebx
jge 0x40ab0c
mov rax, qword [0x0044a3b0]
lea rdx, [rax + rbx*4]
lea rcx, [rdx + 4]
mov eax, ebx
sub eax, ebx
movsxd r8, eax
shl r8, 2
call fcn.004230d0
mov rax, qword [0x0044a3b0]
mov dword [rax + rbx*4], r15d
lea rdx, [rbp + 1]
lea rcx, [rsp + 0xf0]
call fcn.004091c0
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, [0x0044a3d0]
call fcn.004069b0
nop
lea r15, [0x004395c8]
mov qword [rsp + 0xf0], r15
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0xf8], rdi
mov dword [rsp + 0x100], edi
mov dword [rsp + 0x108], edi
test rcx, rcx
je 0x40ab89
call fcn.004230a0
jmp 0x40ab89
lea r15, [0x004395c8]
inc r12d
add r14, 4
cmp r12d, dword [rsp + 0xc0]
jl 0x40aa20
mov r14d, dword [rsp + 0xa0]
lea rbp, [0x004395a0]
movsxd rbx, dword [0x0044a3b8]
lea edx, [rbx + 1]
lea rcx, [0x0044a3a8]
mov rax, qword [0x0044a3a8]
call qword [rax + 8]
cmp ebx, ebx
jge 0x40abeb
mov rax, qword [0x0044a3b0]
lea rdx, [rax + rbx*4]
lea rcx, [rdx + 4]
mov eax, ebx
sub eax, ebx
movsxd r8, eax
shl r8, 2
call fcn.004230d0
mov rax, qword [0x0044a3b0]
mov dword [rax + rbx*4], edi
movsxd rbx, dword [0x0044a3b8]
lea edx, [rbx + 1]
lea rcx, [0x0044a3a8]
mov rax, qword [0x0044a3a8]
call qword [rax + 8]
cmp ebx, ebx
jge 0x40ac33
mov rax, qword [0x0044a3b0]
lea rdx, [rax + rbx*4]
lea rcx, [rdx + 4]
mov eax, ebx
sub eax, ebx
movsxd r8, eax
shl r8, 2
call fcn.004230d0
mov rax, qword [0x0044a3b0]
mov dword [rax + rbx*4], edi
mov qword [rsp + 0xd0], r15
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0xd8], rdi
mov dword [rsp + 0xe0], edi
mov dword [rsp + 0xe8], edi
test rcx, rcx
je 0x40ac6d
call fcn.004230a0
mov qword [rsp + 0xd0], rbp
lea rax, [0x004395d8]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0xb8], rdi
mov dword [rsp + 0xc0], edi
mov dword [rsp + 0xc8], edi
test rcx, rcx
je 0x40acbb
call fcn.004230a0
mov ecx, dword [0x0044a3b8]
lea r12, [0x0044a3f0]
jmp 0x40acc8
mov ecx, dword [0x0044a3b8]
lea r12, [0x0044a3f0]
cmp ecx, 1
jle 0x40adb2
mov rax, qword [0x0044a3b0]
mov edx, dword [0x0044a3e0]
nop
cmp dword [rax], r14d
jne 0x40acf1
movsxd rbx, dword [rax + 4]
test ebx, ebx
js 0x40acf1
cmp ebx, edx
jl 0x40ad03
add r13d, 2
add rax, 8
cmp r13d, ecx
jl 0x40ace0
jmp 0x40adb2
mov edx, dword [0x0044a400]
mov rcx, r12
mov rax, qword [0x0044a3f0]
call qword [rax + 8]
mov rax, qword [0x0044a3d8]
movsxd rbp, dword [rax + rbx*4]
mov qword [rsi + 8], rdi
mov dword [rsi + 0x10], edi
mov qword [rsi], r15
mov dword [rsi + 0x18], edi
xor edx, edx
mov rcx, rsi
call qword [0x004395d0]
nop
lea r13, [0x00439608]
mov qword [rsi], r13
add rbp, qword [0x0044a3f8]
je 0x40ad60
cmp byte [rbp], 0
je 0x40ad60
mov rax, rbp
inc edi
inc rax
cmp byte [rax], 0
jne 0x40ad56
movsxd rbx, dword [rsi + 0x10]
lea edx, [rbx + rdi]
mov rcx, rsi
call qword [0x00439610]
cmp ebx, ebx
jge 0x40ad8d
mov rdx, rbx
add rdx, qword [rsi + 8]
movsxd rcx, edi
add rcx, rdx
mov eax, ebx
sub eax, ebx
movsxd r8, eax
call fcn.004230d0
movsxd r8, edi
mov rcx, rbx
add rcx, qword [rsi + 8]
mov rdx, rbp
call fcn.004230d0
nop
lea rax, [0x00439658]
mov qword [rsi], rax
mov rax, rsi
jmp 0x40af81
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 [0x004395d0]
nop
lea r13, [0x00439608]
mov qword [rsp + 0x60], r13
movsxd rbx, dword [rsp + 0x70]
mov edx, ebx
lea rcx, [rsp + 0x60]
call qword [0x00439610]
cmp ebx, ebx
jge 0x40ae0c
mov rcx, qword [rsp + 0x68]
add rcx, rbx
mov eax, ebx
sub eax, ebx
movsxd r8, eax
mov rdx, rcx
call fcn.004230d0
nop
lea rax, [0x00439658]
mov qword [rsp + 0x60], rax
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [0x00439660]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbp, rax
mov ecx, r14d
shr ecx, 4
inc ecx
and r14d, 0xf
movzx edx, cx
mov r8d, 6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r12, rax
test rax, rax
je 0x40aeef
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r11, rax
lea rax, [0x00439598]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r11
shr ebx, 1
mov dword [rsp + 0x50], ebx
mov ecx, edi
test r14d, r14d
jle 0x40aec6
mov r8d, r14d
test ecx, ecx
js 0x40aeb3
cmp ecx, ebx
jge 0x40aeb3
movsxd rax, ecx
movzx edx, word [r11 + rax*2]
jmp 0x40aeb6
xor dx, dx
movzx eax, dx
lea ecx, [rcx + rax + 1]
dec r8
jne 0x40aea1
test ecx, ecx
js 0x40aed4
cmp ecx, ebx
jge 0x40aed4
movsxd rax, ecx
movzx edx, word [r11 + rax*2]
jmp 0x40aed7
xor dx, dx
movzx r8d, dx
lea eax, [rcx + 1]
cdqe
lea rdx, [r11 + rax*2]
lea rcx, [rsp + 0x60]
call fcn.00403290
nop
mov qword [rsi + 8], rdi
mov dword [rsi + 0x10], edi
mov qword [rsi], r15
mov dword [rsi + 0x18], edi
xor edx, edx
mov rcx, rsi
call qword [0x004395d0]
nop
mov qword [rsi], r13
movsxd rbp, dword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
movsxd rbx, dword [rsi + 0x10]
lea edx, [rbx + rbp]
mov rcx, rsi
call qword [0x00439610]
cmp ebx, ebx
jge 0x40af40
mov rdx, rbx
add rdx, qword [rsi + 8]
lea rcx, [rdx + rbp]
mov eax, ebx
sub eax, ebx
movsxd r8, eax
call fcn.004230d0
mov r8, rbp
mov rcx, rbx
add rcx, qword [rsi + 8]
mov rdx, r12
call fcn.004230d0
nop
lea rax, [0x00439658]
mov qword [rsi], 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 0x40af7e
call fcn.004230a0
mov rax, rsi
mov rbx, qword [rsp + 0x170]
mov rbp, qword [rsp + 0x178]
mov rsi, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x148]
mov r12, qword [rsp + 0x140]
mov r13, qword [rsp + 0x138]
mov r14, qword [rsp + 0x130]
mov r15, qword [rsp + 0x128]
add rsp, 0x158
ret