Function at 0x1000155d
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, 0xe0
lea eax, [esp + 0x88]
mov dword [esp + 0xcc], 0xce9
mov ecx, esp
lea edx, [esp + 0xcc]
mov dword [ecx + 4], edx
lea edx, [esp + 0xd0]
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 + 0xb8]
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 + 0x90]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], ecx
jmp 0x10001661
lea esp, [ebp - 4]
pop esi
pop ebp
ret
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
jmp 0x10001805
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 + 0xa8]
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 + 0x70], eax
call ecx
sub esp, 0x10
mov dword [esp + 0x6c], eax
jmp 0x10001891
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 0x10001796
mov eax, dword [esp + 0x68]
add eax, 1
cmp eax, 0xc
mov dword [esp + 0x74], eax
je 0x100015f3
jmp 0x10001661
mov eax, dword [esp + 0x58]
mov ecx, esp
mov dword [ecx], 0x1a8
mov ecx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x54], 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 + 0x50], eax
call edx
sub esp, 0x10
mov ecx, dword [esp + 0x54]
add ecx, 1
cmp ecx, 0xa
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], ecx
je 0x100016c5
jmp 0x100016df
mov eax, dword [esp + 0x5c]
mov ecx, 0x38e38e39
mov dword [esp + 0x48], eax
mul ecx
shr edx, 2
imul eax, edx, 0x12
mov ecx, dword [esp + 0x48]
sub ecx, eax
mov eax, ecx
sub eax, 9
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
je 0x100015f9
jmp 0x100017c6
mov eax, dword [esp + 0x44]
sub eax, 2
mov dword [esp + 0x3c], eax
jne 0x10001805
jmp 0x100017d5
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 + 0x38], eax
jmp 0x100015f9
mov eax, dword [esp + 0x48]
add eax, 1
cmp eax, 0xa8
mov dword [esp + 0x5c], eax
jne 0x10001796
xor eax, eax
mov ecx, esp
mov dword [ecx + 0x14], 0xf25
mov dword [ecx + 0x10], 0x102920b6
mov dword [ecx + 0xc], 0xf25
mov dword [ecx + 8], 0x102920ca
mov dword [ecx + 4], 0xf69
mov dword [ecx], 0xc68
mov ecx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x34], eax
call ecx
sub esp, 0x18
xor ecx, ecx
mov edx, dword [esp + 0x68]
sub edx, 0x30
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
je 0x10001617
jmp 0x10001876
mov eax, dword [esp + 0x68]
sub eax, 0xd
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x58], ecx
jne 0x100016df
jmp 0x10001891
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 + 0x20], eax
call ecx
sub esp, 8
mov dword [esp + 0x1c], eax
jmp 0x100016c5