Function at 0x403920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x406bc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 4]
mov ecx, esi
push eax
mov byte [esp + 0x34], 5
call fcn.00403f50
test al, al
jne 0x403a30
mov eax, dword [0x40aaac]
push 0
cmp eax, 1
push 0
jne 0x4039bb
push 0x40a5dc
jmp 0x4039c0
push str.Not_USB_Printer
mov ecx, esi
call fcn.00406472
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
push ebx
push ebp
push edi
call sub.USBPrinterlibary.dll_OpenPrinterPort
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x403af6
cmp dword [0x40aaac], 1
jne 0x403a64
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push str.____r_n____r_n
push edx
jmp 0x403a73
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push str.____r_n____r_ncurrent_printer_USB_port_is:_s____r_n____r_n_____r_n____r_n____r_n
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x14]
mov eax, dword [edx - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.USBPrinterlibary.dll_SendPrinterData
add esp, 8
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esi + 0xed8]
push 0
push 0
push 0x147
push eax
call edi
cmp eax, 1
jne 0x403aef
lea ecx, [esp + 0x2c]
push 7
push ecx
mov byte [esp + 0x34], 0xa
mov byte [esp + 0x35], 0xa
mov byte [esp + 0x36], 0xa
mov byte [esp + 0x37], 0xa
mov byte [esp + 0x38], 0x1d
mov byte [esp + 0x39], 0x56
mov byte [esp + 0x3a], 0x31
mov byte [esp + 0x3b], 0
call sub.USBPrinterlibary.dll_SendPrinterData
add esp, 8
call sub.USBPrinterlibary.dll_ClosePrinterPort
jmp 0x403b06
push 0
push 0
push 0x40a52c
mov ecx, esi
call fcn.00406472
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.MSVCRT.dll_strstr]
push str.USB001
push edx
xor bl, bl
call ebp
add esp, 8
test eax, eax
je 0x403b3e
push 0x40a
mov ecx, esi
call fcn.004063ee
mov eax, dword [eax + 0x20]
push 0
push 8
push 0x14e
push eax
call edi
mov bl, 1
mov ecx, dword [esp + 0x10]
push str.USB002
push ecx
call ebp
add esp, 8
test eax, eax
je 0x403b6e
push 0x40a
mov ecx, esi
call fcn.004063ee
mov edx, dword [eax + 0x20]
push 0
push 9
push 0x14e
push edx
call edi
mov bl, 1
mov eax, dword [esp + 0x10]
push str.USB003
push eax
call ebp
add esp, 8
test eax, eax
je 0x403b9e
push 0x40a
mov ecx, esi
call fcn.004063ee
mov ecx, dword [eax + 0x20]
push 0
push 0xa
push 0x14e
push ecx
call edi
mov bl, 1
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x403bec
test bl, bl
jne 0x403bec
mov edx, dword [esi + 0xf18]
push 0
push 0xb
push 0x144
push edx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xf18]
push eax
push 0xb
push 0x14a
push ecx
call edi
push 0x40a
mov ecx, esi
call fcn.004063ee
mov edx, dword [eax + 0x20]
push 0
push 0xb
push 0x14e
push edx
call edi
mov ecx, esi
call fcn.00403500
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret