Function at 0x40b180
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x150
push ebx
push ebp
push esi
push edi
push 0x413778
lea eax, [esp + 0x64]
push 0x100
push eax
push 0x415ffc
push str.driver
push 0x41378c
mov dword [0x41660c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [0x415ec8]
xor esi, esi
mov ebp, dword [esp + 0x164]
xor ebx, ebx
cmp eax, esi
mov dword [esp + 0x10], 0xf
mov dword [esp + 0x20], 0xf000
jle 0x40b308
xor edi, edi
jmp 0x40b1e6
xor esi, esi
mov ecx, dword [0x415ec0]
mov dword [ecx + edi + 0x50], esi
mov edx, dword [0x415ec0]
mov dword [edx + edi + 0x48], esi
mov eax, dword [0x415ec0]
mov dword [eax + edi + 0x44], esi
mov ecx, dword [0x415ec0]
lea eax, [esp + 0x60]
mov dword [ecx + edi + 0x40], esi
mov edx, dword [0x415ec0]
push eax
mov dword [edx + edi + 0x34], esi
mov ecx, dword [0x415ec0]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x34], ebx
mov edx, dword [ecx + edi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40b285
mov eax, dword [0x415ec0]
mov dword [esp + 0x1c], 0x2000
mov ecx, dword [eax + edi + 4]
cmp byte [ecx], 0x5c
je 0x40b275
mov edx, dword [eax + edi + 0xc]
mov al, byte [edx]
mov dword [esp + 0x2c], 1
cmp al, 0x5c
jne 0x40b27d
mov dword [esp + 0x2c], 3
mov dword [0x41660c], ebx
jmp 0x40b2b1
mov eax, dword [0x415ec0]
mov dword [esp + 0x1c], 0x1000
mov ecx, dword [eax + edi + 4]
cmp byte [ecx], 0x5c
je 0x40b2a9
mov edx, dword [eax + edi + 0xc]
mov al, byte [edx]
mov dword [esp + 0x2c], esi
cmp al, 0x5c
jne 0x40b2b1
mov dword [esp + 0x2c], 2
lea eax, [esp + 0x10]
push eax
push esi
push 0x1007
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x40b446
mov esi, 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], esi
push ecx
push ebx
push 0x102e
push ebp
mov dword [esp + 0x5c], 0xffffffff
call dword [sym.imp.USER32.dll_SendMessageA]
inc esi
cmp esi, 9
jl 0x40b2d1
mov eax, dword [0x415ec8]
inc ebx
add edi, 0x54
cmp ebx, eax
jl 0x40b1e4
xor esi, esi
cmp dword [0x41660c], esi
jge 0x40b375
cmp eax, esi
je 0x40b375
mov ecx, dword [0x415ec0]
mov dword [0x41660c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 2
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], esi
mov edx, dword [ecx + 4]
mov eax, 1
cmp byte [edx], 0x5c
je 0x40b351
mov ecx, dword [ecx + 0xc]
cmp byte [ecx], 0x5c
jne 0x40b356
mov eax, 3
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x10]
push edx
push esi
push 0x1006
push ebp
mov dword [esp + 0x3c], eax
call edi
mov eax, dword [0x415ec8]
jmp 0x40b37b
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, esi
mov dword [0x412fc0], 1
mov ebx, 0xfffffffe
je 0x40b3fb
mov ecx, dword [0x41660c]
lea eax, [esp + 0x38]
push eax
push ecx
push 0x102b
push ebp
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 3
call edi
mov ecx, dword [0x41660c]
mov eax, ecx
shl eax, 3
sub eax, ecx
lea edx, [eax + eax*2]
mov eax, dword [0x415ec0]
mov ecx, dword [eax + edx*4 + 0xc]
lea eax, [eax + edx*4]
push ecx
mov edx, dword [eax + 4]
lea eax, [esp + 0x64]
push edx
push 0x413794
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x60]
push esi
push 1
push ecx
call fcn.0040c3c0
add esp, 0xc
or ebx, 0xffffffff
jmp 0x40b40b
push esi
push 1
push str.No_Printer_Driver_is_available_
call fcn.0040c3c0
add esp, 0xc
cmp esi, 3
je 0x40b420
cmp esi, 6
je 0x40b420
mov edx, ebx
and edx, 0xffff
push edx
jmp 0x40b425
push 0xfffe
push esi
push 0x101e
push ebp
call edi
inc esi
cmp esi, 9
jl 0x40b40b
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x150
ret 4