Function at 0x47c1c1
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x564
mov eax, dword [0x5025d0]
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.004a8c80
add esp, 0xc
push esi
lea eax, [esp + 0x35d]
push ebx
push eax
mov byte [esp + 0x364], bl
call fcn.004a8c80
add esp, 0xc
push esi
lea eax, [esp + 0x465]
push ebx
push eax
mov byte [esp + 0x46c], bl
call fcn.004a8c80
add esp, 0xc
push esi
lea eax, [esp + 0x14d]
push ebx
push eax
mov byte [esp + 0x154], bl
call fcn.004a8c80
add esp, 0xc
push esi
lea eax, [esp + 0x45]
push ebx
push eax
mov byte [esp + 0x4c], bl
call fcn.004a8c80
add esp, 0xc
push str.TmsNetPrn.num
push ebx
mov dword [esp + 0x20], ebx
call fcn.0045ba18
pop ecx
pop ecx
lea edx, [esp + 0xc]
mov ecx, eax
call fcn.0041b199
cmp dword [esp + 0xc], ebx
jne 0x47c298
xor eax, eax
jmp 0x47c4ea
lea eax, [esp + 0x460]
push eax
lea eax, [esp + 0x35c]
push eax
lea ecx, [esp + 0x258]
call fcn.0043dc09
cmp dword [esp + 0x14], ebx
pop ecx
pop ecx
mov dword [esp + 0x1c], 1
jge 0x47c2da
neg dword [esp + 0xc]
mov dword [esp + 0x10], str.WINPRINTER
mov dword [esp + 0x14], 0x4d6f20
jmp 0x47c2ea
mov dword [esp + 0x10], 0x4d6f20
mov dword [esp + 0x14], str.WINPRINTER
push 0x20
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.004a8c80
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 0x47c33d
lea eax, [esp + 0x40]
call fcn.00477999
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.00478fcf
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 0x47c459
cmp eax, 0x55
je 0x47c459
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.00478fcf
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 0x47c459
cmp eax, 0x55
je 0x47c459
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.00478fcf
add esp, 0x18
push ebx
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x47c459
cmp eax, 0x55
je 0x47c459
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.00478fcf
add esp, 0x18
push ebx
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x47c459
cmp eax, 0x55
je 0x47c459
and dword [esp + 0x1c], 0
lea edx, [esp + 0x40]
call fcn.00477a16
test eax, eax
mov ebx, str.TAMS_Printer_
je 0x47c48a
cmp dword [esp + 0x1c], 0
je 0x47c48a
push dword [esp + 0xc]
lea eax, [esp + 0x44]
push ebx
push str._s_d
push esi
push eax
call fcn.00478fcf
add esp, 0x14
lea edx, [esp + 0x40]
call fcn.00477a16
test eax, eax
jne 0x47c4e6
lea eax, [esp + 0x40]
push eax
call sub.WINSPOOL.DRV_Ordinal_202
test eax, eax
jne 0x47c4e6
push dword [esp + 0xc]
lea eax, [esp + 0x254]
push ebx
push eax
push edi
lea eax, [esp + 0x50]
push esi
push eax
call fcn.00478fcf
add esp, 0x18
lea eax, [esp + 0x40]
push eax
call sub.WINSPOOL.DRV_Ordinal_202
test eax, eax
jne 0x47c4e6
lea eax, [esp + 0x148]
push eax
call sub.WINSPOOL.DRV_Ordinal_202
test eax, eax
jne 0x47c4e6
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.004a8565
mov esp, ebp
pop ebp
ret