Function at 0x49daa0
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x4e6950
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x51347c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
xor ebx, ebx
push 0x104
push 0x104
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
call fcn.004d4dbd
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.004d4e0c
push 0x5c
lea ecx, [esp + 0x18]
call fcn.004d367a
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d3602
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.004d4ac6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], bl
call fcn.004d498d
lea edx, [esp + 0x14]
push 0x5095a0
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.004d4c22
mov cl, byte [esp + 0x13]
mov esi, dword [esp + 0x18]
mov byte [esp + 0x20], cl
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 2
call fcn.00407190
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.004085a0
test al, al
je 0x49db93
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [eax + ebp], bl
mov edi, str.IRNPAP.dll
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x38], 3
mov esi, ecx
mov ecx, dword [0x4ea898]
sub ecx, edx
cmp ecx, esi
ja 0x49dbbe
call fcn.004c0b21
cmp esi, ebx
jbe 0x49dc02
mov edx, dword [esp + 0x28]
push ebx
lea ecx, [esp + 0x24]
lea ebp, [edx + esi]
push ebp
call fcn.004085a0
test al, al
je 0x49dc02
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push ebp
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
mov esi, str.IRNPAP.dll
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.00408580
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x49dc0f
mov eax, 0x4ea894
push ebx
push eax
call fcn.004b25b6
or edi, 0xffffffff
add esp, 8
cmp eax, edi
mov eax, dword [esp + 0x24]
je 0x49dc41
cmp eax, ebx
jne 0x49dc2d
mov eax, 0x4ea894
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x5192c0], eax
jne 0x49dc9d
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x49dc62
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49dc59
cmp al, 0xff
je 0x49dc59
dec al
mov byte [ecx], al
jmp 0x49dc62
push ecx
call fcn.004d46f7
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x38], bl
call fcn.004d498d
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], edi
call fcn.004d498d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IRFindDevs
push eax
call esi
mov dword [0x5192e4], eax
mov eax, dword [0x5192c0]
push str.IROpenLive
push eax
call esi
mov ecx, dword [0x5192c0]
push str.IRCompile
push ecx
mov dword [0x5192e0], eax
call esi
mov edx, dword [0x5192c0]
push str.IRSetFilter
push edx
mov dword [0x5192dc], eax
call esi
mov dword [0x5192d8], eax
mov eax, dword [0x5192c0]
push str.IRGetNext
push eax
call esi
mov ecx, dword [0x5192c0]
push str.IRInstallDriver
push ecx
mov dword [0x5192d4], eax
call esi
mov edx, dword [0x5192c0]
push str.IRUnstallDriver
push edx
mov dword [0x5192d0], eax
call esi
mov dword [0x5192cc], eax
mov eax, dword [0x5192c0]
push str.IRCloseLive
push eax
call esi
mov dword [0x5192c4], eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x49dd57
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49dd4e
cmp al, 0xff
je 0x49dd4e
dec al
mov byte [ecx], al
jmp 0x49dd57
push ecx
call fcn.004d46f7
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x38], bl
call fcn.004d498d
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], edi
call fcn.004d498d
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret