Function at 0x49d940
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x4e67c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x513458]
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.004d4c5d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.004d4cac
push 0x5c
lea ecx, [esp + 0x18]
call fcn.004d351a
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d34a2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.004d4966
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], bl
call fcn.004d482d
lea edx, [esp + 0x14]
push 0x5095a0
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.004d4ac2
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.00407180
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.00408590
test al, al
je 0x49da33
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 0x49da5e
call fcn.004c09c1
cmp esi, ebx
jbe 0x49daa2
mov edx, dword [esp + 0x28]
push ebx
lea ecx, [esp + 0x24]
lea ebp, [edx + esi]
push ebp
call fcn.00408590
test al, al
je 0x49daa2
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.00408570
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x49daaf
mov eax, 0x4ea894
push ebx
push eax
call fcn.004b2456
or edi, 0xffffffff
add esp, 8
cmp eax, edi
mov eax, dword [esp + 0x24]
je 0x49dae1
cmp eax, ebx
jne 0x49dacd
mov eax, 0x4ea894
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x5192a0], eax
jne 0x49db3d
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x49db02
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49daf9
cmp al, 0xff
je 0x49daf9
dec al
mov byte [ecx], al
jmp 0x49db02
push ecx
call fcn.004d4597
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.004d482d
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], edi
call fcn.004d482d
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 [0x5192c4], eax
mov eax, dword [0x5192a0]
push str.IROpenLive
push eax
call esi
mov ecx, dword [0x5192a0]
push str.IRCompile
push ecx
mov dword [0x5192c0], eax
call esi
mov edx, dword [0x5192a0]
push str.IRSetFilter
push edx
mov dword [0x5192bc], eax
call esi
mov dword [0x5192b8], eax
mov eax, dword [0x5192a0]
push str.IRGetNext
push eax
call esi
mov ecx, dword [0x5192a0]
push str.IRInstallDriver
push ecx
mov dword [0x5192b4], eax
call esi
mov edx, dword [0x5192a0]
push str.IRUnstallDriver
push edx
mov dword [0x5192b0], eax
call esi
mov dword [0x5192ac], eax
mov eax, dword [0x5192a0]
push str.IRCloseLive
push eax
call esi
mov dword [0x5192a4], eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x49dbf7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49dbee
cmp al, 0xff
je 0x49dbee
dec al
mov byte [ecx], al
jmp 0x49dbf7
push ecx
call fcn.004d4597
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.004d482d
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], edi
call fcn.004d482d
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