Function at 0x4da1c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8b56
mov eax, dword fs:[0]
push eax
mov eax, 0x10690
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1069c], ecx
push ecx
push str.CBaseInfoCtrl::SetPnPDriver
lea ecx, [ebp - 0x10698]
call fcn.0040a480
mov dword [ebp - 4], 0
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x4da256
test byte [esi + 0x1c], 1
je 0x4da256
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5d8b60
mov ecx, 0x23
cmovae eax, dword [0x608f54]
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.00401840
mov esi, dword [0x608f30]
add esp, 0xc
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
push 0xfffe
lea eax, [ebp - 0x10628]
push 0
push eax
call fcn.00571c00
add esp, 0x18
sub dword [ebp + 8], 1
je 0x4da28c
xor edi, edi
jmp 0x4da4aa
push str.USBPrinters
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005746e6
mov esi, dword [ebp - 0x1069c]
add esp, 0xc
lea eax, [esi + 4]
push eax
push 0x7fff
lea eax, [ebp - 0x10628]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor edi, edi
test eax, eax
je 0x4da385
cmp word [ebp - 0x10628], di
je 0x4da380
nop
movzx eax, word [ebp + edi*2 - 0x10628]
mov esi, edi
mov ecx, eax
test ax, ax
je 0x4da311
movzx eax, cx
push eax
call fcn.00582be1
add esp, 4
test eax, eax
je 0x4da311
movzx eax, word [ebp + esi*2 - 0x10626]
inc esi
mov ecx, eax
test ax, ax
jne 0x4da2f1
lea ebx, [ebp - 0x10628]
cmp word [ebx + esi*2], 0x3b
lea ebx, [ebx + esi*2]
je 0x4da346
mov edi, esi
mov esi, dword [ebp - 0x1069c]
push ebx
mov ecx, esi
call fcn.004db770
test eax, eax
jne 0x4da34c
lea ecx, [esi + 0x348]
push ebx
push dword [ecx + 8]
call fcn.0055b606
jmp 0x4da34c
mov esi, dword [ebp - 0x1069c]
lea ecx, [ebp - 0x10628]
lea ecx, [ecx + edi*2]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4da360
sub ecx, edx
inc edi
sar ecx, 1
add edi, ecx
cmp word [ebp + edi*2 - 0x10628], ax
jne 0x4da2e0
mov edi, 1
cmp dword [0x618534], 0
je 0x4da4a4
call fcn.0049cd80
test eax, eax
je 0x4da4a4
push ecx
push str.CBaseInfoCtrl::SetAdditionalUSBDeviceFromCmdLine
lea ecx, [ebp - 0x10660]
call fcn.0040a480
mov byte [ebp - 4], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4da3f4
test byte [ecx + 0x1c], 1
je 0x4da3f4
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5d8b60
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x25
call fcn.00401840
add esp, 0xc
push 0x410
xor edi, edi
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x628]
add esp, 0xc
mov ecx, dword [ecx + 0x1c]
push eax
push str.DeviceName
call fcn.004f65f0
lea eax, [ebp - 0x628]
mov ecx, esi
push eax
call fcn.004db770
test eax, eax
jne 0x4da451
lea eax, [ebp - 0x628]
lea ecx, [esi + 0x348]
push eax
push dword [ecx + 8]
call fcn.0055b606
mov edi, 1
mov byte [ebp - 0x1065c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4da499
test byte [ecx + 0x1c], 1
je 0x4da499
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5d8b60
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x26
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x10660]
call fcn.0040a570
mov esi, dword [0x608f30]
mov byte [ebp - 0x10694], 1
cmp esi, 0x608f30
je 0x4da4ec
test byte [esi + 0x1c], 1
je 0x4da4ec
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5d8b60
push eax
push dword [esi + 0x14]
mov ecx, 0x24
push dword [esi + 0x10]
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x10698]
call fcn.0040a570
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4