Function at 0x14002af20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r12
push r14
mov eax, 0x200c8
call fcn.1400e08d0
sub rsp, rax
movzx edi, r9b
mov rsi, r8
mov r14, rdx
mov r12, rcx
test r8, r8
je 0x14002b2f6
cmp word [r8], 0
je 0x14002b2f6
mov qword [rsp + 0x200f0], rbx
mov ebx, dword [0x14012c398]
mov qword [rsp + 0x200f8], rbp
movsxd rbp, dword [0x14012c39c]
cmp ebp, ebx
jl 0x14002aff5
cmp ebp, 0xffff
jl 0x14002af96
lea r8, [0x1400f1604]
lea rdx, str.Too_many_includes.
call fcn.14004e5d0
jmp 0x14002b217
test ebx, ebx
je 0x14002afab
add ebx, ebx
cmp ebx, 0xffff
jle 0x14002afb0
mov ebx, 0xffff
jmp 0x14002afb0
mov ebx, WSAAsyncSelect
mov rcx, qword [0x14012c390]
movsxd rdx, ebx
shl rdx, 3
call fcn.1400d6568
mov r11, rax
test rax, rax
jne 0x14002afe6
lea r8, [0x1400f1604]
lea rdx, str.Out_of_memory.
mov rcx, r12
call fcn.14004e5d0
jmp 0x14002b217
mov qword [0x14012c390], rax
mov dword [0x14012c398], ebx
jmp 0x14002affc
mov r11, qword [0x14012c390]
mov qword [rsp + 0x200c0], r15
xor r15d, r15d
test ebp, ebp
jne 0x14002b021
cmp word [rsi], 0x2a
je 0x14002b027
mov rax, qword [r12 + 0xb80]
mov qword [r11], rax
jmp 0x14002b0b1
cmp word [rsi], 0x2a
jne 0x14002b050
lea rcx, [rsp + 0x40]
mov r8d, 0x7fff
mov rdx, rsi
call fcn.1400d9e34
lea rcx, [rsp + 0x40]
mov word [rsp + 0x1003e], r15w
call qword [sym.imp.USER32.dll_CharUpperW]
jmp 0x14002b06b
lea r9, [rsp + 0x20100]
lea r8, [rsp + 0x40]
mov edx, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test dil, dil
jne 0x14002b0a6
mov rbx, r15
test ebp, ebp
jle 0x14002b0a6
nop word [rax + rax]
mov rcx, qword [0x14012c390]
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx + rbx*8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14002b14b
inc rbx
cmp rbx, rbp
jl 0x14002b080
mov rax, qword [0x14012c390]
mov qword [rax + rbp*8], r15
cmp word [rsi], 0x2a
mov edi, dword [0x14012aa28]
mov qword [rsp + 0x20108], r13
mov r13, rsi
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x38], r15d
mov byte [rsp + 0x3c], r15b
jne 0x14002b155
cmp word [rsi + 2], r15w
lea rdx, [rsi + 2]
je 0x14002b155
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14002b155
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002b174
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002b174
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, 0x58
lea r13, [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov edi, 0xfde9
call fcn.1400d6c78
test rax, rax
je 0x14002b16e
mov rcx, rax
call fcn.140028470
jmp 0x14002b171
mov eax, 1
jmp 0x14002b20f
mov ecx, 0x48
call fcn.1400d6c78
test rax, rax
je 0x14002b16e
mov rcx, rax
call fcn.140005990
jmp 0x14002b171
mov rax, r15
mov qword [r14], rax
mov rbx, qword [r14]
test rbx, rbx
je 0x14002b29c
mov dword [rsp + 0x20100], 0x30c
mov rax, qword [rbx]
lea r8, [rsp + 0x20100]
mov rdx, r13
mov rcx, rbx
mov dword [rbx + 0xc], r15d
call qword [rax + reloc.WSOCK32.dll_htonl]
test al, al
je 0x14002b29c
lea rdx, [rsp + 0x20100]
mov r8d, edi
mov rcx, rbx
call fcn.1400b6090
test al, al
je 0x14002b29c
mov rax, qword [0x14012c390]
cmp qword [rax + rbp*8], r15
jne 0x14002b235
lea rcx, [rsp + 0x40]
or rdx, 0xffffffffffffffff
call fcn.1400b5530
mov rcx, qword [0x14012c390]
mov qword [rcx + rbp*8], rax
test rax, rax
jne 0x14002b235
lea r8, [0x1400f1604]
lea rdx, str.Out_of_memory.
mov rcx, r12
call fcn.14004e5d0
mov r13, qword [rsp + 0x20108]
mov r15, qword [rsp + 0x200c0]
mov rbx, qword [rsp + 0x200f0]
mov rbp, qword [rsp + 0x200f8]
add rsp, 0x200c8
pop r14
pop r12
pop rdi
pop rsi
ret
inc dword [0x14012c39c]
test ebp, ebp
jne 0x14002b292
lea edx, [rbp + 2]
lea r8d, [rbp + 0xa]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14002b26c
lea rdx, [0x1400f8a70]
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call fcn.14002b310
test eax, eax
je 0x14002b28b
mov rdx, qword [r12 + 0xbc8]
test rdx, rdx
je 0x14002b292
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call fcn.14002b310
test eax, eax
jne 0x14002b292
xor eax, eax
jmp 0x14002b207
mov eax, 3
jmp 0x14002b207
cmp byte [rsp + 0x20110], r15b
je 0x14002b2b0
mov eax, 1
jmp 0x14002b207
lea rax, str.Include
test ebp, ebp
lea r9, str.Script
lea r8, str._s_file___s__cannot_be_opened.
lea rcx, [rsp + 0x10040]
mov edx, 0x8040
cmovne r9, rax
mov qword [rsp + 0x20], rsi
call fcn.1400b8860
lea r8, [0x1400f1604]
lea rdx, [rsp + 0x10040]
jmp 0x14002b1ff
xor eax, eax
add rsp, 0x200c8
pop r14
pop r12
pop rdi
pop rsi
ret