Function at 0x4af300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0xa0
mov rbp, rsp
mov qword [rbp + 0x68], rcx
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], r8
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0x88], 0
nop
mov qword [rbp + 0x98], 0
mov rax, qword [rbp + 0x58]
mov dword [rax], 0
mov rax, qword [rbp + 0x60]
mov dword [rax], 0
mov rcx, qword [rbp + 0x68]
call fcn.00414480
mov rbx, rax
mov rcx, rbx
call fcn.004af170
test rax, rax
je 0x4af381
mov qword [rbp + 0x68], rbx
jmp 0x4af38a
mov rcx, qword [rbp + 0x68]
call fcn.004af170
test rax, rax
je 0x4af8e3
mov rcx, qword [rbp + 0x68]
mov rdx, rax
call sub.kernel32.dll_LoadResource
test rax, rax
je 0x4af8e3
mov rcx, rax
call sub.kernel32.dll_LockResource
mov rbx, rax
mov rcx, qword [0x00af2210]
call fcn.00410ba0
mov esi, eax
mov rcx, qword [0x00af2210]
call fcn.00410ba0
mov rcx, rbx
mov rdx, qword [0x00af2210]
mov r8d, esi
mov r9d, eax
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x7fffffff
mov rax, qword [0x00b6e6c8]
call qword [rax]
test eax, eax
jne 0x4af8e3
mov rcx, qword [0x00af2210]
call fcn.00410ba0
movsxd rax, eax
add rbx, rax
mov rax, qword [rbp + 0x58]
mov dword [rax], 0x93
mov ecx, 0x40
mov rax, qword [rbp + 0x58]
mov edx, dword [rax]
imul edx, edx, 0x16
movsxd rdx, edx
call sub.kernel32.dll_LocalAlloc
mov qword [rbp + 0x98], rax
mov rcx, qword [rbp + 0x98]
call fcn.00503200
jmp 0x4af8d9
movzx rsi, byte [rbx]
lea rdi, [rbx + 1]
test esi, esi
je 0x4af8e2
movzx rax, byte [rbx]
add eax, 2
mov eax, eax
add rbx, rax
movzx rax, byte [rbx - 1]
cmp rax, 7
jg 0x4af4b4
cmp rax, 7
je 0x4af62e
sub rax, 2
test rax, rax
je 0x4af4ee
sub rax, 1
test rax, rax
je 0x4af536
sub rax, 1
test rax, rax
je 0x4af57e
sub rax, 2
test rax, rax
jne 0x4af87b
jmp 0x4af5c4
sub rax, 8
cmp rax, 2
jb 0x4af6ab
sub rax, 4
test rax, rax
je 0x4af6f5
sub rax, 6
test rax, rax
je 0x4af75d
sub rax, 2
test rax, rax
jne 0x4af87b
jmp 0x4af803
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x60]
lea r8, [rbp + 0x98]
mov r9, rdi
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x30], 0
movsx rax, byte [rbx]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call fcn.004af1a0
add rbx, 1
jmp 0x4af8d9
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x60]
lea r8, [rbp + 0x98]
mov r9, rdi
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x30], 0
movsx rax, word [rbx]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call fcn.004af1a0
add rbx, 2
jmp 0x4af8d9
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x60]
lea r8, [rbp + 0x98]
mov r9, rdi
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x30], 0
mov eax, dword [rbx]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call fcn.004af1a0
add rbx, 4
jmp 0x4af8d9
lea rcx, [rbp + 0x88]
lea rdx, [rbx + 1]
movzx r8, byte [rbx]
xor r9, r9
call fcn.004106d0
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x60]
lea r8, [rbp + 0x98]
mov r9, rdi
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
call fcn.004af1a0
movzx rax, byte [rbx]
add eax, 1
mov eax, eax
add rbx, rax
jmp 0x4af8d9
lea rcx, [rbp + 0x88]
lea rdx, [rbx + 1]
movzx r8, byte [rbx]
xor r9, r9
call fcn.004106d0
lea rcx, [rbp + 0x90]
mov rdx, qword [rbp + 0x88]
call fcn.00427cf0
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x60]
lea r8, [rbp + 0x98]
mov r9, rdi
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rbp + 0x90]
mov qword [rsp + 0x48], rax
call fcn.004af1a0
movzx rax, byte [rbx]
add eax, 1
mov eax, eax
add rbx, rax
jmp 0x4af8d9
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x60]
lea r8, [rbp + 0x98]
mov r9, rdi
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x28], 2
cmp byte [rbx - 1], 9
sete al
mov byte [rsp + 0x30], al
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call fcn.004af1a0
jmp 0x4af8d9
lea rcx, [rbp + 0x88]
lea rdx, [rbx + 4]
mov r8d, dword [rbx]
xor r9, r9
call fcn.004106d0
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x60]
lea r8, [rbp + 0x98]
mov r9, rdi
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
call fcn.004af1a0
mov eax, dword [rbx]
add eax, 4
movsxd rax, eax
add rbx, rax
jmp 0x4af8d9
lea rcx, [rbp + 0x90]
mov edx, dword [rbx]
call fcn.00412320
add rbx, 4
cmp qword [rbp + 0x90], 0
je 0x4af7a8
lea rcx, [rbp + 0x90]
call fcn.00410ca0
mov r13, rax
mov rcx, qword [rbp + 0x90]
call fcn.00410b80
mov rcx, rbx
mov rdx, r13
mov r8d, eax
add r8d, r8d
movsxd r8, r8d
call fcn.00408e20
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x60]
lea r8, [rbp + 0x98]
mov r9, rdi
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rbp + 0x90]
mov qword [rsp + 0x48], rax
call fcn.004af1a0
mov rcx, qword [rbp + 0x90]
call fcn.00410b80
add eax, eax
movsxd rax, eax
add rbx, rax
jmp 0x4af8d9
lea rcx, [rbp + 0x88]
lea rdx, [rbx + 4]
mov r8d, dword [rbx]
xor r9, r9
call fcn.004106d0
lea rcx, [rbp + 0x90]
mov rdx, qword [rbp + 0x88]
call fcn.00427cf0
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x60]
lea r8, [rbp + 0x98]
mov r9, rdi
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rbp + 0x90]
mov qword [rsp + 0x48], rax
call fcn.004af1a0
mov eax, dword [rbx]
add eax, 4
movsxd rax, eax
add rbx, rax
jmp 0x4af8d9
lea rcx, [rbp + 0x70]
movzx rdx, byte [rbx - 1]
mov r8d, 1
mov r9b, 0x30
call fcn.00425bd0
lea rcx, [rbp + 0x78]
mov edx, 3
lea r8, [0x004af988]
mov r9, qword [rbp + 0x70]
lea rax, [0x004af9c0]
mov qword [rsp + 0x20], rax
call fcn.00411470
mov rcx, qword [rbp + 0x78]
call fcn.004115a0
xor rcx, rcx
mov rdx, rax
lea r8, [0x004af9c3]
xor r9, r9
call sub.user32.dll_MessageBoxA
jmp 0x4af8e2
cmp byte [rbx], 0
jne 0x4af44e
nop
nop
lea rcx, [rbp + 0x70]
mov edx, 2
call fcn.00410470
lea rcx, [rbp + 0x88]
call fcn.004103b0
lea rcx, [rbp + 0x90]
call fcn.00410360
mov rax, qword [rbp + 0x98]
lea rsp, [rbp + 0xa0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret