Function at 0x40befc
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push str.Into_GetPortName__
call fcn.00401000
add esp, 4
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + 0x404]
cmp ecx, 0xcb
jne 0x40bf45
mov edx, dword [ebp - 8]
add edx, 0x204
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00419a10
add esp, 8
mov eax, 1
jmp 0x40c156
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x41c]
push edx
push str.Into_else_part__current_printer_count_:__d
call fcn.00401000
add esp, 8
mov dword [ebp - 4], 0
jmp 0x40bf6e
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x41c]
jge 0x40c154
push str.This_is_For_loop
call fcn.00401000
add esp, 4
mov eax, dword [ebp - 4]
imul eax, eax, 0x54
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x414]
mov eax, dword [edx + eax + 4]
push eax
push 0x4496e0
call fcn.00401000
add esp, 8
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x414]
mov ecx, dword [eax + ecx + 0xc]
push ecx
push str.This_is_For_loop__s
call fcn.00401000
add esp, 8
mov edx, dword [ebp - 4]
imul edx, edx, 0x54
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x414]
mov edx, dword [ecx + edx + 0xc]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x54
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x414]
mov eax, dword [edx + eax + 4]
push eax
push str.GetPortName___:_SCAN___s__PORT___s
call fcn.00401000
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0040c2db
test eax, eax
jne 0x40c059
mov edx, dword [ebp - 4]
imul edx, edx, 0x54
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x414]
mov edx, dword [ecx + edx + 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.0040d46b
test eax, eax
jne 0x40c059
mov eax, dword [ebp - 4]
imul eax, eax, 0x54
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x414]
mov eax, dword [edx + eax + 0xc]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040dae5
test eax, eax
jne 0x40c059
jmp 0x40bf65
push str.is_Passed
call fcn.00401000
add esp, 4
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x414]
mov ecx, dword [eax + ecx + 4]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x104
push edx
push str.m_szPrinterName___s__m_ppi_i_.pPrinterName___s
call fcn.00401000
add esp, 0xc
mov eax, dword [ebp - 4]
imul eax, eax, 0x54
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x414]
mov eax, dword [edx + eax + 4]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40c0f0
mov edx, dword [ebp - 8]
xor eax, eax
mov al, byte [edx + 0x404]
cmp eax, 0xcc
jne 0x40c0f0
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x414]
mov ecx, dword [eax + ecx + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
jmp 0x40c156
mov eax, dword [ebp - 4]
imul eax, eax, 0x54
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x414]
mov eax, dword [edx + eax + 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x304
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40c14f
mov edx, dword [ebp - 8]
xor eax, eax
mov al, byte [edx + 0x404]
cmp eax, 0xca
jne 0x40c14f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x414]
mov ecx, dword [eax + ecx + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
jmp 0x40c156
jmp 0x40bf65
xor eax, eax
mov esp, ebp
pop ebp
ret 4