Function at 0x180018180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov rdi, rsp
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x160]
mov qword [rsp + 0x128], 0xfffffffffffffffe
mov rax, qword [rsp + 0x160]
add rax, 0x50
mov rcx, rax
call fcn.1800133b0
test rax, rax
jle 0x1800181d3
mov eax, 1
jmp 0x1800188af
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov eax, 0xffff
mov word [rsp + 0x3c], ax
mov rax, qword [rsp + 0x160]
cmp qword [rax + 0x28], 0
jne 0x18001821e
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x180018842
mov rax, qword [rsp + 0x160]
cmp qword [rax + 0x38], 0
jne 0x18001829b
lea rcx, [rsp + 0x48]
call fcn.180047384
nop
lea r8, [rsp + 0x48]
mov rax, qword [rsp + 0x160]
mov rdx, qword [rax + 0x28]
mov rcx, qword [rsp + 0x160]
call fcn.180018960
lea rcx, [rsp + 0x48]
call fcn.1800133b0
test rax, rax
jne 0x180018274
lea rcx, [rsp + 0x48]
call fcn.1800473a4
jmp 0x180018842
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180013370
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x160]
call fcn.180017f80
nop
lea rcx, [rsp + 0x48]
call fcn.1800473a4
mov rax, qword [rsp + 0x160]
movzx eax, word [rax + 0x48]
cmp eax, 0xffff
jne 0x180018543
lea rcx, [rsp + 0x88]
call fcn.18004758c
nop
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x160]
call fcn.180018a10
lea rcx, [rsp + 0x88]
call fcn.1800133b0
test rax, rax
jne 0x1800182f9
lea rcx, [rsp + 0x88]
call fcn.1800475ac
jmp 0x180018842
lea rcx, [rsp + 0x88]
call fcn.1800133b0
cmp rax, 1
jne 0x180018336
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.180013430
movzx eax, word [rax]
mov word [rsp + 0x3c], ax
xor eax, eax
mov rcx, qword [rsp + 0x160]
mov word [rcx + 0x48], ax
jmp 0x180018536
mov dword [rsp + 0xb4], 0
jmp 0x180018353
mov eax, dword [rsp + 0xb4]
inc eax
mov dword [rsp + 0xb4], eax
movsxd rax, dword [rsp + 0xb4]
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x88]
call fcn.1800133b0
mov rcx, qword [rsp + 0x130]
cmp rcx, rax
jge 0x180018505
movsxd rax, dword [rsp + 0xb4]
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.180013430
movzx eax, word [rax]
and eax, 0x3ff
cmp eax, 9
jne 0x18001844e
mov rax, qword [rsp + 0x160]
movzx eax, word [rax + 0x48]
and eax, 0x3ff
cmp eax, 9
je 0x1800183e9
movsxd rax, dword [rsp + 0xb4]
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.180013430
mov rcx, qword [rsp + 0x160]
movzx eax, word [rax]
mov word [rcx + 0x48], ax
jmp 0x180018449
mov rax, qword [rsp + 0x160]
movzx eax, word [rax + 0x48]
mov dword [rsp + 0x138], eax
movsxd rcx, dword [rsp + 0xb4]
mov rdx, rcx
lea rcx, [rsp + 0x88]
call fcn.180013430
movzx eax, word [rax]
mov ecx, dword [rsp + 0x138]
cmp ecx, eax
jge 0x180018449
movsxd rax, dword [rsp + 0xb4]
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.180013430
mov rcx, qword [rsp + 0x160]
movzx eax, word [rax]
mov word [rcx + 0x48], ax
jmp 0x180018500
movsxd rax, dword [rsp + 0xb4]
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.180013430
movzx eax, word [rax]
and eax, 0x3ff
cmp eax, 4
jne 0x180018500
mov rax, qword [rsp + 0x160]
movzx eax, word [rax + 0x48]
and eax, 0x3ff
cmp eax, 9
je 0x180018500
mov rax, qword [rsp + 0x160]
movzx eax, word [rax + 0x48]
cmp eax, 0xffff
je 0x1800184d9
mov rax, qword [rsp + 0x160]
movzx eax, word [rax + 0x48]
mov dword [rsp + 0x13c], eax
movsxd rcx, dword [rsp + 0xb4]
mov rdx, rcx
lea rcx, [rsp + 0x88]
call fcn.180013430
movzx eax, word [rax]
mov ecx, dword [rsp + 0x13c]
cmp ecx, eax
jge 0x180018500
movsxd rax, dword [rsp + 0xb4]
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.180013430
mov rcx, qword [rsp + 0x160]
movzx eax, word [rax]
mov word [rcx + 0x48], ax
jmp 0x180018343
mov rax, qword [rsp + 0x160]
movzx eax, word [rax + 0x48]
cmp eax, 0xffff
jne 0x180018536
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.180013430
mov rcx, qword [rsp + 0x160]
movzx eax, word [rax]
mov word [rcx + 0x48], ax
lea rcx, [rsp + 0x88]
call fcn.1800475ac
mov rcx, qword [rsp + 0x160]
call fcn.180018060
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180018562
jmp 0x180018842
mov rax, qword [rsp + 0x160]
movzx r9d, word [rax + 0x48]
mov rax, qword [rsp + 0x160]
mov r8, qword [rax + 0x38]
mov rax, qword [rsp + 0x160]
mov rdx, qword [rax + 0x28]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
jne 0x1800185aa
jmp 0x180018842
mov rax, qword [rsp + 0x160]
movzx eax, word [rax + 0x48]
test eax, eax
jne 0x1800185d7
movzx eax, word [rsp + 0x3c]
cmp eax, 0xffff
je 0x1800185d7
mov rax, qword [rsp + 0x160]
movzx ecx, word [rsp + 0x3c]
mov word [rax + 0x48], cx
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
jne 0x180018600
jmp 0x180018842
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180018625
jmp 0x180018842
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
jne 0x180018648
jmp 0x180018842
mov dword [rsp + 0xd0], 0
mov dword [rsp + 0xd0], 0
jmp 0x180018670
mov eax, dword [rsp + 0xd0]
inc eax
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 2
jge 0x18001882d
mov dword [rsp + 0xd4], 0
mov eax, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x160]
add rcx, 0x50
mov r8, 0xffffffffffffffff
mov edx, eax
call fcn.1800470a0
mov rax, qword [rsp + 0x160]
add rax, 0x50
mov rcx, rax
call fcn.18001b0f0
mov r8d, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0xc8]
mov rcx, rax
call fcn.180018110
test eax, eax
je 0x1800186f5
mov rax, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x20], rcx
mov dword [rsp + 0x20], 1
jmp 0x180018700
mov dword [rsp + 0xd4], 1
cmp dword [rsp + 0xd4], 0
je 0x180018714
cmp dword [rsp + 0xd0], 1
jne 0x180018719
jmp 0x18001882d
cmp dword [rsp + 0xd4], 0
je 0x180018828
mov rax, qword [rsp + 0x28]
and rax, 0xfffffffffffffffe
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe8], 0
lea rax, [rsp + 0xf0]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov r8d, 0x30
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18001877e
jmp 0x18001881c
mov rax, qword [rsp + 0xd8]
cmp qword [rsp + 0xc8], rax
jb 0x1800187e0
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0xc8], rax
ja 0x1800187e0
mov eax, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0xd8]
add rdx, rcx
mov rcx, rdx
cmp rax, rcx
jae 0x1800187e2
jmp 0x18001881c
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
sub rax, qword [rsp + 0xc8]
mov dword [rsp + 0xc0], eax
mov dword [rsp + 0xd4], 0
xor eax, eax
test eax, eax
jne 0x180018727
cmp dword [rsp + 0xd4], 0
je 0x180018828
jmp 0x18001882d
jmp 0x180018660
mov rcx, qword [rsp + 0x30]
call fcn.180007040
cmp dword [rsp + 0x38], 0
jne 0x1800181ff
cmp dword [rsp + 0x20], 0
jne 0x180018877
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x160]
mov dword [rcx + 8], eax
cmp qword [rsp + 0x30], 0
je 0x180018877
mov rcx, qword [rsp + 0x30]
call fcn.180007040
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rax, qword [rsp + 0x160]
add rax, 0x50
mov rcx, rax
call fcn.1800133b0
test rax, rax
jle 0x18001889d
mov dword [rsp + 0x140], 1
jmp 0x1800188a8
mov dword [rsp + 0x140], 0
mov eax, dword [rsp + 0x140]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180203258]
call fcn.18019270c
mov rax, rdi
add rsp, 0x150
pop rdi
ret