Function at 0x14002ad40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r12
push r14
mov eax, 0x200c8
call fcn.1400e0020
sub rsp, rax
movzx edi, r9b
mov rsi, r8
mov r14, rdx
mov r12, rcx
test r8, r8
je 0x14002b116
cmp word [r8], 0
je 0x14002b116
mov qword [rsp + 0x200f0], rbx
mov ebx, dword [0x14012b378]
mov qword [rsp + 0x200f8], rbp
movsxd rbp, dword [0x14012b37c]
cmp ebp, ebx
jl 0x14002ae15
cmp ebp, 0xffff
jl 0x14002adb6
lea r8, [0x1400f0524]
lea rdx, str.Too_many_includes.
call fcn.14004e080
jmp 0x14002b037
test ebx, ebx
je 0x14002adcb
add ebx, ebx
cmp ebx, 0xffff
jle 0x14002add0
mov ebx, 0xffff
jmp 0x14002add0
mov ebx, WSAAsyncSelect
mov rcx, qword [0x14012b370]
movsxd rdx, ebx
shl rdx, 3
call fcn.1400d5c18
mov r11, rax
test rax, rax
jne 0x14002ae06
lea r8, [0x1400f0524]
lea rdx, str.Out_of_memory.
mov rcx, r12
call fcn.14004e080
jmp 0x14002b037
mov qword [0x14012b370], rax
mov dword [0x14012b378], ebx
jmp 0x14002ae1c
mov r11, qword [0x14012b370]
mov qword [rsp + 0x200c0], r15
xor r15d, r15d
test ebp, ebp
jne 0x14002ae41
cmp word [rsi], 0x2a
je 0x14002ae47
mov rax, qword [r12 + 0xb80]
mov qword [r11], rax
jmp 0x14002aed1
cmp word [rsi], 0x2a
jne 0x14002ae70
lea rcx, [rsp + 0x40]
mov r8d, 0x7fff
mov rdx, rsi
call fcn.1400d94e4
lea rcx, [rsp + 0x40]
mov word [rsp + 0x1003e], r15w
call qword [sym.imp.USER32.dll_CharUpperW]
jmp 0x14002ae8b
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 0x14002aec6
mov rbx, r15
test ebp, ebp
jle 0x14002aec6
nop word [rax + rax]
mov rcx, qword [0x14012b370]
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx + rbx*8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14002af6b
inc rbx
cmp rbx, rbp
jl 0x14002aea0
mov rax, qword [0x14012b370]
mov qword [rax + rbp*8], r15
cmp word [rsi], 0x2a
mov edi, dword [0x140129a08]
mov qword [rsp + 0x20108], r13
mov r13, rsi
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x38], r15d
mov byte [rsp + 0x3c], r15b
jne 0x14002af75
cmp word [rsi + 2], r15w
lea rdx, [rsi + 2]
je 0x14002af75
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14002af75
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002af94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002af94
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.1400d6328
test rax, rax
je 0x14002af8e
mov rcx, rax
call fcn.140028280
jmp 0x14002af91
mov eax, 1
jmp 0x14002b02f
mov ecx, 0x48
call fcn.1400d6328
test rax, rax
je 0x14002af8e
mov rcx, rax
call fcn.140005960
jmp 0x14002af91
mov rax, r15
mov qword [r14], rax
mov rbx, qword [r14]
test rbx, rbx
je 0x14002b0bc
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 0x14002b0bc
lea rdx, [rsp + 0x20100]
mov r8d, edi
mov rcx, rbx
call fcn.1400b5900
test al, al
je 0x14002b0bc
mov rax, qword [0x14012b370]
cmp qword [rax + rbp*8], r15
jne 0x14002b055
lea rcx, [rsp + 0x40]
or rdx, 0xffffffffffffffff
call fcn.1400b4da0
mov rcx, qword [0x14012b370]
mov qword [rcx + rbp*8], rax
test rax, rax
jne 0x14002b055
lea r8, [0x1400f0524]
lea rdx, str.Out_of_memory.
mov rcx, r12
call fcn.14004e080
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 [0x14012b37c]
test ebp, ebp
jne 0x14002b0b2
lea edx, [rbp + 2]
lea r8d, [rbp + 0xa]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14002b08c
lea rdx, [0x1400f7990]
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call fcn.14002b130
test eax, eax
je 0x14002b0ab
mov rdx, qword [r12 + 0xbc8]
test rdx, rdx
je 0x14002b0b2
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call fcn.14002b130
test eax, eax
jne 0x14002b0b2
xor eax, eax
jmp 0x14002b027
mov eax, 3
jmp 0x14002b027
cmp byte [rsp + 0x20110], r15b
je 0x14002b0d0
mov eax, 1
jmp 0x14002b027
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.1400b80b0
lea r8, [0x1400f0524]
lea rdx, [rsp + 0x10040]
jmp 0x14002b01f
xor eax, eax
add rsp, 0x200c8
pop r14
pop r12
pop rdi
pop rsi
ret