Function at 0x4030d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4499ee
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4090
call fcn.00435250
mov eax, dword [0x4625e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4058], eax
mov dword [ebp - 0x406c], ecx
xor ebx, ebx
mov dword [ebp - 0x4050], ebx
push 0x800
push ebx
lea edx, [ebp - 0x848]
push edx
call fcn.00431f90
add esp, 0xc
push 0x800
push ebx
lea eax, [ebp - 0x3048]
push eax
call fcn.00431f90
add esp, 0xc
push 0x800
push ebx
lea ecx, [ebp - 0x1848]
push ecx
call fcn.00431f90
add esp, 0xc
push 0x800
push ebx
lea edx, [ebp - 0x2848]
push edx
call fcn.00431f90
add esp, 0xc
push 0x800
push ebx
lea eax, [ebp - 0x1048]
push eax
call fcn.00431f90
add esp, 0xc
push 0x800
push ebx
lea ecx, [ebp - 0x4048]
push ecx
call fcn.00431f90
add esp, 0xc
push 0x800
push ebx
lea edx, [ebp - 0x3848]
push edx
call fcn.00431f90
add esp, 0xc
push 0x800
push ebx
lea eax, [ebp - 0x2048]
push eax
call fcn.00431f90
add esp, 0xc
mov dword [ebp - 0x4074], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4060], ebx
mov dword [ebp - 0x4064], ebx
mov dword [ebp - 0x405c], ebx
mov ecx, 0xb
mov esi, str._XcvMonitor_Local_Port
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x4084], ebx
mov dword [ebp - 0x4080], ebx
mov dword [ebp - 0x407c], 1
mov dword [ebp - 0x4068], ebx
mov dword [ebp - 0x4078], ebx
push 0x45440c
lea ecx, [ebp - 0x404c]
call fcn.00401c80
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
push 6
mov ecx, dword [ebp - 0x4058]
call fcn.00402bd0
push 0x800
push ebx
lea ecx, [ebp - 0x1848]
push ecx
call fcn.00431f90
add esp, 0xc
push 0x800
push ebx
lea edx, [ebp - 0x848]
push edx
call fcn.00431f90
add esp, 0xc
cmp byte [ebp + 0xc], bl
je 0x40329f
push 0x800
push ebx
lea eax, [ebp - 0x1848]
push eax
call fcn.00431f90
add esp, 0xc
push 0x3ff
push str.Setup.exe
push 0x400
lea ecx, [ebp - 0x1848]
push ecx
call fcn.00430f8d
add esp, 0x10
jmp 0x40381c
lea esi, [ebp - 0x40a0]
call fcn.0040b3c0
mov byte [ebp - 4], 3
mov bl, byte [eax + 0x18]
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.0040b4a0
call fcn.00419719
mov eax, dword [eax + 8]
push 0x400
lea ecx, [ebp - 0x1848]
test bl, bl
je 0x4032f2
push str.COMMAND64
push eax
call fcn.004071d0
test eax, eax
je 0x403317
push 0x800
push 0
lea edx, [ebp - 0x1848]
push edx
jmp 0x40330f
push str.COMMAND32
push eax
call fcn.004071d0
test eax, eax
je 0x403317
push 0x800
push 0
lea eax, [ebp - 0x1848]
push eax
call fcn.00431f90
add esp, 0xc
lea eax, [ebp - 0x1848]
lea edx, [eax + 2]
xor ebx, ebx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403322
sub eax, edx
sar eax, 1
jne 0x403397
call fcn.00419719
mov eax, dword [eax + 8]
push 0x400
push str.COMMAND
push eax
lea ecx, [ebp - 0x1848]
call fcn.004071d0
test eax, eax
je 0x403397
push 0x800
push ebx
lea ecx, [ebp - 0x1848]
push ecx
call fcn.00431f90
add esp, 0xc
push 0x3ff
push str.Setup.exe
push 0x400
lea edx, [ebp - 0x1848]
push edx
call fcn.00430f8d
push str.Get_Command_Fail__
mov ecx, 0x467200
call fcn.00405f70
add esp, 0x14
lea eax, [ebp - 0x1848]
push eax
push str.Command_from_Resource_:___s_
mov ecx, 0x467200
call fcn.00405f70
push 0x800
push ebx
lea ecx, [ebp - 0x1048]
push ecx
call fcn.00431f90
add esp, 0x14
call fcn.00419719
mov eax, dword [eax + 8]
push str.PORT
push eax
lea ecx, [ebp - 0x1048]
call fcn.004074b0
test eax, eax
je 0x4033f9
push 0x800
push ebx
lea edx, [ebp - 0x1048]
push edx
call fcn.00431f90
add esp, 0xc
jmp 0x403674
lea eax, [ebp - 0x1048]
push eax
push str.UNC_Port_:___s_
mov ecx, 0x467200
call fcn.00405f70
push 0x800
push ebx
lea ecx, [ebp - 0x2848]
push ecx
call fcn.00431f90
add esp, 0x14
push 0x800
push ebx
lea edx, [ebp - 0x4048]
push edx
call fcn.00431f90
add esp, 0xc
call fcn.00419719
mov eax, dword [eax + 8]
push str.USER
push eax
lea ecx, [ebp - 0x2848]
call fcn.004074b0
test eax, eax
jne 0x403485
lea edx, [ebp - 0x4048]
lea ecx, [ebp - 0x2848]
call fcn.004054c0
test eax, eax
jne 0x403485
lea edi, [ebp - 0x4048]
push str.Success_to_decode_the_szUser
mov ecx, 0x467200
call fcn.00405f70
add esp, 4
jmp 0x40348b
mov edi, dword [ebp - 0x4060]
push 0x800
push ebx
lea eax, [ebp - 0x2848]
push eax
call fcn.00431f90
add esp, 0xc
push 0x800
push ebx
lea ecx, [ebp - 0x3848]
push ecx
call fcn.00431f90
add esp, 0xc
call fcn.00419719
mov eax, dword [eax + 8]
push str.PASSWORD
push eax
lea ecx, [ebp - 0x2848]
call fcn.004074b0
test eax, eax
jne 0x403501
lea edx, [ebp - 0x3848]
lea ecx, [ebp - 0x2848]
call fcn.004054c0
test eax, eax
jne 0x403501
lea esi, [ebp - 0x3848]
push str.Success_to_decode_the_szPassword
mov ecx, 0x467200
call fcn.00405f70
add esp, 4
jmp 0x403507
mov esi, dword [ebp - 0x4064]
cmp edi, ebx
je 0x40350f
cmp esi, ebx
jne 0x40351f
mov dword [ebp - 0x4060], ebx
mov dword [ebp - 0x4064], ebx
mov esi, ebx
mov edi, ebx
push esi
mov edx, edi
lea ecx, [ebp - 0x1048]
call fcn.00405380
mov dword [ebp - 0x4050], eax
cmp eax, ebx
je 0x40354e
cmp eax, 0x55
je 0x40354e
push 0x800
push ebx
lea edx, [ebp - 0x1048]
push edx
jmp 0x403643
lea eax, [ebp - 0x1048]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403557
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [ebp - 0x4084]
push eax
lea ecx, [ebp - 0x405c]
push ecx
lea edx, [ebp - 0x44]
push edx
call sub.WINSPOOL.DRV_OpenPrinterW
test eax, eax
je 0x403618
lea eax, [esi + esi + 2]
lea ecx, [ebp - 0x4068]
push ecx
lea edx, [ebp - 0x4078]
push edx
push ebx
push ebx
push eax
lea eax, [ebp - 0x1048]
push eax
push str.AddPort
mov ecx, dword [ebp - 0x405c]
push ecx
call sub.WINSPOOL.DRV_XcvDataW
test eax, eax
je 0x4035dd
mov dword [ebp - 0x4050], ebx
mov edx, dword [ebp - 0x4068]
push edx
lea eax, [ebp - 0x1048]
push eax
push str.Add_Local_Port_Success___s____d_
mov ecx, 0x467200
call fcn.00405f70
jmp 0x403648
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4050], eax
mov ecx, dword [ebp - 0x4068]
push ecx
lea edx, [ebp - 0x1048]
push edx
push str.Add_Local_Port_fail___s____d_
mov ecx, 0x467200
call fcn.00405f70
add esp, 0xc
push 0x800
push ebx
lea eax, [ebp - 0x1048]
push eax
jmp 0x403643
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4050], eax
push str.Fail_to_OpenPrinter
mov ecx, 0x467200
call fcn.00405f70
add esp, 4
push 0x800
push ebx
lea ecx, [ebp - 0x1048]
push ecx
call fcn.00431f90
add esp, 0xc
mov eax, dword [ebp - 0x405c]
cmp eax, ebx
je 0x40365b
push eax
call sub.WINSPOOL.DRV_ClosePrinter
mov edx, dword [ebp - 0x4050]
push edx
push str.Add_UNC_Port_Result_:___d_
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
lea eax, [ebp - 0x1048]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403680
sub eax, edx
sar eax, 1
jne 0x4036da
call fcn.00419719
mov eax, dword [eax + 8]
push 0x400
push str.PORT
push eax
lea ecx, [ebp - 0x1048]
call fcn.004071d0
test eax, eax
je 0x4036da
push 0x800
push ebx
lea eax, [ebp - 0x1048]
push eax
call fcn.00431f90
add esp, 0xc
push str.Get_Port_Fail__
mov ecx, 0x467200
call fcn.00405f70
add esp, 4
lea ecx, [ebp - 0x1048]
push ecx
push str.Port_from_Resource_:___s_
mov ecx, 0x467200
call fcn.00405f70
push 0x454f78
lea edx, [ebp - 0x1848]
push edx
call fcn.00430e4b
add esp, 0x10
test eax, eax
jne 0x403725
mov eax, dword [ebp - 0x4058]
push eax
lea edx, [ebp - 0x1048]
mov ecx, dword [ebp - 0x406c]
call fcn.00403c40
jmp 0x40381a
lea esi, [ebp - 0x40a0]
call fcn.0040b3c0
mov byte [ebp - 4], 4
mov bl, byte [eax + 0x18]
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.0040b4a0
call fcn.00419719
mov eax, dword [eax + 8]
push 0x400
lea ecx, [ebp - 0x848]
test bl, bl
je 0x403778
push str.PARAM64
push eax
call fcn.004071d0
test eax, eax
je 0x40379d
push 0x800
push 0
lea ecx, [ebp - 0x848]
push ecx
jmp 0x403795
push str.PARAM32
push eax
call fcn.004071d0
test eax, eax
je 0x40379d
push 0x800
push 0
lea edx, [ebp - 0x848]
push edx
call fcn.00431f90
add esp, 0xc
lea eax, [ebp - 0x848]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4037a6
sub eax, edx
sar eax, 1
jne 0x403801
call fcn.00419719
mov eax, dword [eax + 8]
push 0x400
push str.PARAM
push eax
lea ecx, [ebp - 0x848]
call fcn.004071d0
test eax, eax
je 0x403801
push 0x800
push 0
lea eax, [ebp - 0x848]
push eax
call fcn.00431f90
add esp, 0xc
push str.Get_Parameter_Fail__
mov ecx, 0x467200
call fcn.00405f70
add esp, 4
lea ecx, [ebp - 0x848]
push ecx
push str.Parameter_from_Resource_:___s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
xor ebx, ebx
push 0x800
push ebx
lea edx, [ebp - 0x2048]
push edx
call fcn.00431f90
add esp, 0xc
mov esi, dword [ebp - 0x4058]
mov eax, dword [esi + 0x204]
push eax
push str._sSetup.zip
lea edx, [ebp - 0x2048]
call fcn.00405ab0
lea ecx, [ebp - 0x2048]
push ecx
push str.szSetupzip_File_:___s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 0x10
lea edx, [ebp - 0x2048]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403908
push str.__Extract_Setup_Subdirectory__
mov ecx, 0x467200
call fcn.00405f70
add esp, 4
lea eax, [ebp - 0x2048]
push eax
push str.File_:___s_
mov ecx, 0x467200
call fcn.00405f70
mov ecx, dword [esi + 0x204]
push ecx
push str.Destination_Path_:___s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 0x10
mov edi, dword [esi + 0x204]
lea esi, [ebp - 0x2048]
call fcn.0040c1b0
test al, al
je 0x40399c
mov ecx, esi
call fcn.004075c0
test eax, eax
jne 0x4038f6
mov edx, esi
push edx
push str.___s_delete_success__
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
push str.__Extract_success__
mov ecx, 0x467200
call fcn.00405f70
add esp, 4
push 0x800
push ebx
lea ecx, [ebp - 0x3048]
push ecx
call fcn.00431f90
add esp, 0xc
lea edx, [ebp - 0x1848]
push edx
mov eax, dword [ebp - 0x4058]
mov ecx, dword [eax + 0x204]
push ecx
push 0x454448
lea edx, [ebp - 0x3048]
call fcn.00405ab0
add esp, 0xc
lea eax, [ebp - 0x848]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403950
sub eax, edx
push 0x3ff
sar eax, 1
je 0x4039c9
push 0x4551e4
push 0x400
lea edx, [ebp - 0x848]
push edx
call fcn.0043169a
push 0x3ff
push 0x4551e8
push 0x400
lea eax, [ebp - 0x848]
push eax
call fcn.0043169a
add esp, 0x20
jmp 0x4039e2
push str.__Extract_fail__
mov ecx, 0x467200
call fcn.00405f70
add esp, 4
mov dword [ebp - 0x4070], 3
push 0x45cadc
lea eax, [ebp - 0x4070]
push eax
call fcn.0043527b
push 0x4551e8
push 0x400
lea ecx, [ebp - 0x848]
push ecx
call fcn.00430f8d
add esp, 0x10
mov edi, dword [ebp - 0x406c]
cmp edi, ebx
je 0x403a51
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4039f1
sub eax, edx
sar eax, 1
je 0x403a51
lea edx, [ebp - 0x848]
push edx
lea ecx, [ebp - 0x404c]
call fcn.00401a70
mov ecx, edi
lea esi, [ebp - 0x404c]
call fcn.00405820
cmp eax, 0xffffffff
jne 0x403a51
push 0x3ff
push 0x4551e4
push 0x400
lea eax, [ebp - 0x848]
push eax
call fcn.0043169a
add esp, 0x10
mov eax, edi
lea ecx, [ebp - 0x848]
call fcn.00405ad0
lea eax, [ebp - 0x1048]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403a60
sub eax, edx
sar eax, 1
je 0x403b0c
lea ecx, [ebp - 0x1048]
push ecx
push str.Port_:__s
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
lea edx, [ebp - 0x848]
push edx
lea ecx, [ebp - 0x404c]
call fcn.00401a70
lea ecx, [ebp - 0x1048]
lea esi, [ebp - 0x404c]
call fcn.00405820
cmp eax, 0xffffffff
jne 0x403b0c
push 0x3ff
push str.__P__
push 0x400
lea eax, [ebp - 0x848]
push eax
call fcn.0043169a
push 0x3ff
lea ecx, [ebp - 0x1048]
push ecx
push 0x400
lea edx, [ebp - 0x848]
push edx
call fcn.0043169a
push 0x3ff
push 0x455210
push 0x400
lea eax, [ebp - 0x848]
push eax
call fcn.0043169a
add esp, 0x30
cmp byte [ebp + 0xc], 0
jne 0x403b66
lea ecx, [ebp - 0x848]
push ecx
lea ecx, [ebp - 0x404c]
call fcn.00401a70
mov ecx, 0x455214
lea esi, [ebp - 0x404c]
call fcn.00405820
cmp eax, 0xffffffff
je 0x403b48
mov ecx, 0x45521c
call fcn.00405820
cmp eax, 0xffffffff
jne 0x403b66
push 0x3ff
push 0x455224
push 0x400
lea edx, [ebp - 0x848]
push edx
call fcn.0043169a
add esp, 0x10
lea edx, [ebp - 0x848]
lea ecx, [ebp - 0x3048]
call fcn.004080a0
lea eax, [ebp - 0x3048]
push eax
push str.Command_:__s
mov ecx, 0x467200
call fcn.00405f70
lea ecx, [ebp - 0x848]
push ecx
push 0x4541e4
mov ecx, 0x467200
call fcn.00405f70
add esp, 0x10
push 2
mov esi, dword [ebp - 0x4058]
mov ecx, esi
call fcn.00402bd0
push 3
mov ecx, esi
call fcn.00402bd0
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x404c]
call fcn.00401c00
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x4074]
push edx
call fcn.00406580
mov eax, dword [ebp - 0x4050]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431056
mov esp, ebp
pop ebp
ret 8