Function at 0x49def4
Capabilities:
Extract resource via kernel32 functions
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
mov eax, 0x4ce764
push ebx
push esi
push edi
call fcn.004aad94
mov word [ebp - 0x28], 0x14
xor edx, edx
lea ecx, [ebp - 4]
mov dword [ebp - 4], edx
push ecx
inc dword [ebp - 0x1c]
call fcn.004098a0
pop ecx
mov edx, str.SysWOW64_setupapi.dll
mov word [ebp - 0x28], 8
mov word [ebp - 0x28], 0x20
lea eax, [ebp - 0xc]
call fcn.004b4dd8
inc dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
inc dword [ebp - 0x1c]
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.004b4f90
dec dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004b4f38
mov word [ebp - 0x28], 8
mov eax, dword [ebp - 8]
call fcn.00473c34
test al, al
jne 0x49dfca
mov word [ebp - 0x28], 0x2c
mov edx, str._system32_setupapi.dll
lea eax, [ebp - 0x10]
call fcn.004b4dd8
inc dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
inc dword [ebp - 0x1c]
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.004b4f90
lea edx, [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.004b4f68
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004b4f38
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004b4f38
cmp dword [ebp - 8], 0
je 0x49dfd5
mov ecx, dword [ebp - 8]
jmp 0x49dfda
mov ecx, 0x4ce665
push ecx
call sub.KERNEL32.DLL_LoadLibraryA
mov esi, eax
mov word [ebp - 0x28], 8
test esi, esi
jne 0x49e020
or eax, 0xffffffff
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x1c]
call fcn.004b4f38
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b4f38
pop eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
jmp 0x49e1eb
xor edi, edi
xor eax, eax
mov dword [ebp - 0x3c], eax
xor edx, edx
mov dword [ebp - 0x40], edx
push 5
push 0x14c2
push esi
call sub.KERNEL32.DLL_FindResourceA
test eax, eax
jne 0x49e04a
push 5
push 0x90a
push esi
call sub.KERNEL32.DLL_FindResourceA
test eax, eax
je 0x49e083
push eax
push esi
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
je 0x49e083
push ebx
call sub.KERNEL32.DLL_LockResource
mov ax, word [eax + 2]
cmp ax, 0xffff
jne 0x49e078
push ebx
call sub.KERNEL32.DLL_LockResource
mov edi, eax
add edi, 0x1e
jmp 0x49e083
push ebx
call sub.KERNEL32.DLL_LockResource
mov edi, eax
add edi, 0x16
push 5
push 0x14c4
push esi
call sub.KERNEL32.DLL_FindResourceA
test eax, eax
jne 0x49e0a1
push 5
push 0x90c
push esi
call sub.KERNEL32.DLL_FindResourceA
test eax, eax
je 0x49e0dc
push eax
push esi
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
je 0x49e0dc
push ebx
call sub.KERNEL32.DLL_LockResource
mov ax, word [eax + 2]
cmp ax, 0xffff
jne 0x49e0d0
push ebx
call sub.KERNEL32.DLL_LockResource
add eax, 0x1e
mov dword [ebp - 0x3c], eax
jmp 0x49e0dc
push ebx
call sub.KERNEL32.DLL_LockResource
add eax, 0x16
mov dword [ebp - 0x3c], eax
push 5
push 0x910
push esi
call sub.KERNEL32.DLL_FindResourceA
test eax, eax
je 0x49e124
push eax
push esi
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
je 0x49e124
push ebx
call sub.KERNEL32.DLL_LockResource
mov ax, word [eax + 2]
cmp ax, 0xffff
jne 0x49e118
push ebx
call sub.KERNEL32.DLL_LockResource
add eax, 0x1e
mov dword [ebp - 0x40], eax
jmp 0x49e124
push ebx
call sub.KERNEL32.DLL_LockResource
add eax, 0x16
mov dword [ebp - 0x40], eax
test edi, edi
je 0x49e135
push edi
push 0
call sub.USER32.DLL_FindWindowW
mov dword [0x4ce6a8], eax
cmp dword [0x4ce6a8], 0
jne 0x49e154
cmp dword [ebp - 0x3c], 0
je 0x49e154
mov edx, dword [ebp - 0x3c]
push edx
push 0
call sub.USER32.DLL_FindWindowW
mov dword [0x4ce6a8], eax
cmp dword [0x4ce6a8], 0
jne 0x49e173
cmp dword [ebp - 0x40], 0
je 0x49e173
mov ecx, dword [ebp - 0x40]
push ecx
push 0
call sub.USER32.DLL_FindWindowW
mov dword [0x4ce6a8], eax
cmp dword [0x4ce6a8], 0
je 0x49e1ba
jmp 0x49e1a3
push 0
mov eax, dword [0x4ce6a8]
push eax
call sub.USER32.DLL_ShowWindow
push 0
push 0x14b7
push 0x111
mov edx, dword [0x4ce6a8]
push edx
call sub.USER32.DLL_SendMessageA
mov ecx, dword [0x4ce6a8]
push ecx
call sub.USER32.DLL_IsWindow
test eax, eax
jne 0x49e17e
xor eax, eax
mov dword [0x4ce6a8], eax
mov eax, 1
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x1c]
call fcn.004b4f38
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b4f38
pop eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret