Function at 0x4202c0
Capabilities:
Extract resource via kernel32 functions
Set file attributes

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0xd0
mov rbp, rsp
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x90], 0
lea rcx, [rbp + 0x9c]
mov rdx, qword [0x00414f60]
call fcn.0040bfc0
nop
mov rcx, qword [0x004311b0]
lea rdx, [0x004209f4]
mov r8d, 0xa
call sub.KERNEL32.DLL_FindResourceW
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
test rax, rax
je 0x420948
mov rcx, qword [0x004311b0]
mov rdx, qword [rbp + 0x38]
call sub.KERNEL32.DLL_SizeofResource
mov ebx, eax
test ebx, ebx
je 0x420948
mov rcx, qword [0x004311b0]
mov rdx, qword [rbp + 0x38]
call sub.KERNEL32.DLL_LoadResource
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x420948
mov rcx, qword [rbp + 0x40]
call sub.KERNEL32.DLL_LockResource
mov rcx, rax
mov qword [rbp + 0x48], rcx
lea rdx, [rbp + 0x9c]
mov r8d, 4
call fcn.00405120
mov rax, qword [rbp + 0x48]
add rax, 4
mov qword [rbp + 0x48], rax
mov eax, dword [rbp + 0x9c]
test eax, eax
jbe 0x42069e
lea rcx, [rbp + 0xa0]
mov rdx, qword [0x00414d80]
mov r8d, 1
mov r9d, eax
call fcn.0040d450
lea rcx, [rbp + 0xa8]
mov rdx, qword [0x00414dd0]
mov r8d, 1
mov r9d, dword [rbp + 0x9c]
call fcn.0040d450
lea rcx, [rbp + 0xb0]
mov rdx, qword [0x00414e20]
mov r8d, 1
mov r9d, dword [rbp + 0x9c]
call fcn.0040d450
lea rcx, [rbp + 0xb8]
mov rdx, qword [0x00414e70]
mov r8d, 1
mov r9d, dword [rbp + 0x9c]
call fcn.0040d450
lea rcx, [rbp + 0xc0]
mov rdx, qword [0x00414ec0]
mov r8d, 1
mov r9d, dword [rbp + 0x9c]
call fcn.0040d450
lea rcx, [rbp + 0xc8]
mov rdx, qword [0x00414f10]
mov r8d, 1
mov r9d, dword [rbp + 0x9c]
call fcn.0040d450
xor eax, eax
mov ebx, dword [rbp + 0x9c]
sub ebx, 1
mov esi, eax
cmp esi, ebx
jg 0x4204f7
sub ebx, eax
add ebx, 1
movsxd rdi, esi
mov rax, qword [rbp + 0xa0]
lea rcx, [rax + rdi*8]
mov rdx, qword [rbp + 0x48]
call fcn.0040b540
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + rdi*8]
xor ecx, ecx
test rax, rax
je 0x4204dc
mov ecx, dword [rax - 4]
add ecx, 1
movsxd rcx, ecx
mov rax, qword [rbp + 0x48]
add rax, rcx
mov qword [rbp + 0x48], rax
add esi, 1
sub ebx, 1
test ebx, ebx
jne 0x4204b0
nop
xor eax, eax
mov ebx, dword [rbp + 0x9c]
sub ebx, 1
mov esi, eax
cmp esi, ebx
jg 0x420555
sub ebx, eax
add ebx, 1
movsxd rdi, esi
mov rax, qword [rbp + 0xa8]
lea rcx, [rax + rdi*8]
mov rdx, qword [rbp + 0x48]
call fcn.0040b540
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax + rdi*8]
xor ecx, ecx
test rax, rax
je 0x42053a
mov ecx, dword [rax - 4]
add ecx, 1
movsxd rcx, ecx
mov rax, qword [rbp + 0x48]
add rax, rcx
mov qword [rbp + 0x48], rax
add esi, 1
sub ebx, 1
test ebx, ebx
jne 0x42050e
nop
xor eax, eax
mov ebx, dword [rbp + 0x9c]
sub ebx, 1
mov esi, eax
cmp esi, ebx
jg 0x4205a3
sub ebx, eax
add ebx, 1
mov rax, qword [rbp + 0xb0]
movsxd rcx, esi
lea rax, [rax + rcx]
mov rcx, qword [rbp + 0x48]
mov rdx, rax
mov r8d, 1
call fcn.00405120
mov rax, qword [rbp + 0x48]
add rax, 1
mov qword [rbp + 0x48], rax
add esi, 1
sub ebx, 1
test ebx, ebx
jne 0x42056c
nop
xor eax, eax
mov ebx, dword [rbp + 0x9c]
sub ebx, 1
mov esi, eax
cmp esi, ebx
jg 0x4205f1
sub ebx, eax
add ebx, 1
mov rax, qword [rbp + 0xb8]
movsxd rcx, esi
lea rax, [rax + rcx]
mov rcx, qword [rbp + 0x48]
mov rdx, rax
mov r8d, 1
call fcn.00405120
mov rax, qword [rbp + 0x48]
add rax, 1
mov qword [rbp + 0x48], rax
add esi, 1
sub ebx, 1
test ebx, ebx
jne 0x4205ba
nop
xor eax, eax
mov ebx, dword [rbp + 0x9c]
sub ebx, 1
mov esi, eax
cmp esi, ebx
jg 0x42064f
sub ebx, eax
add ebx, 1
movsxd rdi, esi
mov rax, qword [rbp + 0xc0]
lea rcx, [rax + rdi*8]
mov rdx, qword [rbp + 0x48]
call fcn.0040b540
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax + rdi*8]
xor ecx, ecx
test rax, rax
je 0x420634
mov ecx, dword [rax - 4]
add ecx, 1
movsxd rcx, ecx
mov rax, qword [rbp + 0x48]
add rax, rcx
mov qword [rbp + 0x48], rax
add esi, 1
sub ebx, 1
test ebx, ebx
jne 0x420608
nop
xor eax, eax
mov ebx, dword [rbp + 0x9c]
sub ebx, 1
mov esi, eax
cmp esi, ebx
jg 0x42069d
sub ebx, eax
add ebx, 1
mov rax, qword [rbp + 0xc8]
movsxd rcx, esi
lea rax, [rax + rcx*4]
mov rcx, qword [rbp + 0x48]
mov rdx, rax
mov r8d, 4
call fcn.00405120
mov rax, qword [rbp + 0x48]
add rax, 4
mov qword [rbp + 0x48], rax
add esi, 1
sub ebx, 1
test ebx, ebx
jne 0x420666
nop
mov rax, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x38]
call sub.KERNEL32.DLL_FreeResource
xor eax, eax
mov r13d, dword [rbp + 0x9c]
sub r13d, 1
mov esi, eax
cmp esi, r13d
jg 0x420946
sub r13d, eax
add r13d, 1
lea rcx, [rbp + 0x80]
mov edx, esi
add edx, 1
call fcn.00412cd0
lea rcx, [rbp + 0x88]
lea rdx, [0x00420a10]
mov r8, qword [rbp + 0x80]
call fcn.0040b880
mov rcx, qword [rbp + 0x88]
call fcn.0040b4d0
mov rcx, qword [0x004311b0]
mov rdx, rax
mov r8d, 0xa
call sub.KERNEL32.DLL_FindResourceW
mov qword [rbp + 0x38], rax
mov rcx, qword [0x004311b0]
mov rdx, qword [rbp + 0x38]
call sub.KERNEL32.DLL_SizeofResource
mov ebx, eax
mov rcx, qword [0x004311b0]
mov rdx, qword [rbp + 0x38]
call sub.KERNEL32.DLL_LoadResource
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x420759
mov rcx, qword [rbp + 0x40]
call sub.KERNEL32.DLL_LockResource
mov qword [rbp + 0x48], rax
jmp 0x42075b
xor ebx, ebx
lea rcx, [rbp + 0x90]
call fcn.0040a4b0
movsxd rdi, esi
mov rax, qword [rbp + 0xa8]
cmp qword [rax + rdi*8], 0
jne 0x4207ad
lea rcx, [rbp + 0x70]
xor edx, edx
call fcn.004053d0
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0x70]
call fcn.00412f50
lea rcx, [rbp + 0x90]
mov rdx, qword [rbp + 0x78]
mov rax, qword [rbp + 0xa0]
mov r8, qword [rax + rdi*8]
call fcn.0040b880
jmp 0x420824
lea rcx, [rbp + 0x90]
mov rax, qword [rbp + 0xa8]
mov rdx, qword [rax + rdi*8]
call fcn.0041e630
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
xor r8, r8
call fcn.0040b220
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
call fcn.004127b0
lea rcx, [rbp + 0x90]
mov rdx, qword [rbp + 0x68]
call fcn.0040b620
lea rcx, [rbp + 0x90]
mov edx, 3
mov r8, qword [rbp + 0x90]
lea r9, [0x00420a20]
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + rdi*8]
mov qword [rsp + 0x20], rax
call fcn.0040b9b0
mov rcx, qword [rbp + 0x90]
call fcn.00413030
test al, al
je 0x420887
mov rax, qword [rbp + 0xb0]
cmp byte [rax + rdi], 0
je 0x420872
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + rdi*8]
call fcn.0040b4d0
xor ecx, ecx
lea rdx, [0x00420a24]
mov r8, rax
mov r9d, 0x34
call sub.USER32.DLL_MessageBoxW
cmp eax, 7
je 0x420929
mov rcx, qword [rbp + 0x90]
mov rdx, qword [rbp + 0x48]
mov r8d, ebx
call fcn.00420190
jmp 0x42089a
mov rcx, qword [rbp + 0x90]
mov rdx, qword [rbp + 0x48]
mov r8d, ebx
call fcn.00420190
mov rax, qword [rbp + 0xc8]
mov ebx, dword [rax + rdi*4]
test ebx, ebx
jle 0x4208be
mov rcx, qword [rbp + 0x90]
call fcn.0040b4d0
mov rcx, rax
mov edx, ebx
call sub.KERNEL32.DLL_SetFileAttributesW
mov rax, qword [rbp + 0xb8]
cmp byte [rax + rdi], 0
je 0x420929
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x90]
call fcn.0040b680
mov rcx, qword [rbp + 0x58]
call fcn.0040b280
mov rbx, rax
lea rcx, [rbp + 0x50]
mov rax, qword [rbp + 0xc0]
mov rdx, qword [rax + rdi*8]
call fcn.0040b680
mov rcx, qword [rbp + 0x50]
call fcn.0040b280
xor ecx, ecx
lea rdx, [0x00420a94]
mov r8, rbx
mov r9, rax
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 1
call fcn.00413b40
mov rax, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x38]
call sub.KERNEL32.DLL_FreeResource
add esi, 1
sub r13d, 1
test r13d, r13d
jne 0x4206ca
nop
nop
lea rcx, [rbp + 0x50]
mov edx, 2
call fcn.0040a5f0
lea rcx, [rbp + 0x60]
mov edx, 2
call fcn.0040a5c0
lea rcx, [rbp + 0x70]
mov edx, 5
call fcn.0040a590
lea rcx, [rbp + 0x9c]
mov rdx, qword [0x00414f60]
call fcn.0040c150
lea rsp, [rbp + 0xd0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret