Function at 0x48bc81
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x564
mov eax, dword [0x51f5d0]
xor eax, esp
mov dword [esp + 0x560], eax
push ebx
push esi
push edi
push 7
pop ecx
xor ebx, ebx
xor eax, eax
mov esi, 0x103
lea edi, [esp + 0x24]
push esi
mov dword [esp + 0x24], ebx
rep stosd dword es:[edi], eax
mov byte [esp + 0x254], al
lea eax, [esp + 0x255]
push ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.004c05d0
add esp, 0xc
push esi
lea eax, [esp + 0x35d]
push ebx
push eax
mov byte [esp + 0x364], bl
call fcn.004c05d0
add esp, 0xc
push esi
lea eax, [esp + 0x465]
push ebx
push eax
mov byte [esp + 0x46c], bl
call fcn.004c05d0
add esp, 0xc
push esi
lea eax, [esp + 0x14d]
push ebx
push eax
mov byte [esp + 0x154], bl
call fcn.004c05d0
add esp, 0xc
push esi
lea eax, [esp + 0x45]
push ebx
push eax
mov byte [esp + 0x4c], bl
call fcn.004c05d0
add esp, 0xc
push str.TmsNetPrn.num
push ebx
mov dword [esp + 0x20], ebx
call fcn.0045f646
pop ecx
pop ecx
lea edx, [esp + 0xc]
mov ecx, eax
call fcn.0041b902
cmp dword [esp + 0xc], ebx
jne 0x48bd58
xor eax, eax
jmp 0x48bfaa
lea eax, [esp + 0x460]
push eax
lea eax, [esp + 0x35c]
push eax
lea ecx, [esp + 0x258]
call fcn.004407ab
cmp dword [esp + 0x14], ebx
pop ecx
pop ecx
mov dword [esp + 0x1c], 1
jge 0x48bd9a
neg dword [esp + 0xc]
mov dword [esp + 0x10], str.WINPRINTER
mov dword [esp + 0x14], 0x4ef0b8
jmp 0x48bdaa
mov dword [esp + 0x10], 0x4ef0b8
mov dword [esp + 0x14], str.WINPRINTER
push 0x20
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.004c05d0
lea eax, [esp + 0x154]
mov dword [esp + 0x40], eax
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x2c], 2
mov dword [esp + 0x38], str.LPT1:
mov dword [esp + 0x44], ebx
mov dword [esp + 0x20], esi
call sub.WINSPOOL.DRV_Ordinal_201
test eax, eax
jne 0x48bdfd
lea eax, [esp + 0x40]
call fcn.004856d7
mov dword [esp + 0x18], ebx
push dword [esp + 0xc]
lea eax, [esp + 0x254]
push dword [esp + 0x14]
mov edi, str._s_s_d
push eax
push edi
mov esi, 0x104
lea eax, [esp + 0x158]
push esi
push eax
call fcn.00486e10
add esp, 0x18
mov ebx, 0x81
push ebx
lea eax, [esp + 0x35c]
push eax
lea eax, [esp + 0x468]
push eax
lea eax, [esp + 0x2c]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x48bf19
cmp eax, 0x55
je 0x48bf19
push dword [esp + 0xc]
lea eax, [esp + 0x254]
push dword [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x158]
push esi
push eax
call fcn.00486e10
add esp, 0x18
push ebx
lea eax, [esp + 0x35c]
push eax
lea eax, [esp + 0x468]
push eax
lea eax, [esp + 0x2c]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x48bf19
cmp eax, 0x55
je 0x48bf19
push dword [esp + 0xc]
lea eax, [esp + 0x254]
push dword [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x158]
push esi
push eax
call fcn.00486e10
add esp, 0x18
push ebx
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x48bf19
cmp eax, 0x55
je 0x48bf19
push dword [esp + 0xc]
lea eax, [esp + 0x254]
push dword [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x158]
push esi
push eax
call fcn.00486e10
add esp, 0x18
push ebx
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x48bf19
cmp eax, 0x55
je 0x48bf19
and dword [esp + 0x1c], 0
lea edx, [esp + 0x40]
call fcn.00485754
test eax, eax
mov ebx, str.TAMS_Printer_
je 0x48bf4a
cmp dword [esp + 0x1c], 0
je 0x48bf4a
push dword [esp + 0xc]
lea eax, [esp + 0x44]
push ebx
push str._s_d
push esi
push eax
call fcn.00486e10
add esp, 0x14
lea edx, [esp + 0x40]
call fcn.00485754
test eax, eax
jne 0x48bfa6
lea eax, [esp + 0x40]
push eax
call sub.WINSPOOL.DRV_Ordinal_202
test eax, eax
jne 0x48bfa6
push dword [esp + 0xc]
lea eax, [esp + 0x254]
push ebx
push eax
push edi
lea eax, [esp + 0x50]
push esi
push eax
call fcn.00486e10
add esp, 0x18
lea eax, [esp + 0x40]
push eax
call sub.WINSPOOL.DRV_Ordinal_202
test eax, eax
jne 0x48bfa6
lea eax, [esp + 0x148]
push eax
call sub.WINSPOOL.DRV_Ordinal_202
test eax, eax
jne 0x48bfa6
push eax
call sub.WINSPOOL.DRV_Ordinal_202
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x56c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bfeb5
mov esp, ebp
pop ebp
ret