Function at 0x101d6a6
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10290b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], eax
jne 0x101d6cf
xor eax, eax
jmp 0x101d91f
cmp byte [eax], 0
je 0x101d6c8
push ebx
push edi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
push esi
push 2
push esi
push esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], esi
call sub.WINSPOOL.DRV_EnumPrinterDriversA
cmp dword [ebp - 0x50], esi
je 0x101d89a
push dword [ebp - 0x50]
call fcn.0101c406
mov edi, eax
cmp edi, esi
je 0x101d89a
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
push edi
push 2
push esi
push esi
call sub.WINSPOOL.DRV_EnumPrinterDriversA
cmp eax, 1
jne 0x101d76c
cmp dword [ebp - 0x54], esi
jbe 0x101d76c
lea ebx, [edi + 4]
mov eax, dword [ebx]
test eax, eax
je 0x101d746
push dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x101d751
inc esi
add ebx, 0x18
cmp esi, dword [ebp - 0x54]
jb 0x101d732
jmp 0x101d76c
imul esi, esi, 0x18
add esi, edi
push dword [esi + 0xc]
call fcn.0101c4ce
push dword [esi + 0x10]
mov dword [ebp - 0x48], eax
call fcn.0101c4ce
mov dword [ebp - 0x4c], eax
push edi
call fcn.0101c26d
cmp dword [ebp - 0x48], 0
je 0x101d799
push 0x5c
push dword [ebp - 0x48]
call fcn.01021630
test eax, eax
pop ecx
pop ecx
je 0x101d78d
mov byte [eax], 0
jmp 0x101d799
push dword [ebp - 0x48]
call fcn.0101c26d
and dword [ebp - 0x48], 0
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x101d89a
push 0x5c
push ebx
call fcn.01015600
test eax, eax
pop ecx
pop ecx
jne 0x101d809
cmp dword [ebp - 0x48], eax
je 0x101d809
push dword [ebp - 0x48]
call fcn.0101c456
mov esi, eax
push ebx
inc esi
call fcn.0101c456
lea esi, [esi + eax + 1]
cmp esi, 2
jbe 0x101d809
push esi
call fcn.0101c406
mov edi, eax
test edi, edi
je 0x101d809
push ebx
push dword [ebp - 0x48]
push 0x1005170
push esi
push edi
call fcn.0101c33a
add esp, 0x14
test eax, eax
jne 0x101d7ff
push ebx
call fcn.0101c26d
mov dword [ebp - 0x4c], edi
xor edi, edi
test edi, edi
je 0x101d809
push edi
call fcn.0101c26d
cmp dword [ebp - 0x4c], 0
je 0x101d89a
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.01009000
add esp, 0xc
push dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
push 0x40
push eax
push 0x10036a2
push 0x10051b0
push 0x1005188
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
jbe 0x101d89a
cmp dword [ebp - 0x48], 0
je 0x101d88b
push dword [ebp - 0x48]
call fcn.0101c456
lea esi, [eax + esi + 2]
push esi
call fcn.0101c406
mov edi, eax
test edi, edi
je 0x101d88b
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
push 0x1005170
push esi
push edi
call fcn.0101c33a
add esp, 0x14
test eax, eax
je 0x101d887
push edi
call fcn.0101c26d
xor edi, edi
test edi, edi
jne 0x101d8f9
lea eax, [ebp - 0x44]
push eax
call fcn.0101c4ce
mov edi, eax
test edi, edi
jne 0x101d8f9
push 0x1005178
call fcn.0101c4ce
cmp dword [ebp - 0x48], 0
mov edi, eax
je 0x101d8f9
push dword [ebp - 0x48]
call fcn.0101c456
mov esi, eax
push edi
inc esi
call fcn.0101c456
lea esi, [esi + eax + 1]
cmp esi, 2
jbe 0x101d8f9
push esi
call fcn.0101c406
mov ebx, eax
test ebx, ebx
je 0x101d8f9
push edi
push dword [ebp - 0x48]
push 0x1005170
push esi
push ebx
call fcn.0101c33a
add esp, 0x14
test eax, eax
jne 0x101d8f3
push edi
call fcn.0101c26d
mov edi, ebx
jmp 0x101d8f9
push ebx
call fcn.0101c26d
cmp dword [ebp - 0x4c], 0
je 0x101d907
push dword [ebp - 0x4c]
call fcn.0101c26d
cmp dword [ebp - 0x48], 0
je 0x101d915
push dword [ebp - 0x48]
call fcn.0101c26d
mov eax, dword [ebp - 0x58]
mov dword [eax + 8], edi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01008fe1
leave
ret 4