Function at 0x479fef
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x564
mov eax, dword [0x5005d0]
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.004a7110
add esp, 0xc
push esi
lea eax, [esp + 0x35d]
push ebx
push eax
mov byte [esp + 0x364], bl
call fcn.004a7110
add esp, 0xc
push esi
lea eax, [esp + 0x465]
push ebx
push eax
mov byte [esp + 0x46c], bl
call fcn.004a7110
add esp, 0xc
push esi
lea eax, [esp + 0x14d]
push ebx
push eax
mov byte [esp + 0x154], bl
call fcn.004a7110
add esp, 0xc
push esi
lea eax, [esp + 0x45]
push ebx
push eax
mov byte [esp + 0x4c], bl
call fcn.004a7110
add esp, 0xc
push str.TmsNetPrn.num
push ebx
mov dword [esp + 0x20], ebx
call fcn.00459cf0
pop ecx
pop ecx
lea edx, [esp + 0xc]
mov ecx, eax
call fcn.0041a1eb
cmp dword [esp + 0xc], ebx
jne 0x47a0c6
xor eax, eax
jmp 0x47a318
lea eax, [esp + 0x460]
push eax
lea eax, [esp + 0x35c]
push eax
lea ecx, [esp + 0x258]
call fcn.0043c2a9
cmp dword [esp + 0x14], ebx
pop ecx
pop ecx
mov dword [esp + 0x1c], 1
jge 0x47a108
neg dword [esp + 0xc]
mov dword [esp + 0x10], str.WINPRINTER
mov dword [esp + 0x14], 0x4d4dc8
jmp 0x47a118
mov dword [esp + 0x10], 0x4d4dc8
mov dword [esp + 0x14], str.WINPRINTER
push 0x20
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.004a7110
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 0x47a16b
lea eax, [esp + 0x40]
call fcn.004757d4
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.00476e0a
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 0x47a287
cmp eax, 0x55
je 0x47a287
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.00476e0a
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 0x47a287
cmp eax, 0x55
je 0x47a287
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.00476e0a
add esp, 0x18
push ebx
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x47a287
cmp eax, 0x55
je 0x47a287
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.00476e0a
add esp, 0x18
push ebx
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x47a287
cmp eax, 0x55
je 0x47a287
and dword [esp + 0x1c], 0
lea edx, [esp + 0x40]
call fcn.00475851
test eax, eax
mov ebx, str.TAMS_Printer_
je 0x47a2b8
cmp dword [esp + 0x1c], 0
je 0x47a2b8
push dword [esp + 0xc]
lea eax, [esp + 0x44]
push ebx
push str._s_d
push esi
push eax
call fcn.00476e0a
add esp, 0x14
lea edx, [esp + 0x40]
call fcn.00475851
test eax, eax
jne 0x47a314
lea eax, [esp + 0x40]
push eax
call sub.WINSPOOL.DRV_Ordinal_202
test eax, eax
jne 0x47a314
push dword [esp + 0xc]
lea eax, [esp + 0x254]
push ebx
push eax
push edi
lea eax, [esp + 0x50]
push esi
push eax
call fcn.00476e0a
add esp, 0x18
lea eax, [esp + 0x40]
push eax
call sub.WINSPOOL.DRV_Ordinal_202
test eax, eax
jne 0x47a314
lea eax, [esp + 0x148]
push eax
call sub.WINSPOOL.DRV_Ordinal_202
test eax, eax
jne 0x47a314
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.004a69f5
mov esp, ebp
pop ebp
ret