Function at 0x10001561
Capabilities:
Extract resource via kernel32 functions
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xd8
lea eax, [esp + 0x88]
mov dword [esp + 0x9c], 0xce9
mov ecx, esp
lea edx, [esp + 0x9c]
mov dword [ecx + 4], edx
lea edx, [esp + 0x90]
mov dword [ecx], edx
mov dword [ecx + 8], 0x967
mov ecx, dword [sym.imp.USER32.dll_GetRawInputDeviceList]
mov dword [esp + 0x84], eax
call ecx
sub esp, 0xc
mov ecx, esp
lea edx, [esp + 0xa0]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 0x45d
mov dword [ecx + 8], 0x756
mov dword [ecx], 0x92a63
mov ecx, dword [sym.imp.USER32.dll_DrawFrameControl]
mov dword [esp + 0x80], eax
call ecx
sub esp, 0x10
xor ecx, ecx
lea edx, [esp + 0xc0]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], ecx
jmp 0x10001625
mov eax, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call eax
mov ecx, esp
mov dword [ecx + 4], 0x426209
mov dword [ecx], 0x5d7a15
mov ecx, dword [sym.imp.USER32.dll_ValidateRgn]
mov dword [esp + 0x70], eax
call ecx
sub esp, 8
mov dword [esp + 0x6c], eax
jmp 0x1000188f
mov eax, dword [esp + 0x74]
mov ecx, esp
mov dword [ecx + 4], 0x7c0
mov dword [ecx], 0x3ad
mov ecx, dword [sym.imp.ADVAPI32.dll_AreAllAccessesGranted]
mov dword [esp + 0x68], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 0x10], 0x25b
mov dword [ecx + 0xc], 0xb56
mov dword [ecx + 8], 0xb56
mov dword [ecx + 4], 0x25b
mov dword [ecx], 0x8590
mov ecx, dword [sym.imp.USER32.dll_CopyImage]
mov dword [esp + 0x64], eax
call ecx
sub esp, 0x14
xor ecx, ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
jmp 0x1000168c
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x5c]
mov ecx, 0x38e38e39
mov dword [esp + 0x58], eax
mul ecx
shr edx, 2
imul eax, edx, 0x12
mov ecx, dword [esp + 0x58]
sub ecx, eax
mov eax, ecx
sub eax, 9
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
je 0x100016f2
jmp 0x100016b8
mov eax, dword [esp + 0x54]
sub eax, 2
mov dword [esp + 0x4c], eax
jne 0x1000170b
jmp 0x100016c7
mov eax, esp
mov dword [eax + 0xc], 0xbd5
mov dword [eax + 8], 1
mov dword [eax + 4], 0x950
mov dword [eax], 0xab5e7f
mov eax, dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
call eax
sub esp, 0x10
mov dword [esp + 0x48], eax
mov eax, esp
mov dword [eax + 4], 0x62b
mov dword [eax], 0xf0ea34
mov eax, dword [sym.imp.USER32.dll_SwitchToThisWindow]
call eax
sub esp, 8
mov eax, dword [esp + 0x58]
add eax, 1
cmp eax, 0xa8
mov dword [esp + 0x5c], eax
jne 0x1000168c
xor eax, eax
mov ecx, esp
mov dword [ecx + 0x14], 0xf25
mov dword [ecx + 0x10], 0x101d9d30
mov dword [ecx + 0xc], 0xf25
mov dword [ecx + 8], 0x101d9d44
mov dword [ecx + 4], 0xf69
mov dword [ecx], 0xc68
mov ecx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x44], eax
call ecx
sub esp, 0x18
xor ecx, ecx
mov edx, dword [esp + 0x68]
sub edx, 0xd
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
je 0x100015f7
jmp 0x1000177c
mov eax, dword [esp + 0x68]
sub eax, 0x30
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
jne 0x100017dd
jmp 0x10001793
mov eax, esp
mov dword [eax], 0xd6fb2e
mov eax, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
call eax
sub esp, 4
mov ecx, esp
lea edx, [esp + 0xb0]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x110
mov dword [ecx + 4], 0x531637
mov dword [ecx], 0xd0aea8
mov ecx, dword [sym.imp.USER32.dll_DrawCaption]
mov dword [esp + 0x2c], eax
call ecx
sub esp, 0x10
mov dword [esp + 0x28], eax
jmp 0x100015f7
mov eax, dword [esp + 0x30]
mov ecx, esp
mov dword [ecx], 0x1a8
mov ecx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x24], eax
call ecx
sub esp, 4
mov eax, esp
mov dword [eax], 0x5e2ba9
mov eax, dword [sym.imp.KERNEL32.dll_LockResource]
call eax
sub esp, 4
mov ecx, dword [esp + 0x78]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov edx, esp
mov esi, dword [esp + 0x84]
mov dword [edx + 8], esi
mov dword [edx], ecx
mov dword [edx + 0xc], 0xbff
mov dword [edx + 4], 0x31b
mov edx, dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
mov dword [esp + 0x20], eax
call edx
sub esp, 0x10
mov ecx, dword [esp + 0x24]
add ecx, 1
cmp ecx, 0xa
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ecx
jne 0x100017dd
mov eax, dword [esp + 0x68]
add eax, 1
cmp eax, 0xc
mov dword [esp + 0x74], eax
je 0x10001686
jmp 0x10001625