Function at 0x49cab0
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x4e5750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x511ed0]
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.004d3cad
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.004d3cfc
push 0x5c
lea ecx, [esp + 0x18]
call fcn.004d256a
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d24f2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.004d39b6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], bl
call fcn.004d387d
lea edx, [esp + 0x14]
push 0x50857c
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.004d3b12
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.00406ab0
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.00407ec0
test al, al
je 0x49cba3
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 [0x4e9898]
sub ecx, edx
cmp ecx, esi
ja 0x49cbce
call fcn.004bfa61
cmp esi, ebx
jbe 0x49cc12
mov edx, dword [esp + 0x28]
push ebx
lea ecx, [esp + 0x24]
lea ebp, [edx + esi]
push ebp
call fcn.00407ec0
test al, al
je 0x49cc12
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.00407ea0
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x49cc1f
mov eax, 0x4e9894
push ebx
push eax
call fcn.004b14e6
or edi, 0xffffffff
add esp, 8
cmp eax, edi
mov eax, dword [esp + 0x24]
je 0x49cc51
cmp eax, ebx
jne 0x49cc3d
mov eax, 0x4e9894
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x517cb8], eax
jne 0x49ccad
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x49cc72
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49cc69
cmp al, 0xff
je 0x49cc69
dec al
mov byte [ecx], al
jmp 0x49cc72
push ecx
call fcn.004d35e7
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.004d387d
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], edi
call fcn.004d387d
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 [0x517cdc], eax
mov eax, dword [0x517cb8]
push str.IROpenLive
push eax
call esi
mov ecx, dword [0x517cb8]
push str.IRCompile
push ecx
mov dword [0x517cd8], eax
call esi
mov edx, dword [0x517cb8]
push str.IRSetFilter
push edx
mov dword [0x517cd4], eax
call esi
mov dword [0x517cd0], eax
mov eax, dword [0x517cb8]
push str.IRGetNext
push eax
call esi
mov ecx, dword [0x517cb8]
push str.IRInstallDriver
push ecx
mov dword [0x517ccc], eax
call esi
mov edx, dword [0x517cb8]
push str.IRUnstallDriver
push edx
mov dword [0x517cc8], eax
call esi
mov dword [0x517cc4], eax
mov eax, dword [0x517cb8]
push str.IRCloseLive
push eax
call esi
mov dword [0x517cbc], eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x49cd67
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49cd5e
cmp al, 0xff
je 0x49cd5e
dec al
mov byte [ecx], al
jmp 0x49cd67
push ecx
call fcn.004d35e7
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.004d387d
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], edi
call fcn.004d387d
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