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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
mov eax, 0x4d1070
push ebx
push esi
push edi
call fcn.004ad4bc
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.0040afa0
pop ecx
mov edx, str.SysWOW64_setupapi.dll
mov word [ebp - 0x28], 8
mov word [ebp - 0x28], 0x20
lea eax, [ebp - 0xc]
call fcn.004b7500
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.004b76b8
dec dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004b7660
mov word [ebp - 0x28], 8
mov eax, dword [ebp - 8]
call fcn.0047a73c
test al, al
jne 0x49f512
mov word [ebp - 0x28], 0x2c
mov edx, str._system32_setupapi.dll
lea eax, [ebp - 0x10]
call fcn.004b7500
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.004b76b8
lea edx, [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.004b7690
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004b7660
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004b7660
cmp dword [ebp - 8], 0
je 0x49f51d
mov ecx, dword [ebp - 8]
jmp 0x49f522
mov ecx, 0x4d0f71
push ecx
call sub.KERNEL32.DLL_LoadLibraryA
mov esi, eax
mov word [ebp - 0x28], 8
test esi, esi
jne 0x49f568
or eax, 0xffffffff
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x1c]
call fcn.004b7660
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b7660
pop eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
jmp 0x49f733
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 0x49f592
push 5
push 0x90a
push esi
call sub.KERNEL32.DLL_FindResourceA
test eax, eax
je 0x49f5cb
push eax
push esi
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
je 0x49f5cb
push ebx
call sub.KERNEL32.DLL_LockResource
mov ax, word [eax + 2]
cmp ax, 0xffff
jne 0x49f5c0
push ebx
call sub.KERNEL32.DLL_LockResource
mov edi, eax
add edi, 0x1e
jmp 0x49f5cb
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 0x49f5e9
push 5
push 0x90c
push esi
call sub.KERNEL32.DLL_FindResourceA
test eax, eax
je 0x49f624
push eax
push esi
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
je 0x49f624
push ebx
call sub.KERNEL32.DLL_LockResource
mov ax, word [eax + 2]
cmp ax, 0xffff
jne 0x49f618
push ebx
call sub.KERNEL32.DLL_LockResource
add eax, 0x1e
mov dword [ebp - 0x3c], eax
jmp 0x49f624
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 0x49f66c
push eax
push esi
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
je 0x49f66c
push ebx
call sub.KERNEL32.DLL_LockResource
mov ax, word [eax + 2]
cmp ax, 0xffff
jne 0x49f660
push ebx
call sub.KERNEL32.DLL_LockResource
add eax, 0x1e
mov dword [ebp - 0x40], eax
jmp 0x49f66c
push ebx
call sub.KERNEL32.DLL_LockResource
add eax, 0x16
mov dword [ebp - 0x40], eax
test edi, edi
je 0x49f67d
push edi
push 0
call sub.USER32.DLL_FindWindowW
mov dword [0x4d0fb4], eax
cmp dword [0x4d0fb4], 0
jne 0x49f69c
cmp dword [ebp - 0x3c], 0
je 0x49f69c
mov edx, dword [ebp - 0x3c]
push edx
push 0
call sub.USER32.DLL_FindWindowW
mov dword [0x4d0fb4], eax
cmp dword [0x4d0fb4], 0
jne 0x49f6bb
cmp dword [ebp - 0x40], 0
je 0x49f6bb
mov ecx, dword [ebp - 0x40]
push ecx
push 0
call sub.USER32.DLL_FindWindowW
mov dword [0x4d0fb4], eax
cmp dword [0x4d0fb4], 0
je 0x49f702
jmp 0x49f6eb
push 0
mov eax, dword [0x4d0fb4]
push eax
call sub.USER32.DLL_ShowWindow
push 0
push 0x14b7
push 0x111
mov edx, dword [0x4d0fb4]
push edx
call sub.USER32.DLL_SendMessageA
mov ecx, dword [0x4d0fb4]
push ecx
call sub.USER32.DLL_IsWindow
test eax, eax
jne 0x49f6c6
xor eax, eax
mov dword [0x4d0fb4], eax
mov eax, 1
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x1c]
call fcn.004b7660
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b7660
pop eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret