Function at 0x4af110
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.00414250
mov rbx, rax
mov rcx, rbx
call fcn.004aef80
test rax, rax
je 0x4af191
mov qword [rbp + 0x68], rbx
jmp 0x4af19a
mov rcx, qword [rbp + 0x68]
call fcn.004aef80
test rax, rax
je 0x4af6f3
mov rcx, qword [rbp + 0x68]
mov rdx, rax
call sub.kernel32.dll_LoadResource
test rax, rax
je 0x4af6f3
mov rcx, rax
call sub.kernel32.dll_LockResource
mov rbx, rax
mov rcx, qword [0x00b2f1a8]
call fcn.004108c0
mov esi, eax
mov rcx, qword [0x00b2f1a8]
call fcn.004108c0
mov rcx, rbx
mov rdx, qword [0x00b2f1a8]
mov r8d, esi
mov r9d, eax
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x7fffffff
mov rax, qword [0x00bb7120]
call qword [rax]
test eax, eax
jne 0x4af6f3
mov rcx, qword [0x00b2f1a8]
call fcn.004108c0
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.00503030
jmp 0x4af6e9
movzx rsi, byte [rbx]
lea rdi, [rbx + 1]
test esi, esi
je 0x4af6f2
movzx rax, byte [rbx]
add eax, 2
mov eax, eax
add rbx, rax
movzx rax, byte [rbx - 1]
cmp rax, 7
jg 0x4af2c4
cmp rax, 7
je 0x4af43e
sub rax, 2
test rax, rax
je 0x4af2fe
sub rax, 1
test rax, rax
je 0x4af346
sub rax, 1
test rax, rax
je 0x4af38e
sub rax, 2
test rax, rax
jne 0x4af68b
jmp 0x4af3d4
sub rax, 8
cmp rax, 2
jb 0x4af4bb
sub rax, 4
test rax, rax
je 0x4af505
sub rax, 6
test rax, rax
je 0x4af56d
sub rax, 2
test rax, rax
jne 0x4af68b
jmp 0x4af613
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.004aefb0
add rbx, 1
jmp 0x4af6e9
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.004aefb0
add rbx, 2
jmp 0x4af6e9
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.004aefb0
add rbx, 4
jmp 0x4af6e9
lea rcx, [rbp + 0x88]
lea rdx, [rbx + 1]
movzx r8, byte [rbx]
xor r9, r9
call fcn.004103f0
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.004aefb0
movzx rax, byte [rbx]
add eax, 1
mov eax, eax
add rbx, rax
jmp 0x4af6e9
lea rcx, [rbp + 0x88]
lea rdx, [rbx + 1]
movzx r8, byte [rbx]
xor r9, r9
call fcn.004103f0
lea rcx, [rbp + 0x90]
mov rdx, qword [rbp + 0x88]
call fcn.00427bf0
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.004aefb0
movzx rax, byte [rbx]
add eax, 1
mov eax, eax
add rbx, rax
jmp 0x4af6e9
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.004aefb0
jmp 0x4af6e9
lea rcx, [rbp + 0x88]
lea rdx, [rbx + 4]
mov r8d, dword [rbx]
xor r9, r9
call fcn.004103f0
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.004aefb0
mov eax, dword [rbx]
add eax, 4
movsxd rax, eax
add rbx, rax
jmp 0x4af6e9
lea rcx, [rbp + 0x90]
mov edx, dword [rbx]
call fcn.004120a0
add rbx, 4
cmp qword [rbp + 0x90], 0
je 0x4af5b8
lea rcx, [rbp + 0x90]
call fcn.004109c0
mov r13, rax
mov rcx, qword [rbp + 0x90]
call fcn.004108a0
mov rcx, rbx
mov rdx, r13
mov r8d, eax
add r8d, r8d
movsxd r8, r8d
call fcn.00408cc0
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.004aefb0
mov rcx, qword [rbp + 0x90]
call fcn.004108a0
add eax, eax
movsxd rax, eax
add rbx, rax
jmp 0x4af6e9
lea rcx, [rbp + 0x88]
lea rdx, [rbx + 4]
mov r8d, dword [rbx]
xor r9, r9
call fcn.004103f0
lea rcx, [rbp + 0x90]
mov rdx, qword [rbp + 0x88]
call fcn.00427bf0
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.004aefb0
mov eax, dword [rbx]
add eax, 4
movsxd rax, eax
add rbx, rax
jmp 0x4af6e9
lea rcx, [rbp + 0x70]
movzx rdx, byte [rbx - 1]
mov r8d, 1
mov r9b, 0x30
call fcn.00425ad0
lea rcx, [rbp + 0x78]
mov edx, 3
lea r8, [0x004af798]
mov r9, qword [rbp + 0x70]
lea rax, [0x004af7d0]
mov qword [rsp + 0x20], rax
call fcn.004111f0
mov rcx, qword [rbp + 0x78]
call fcn.00411320
xor rcx, rcx
mov rdx, rax
lea r8, [0x004af7d3]
xor r9, r9
call sub.user32.dll_MessageBoxA
jmp 0x4af6f2
cmp byte [rbx], 0
jne 0x4af25e
nop
nop
lea rcx, [rbp + 0x70]
mov edx, 2
call fcn.00410190
lea rcx, [rbp + 0x88]
call fcn.004100d0
lea rcx, [rbp + 0x90]
call fcn.00410080
mov rax, qword [rbp + 0x98]
lea rsp, [rbp + 0xa0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret