Function at 0x4030d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44998e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4090
call fcn.004351f0
mov eax, dword [0x4615e0]
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.00431f30
add esp, 0xc
push 0x800
push ebx
lea eax, [ebp - 0x3048]
push eax
call fcn.00431f30
add esp, 0xc
push 0x800
push ebx
lea ecx, [ebp - 0x1848]
push ecx
call fcn.00431f30
add esp, 0xc
push 0x800
push ebx
lea edx, [ebp - 0x2848]
push edx
call fcn.00431f30
add esp, 0xc
push 0x800
push ebx
lea eax, [ebp - 0x1048]
push eax
call fcn.00431f30
add esp, 0xc
push 0x800
push ebx
lea ecx, [ebp - 0x4048]
push ecx
call fcn.00431f30
add esp, 0xc
push 0x800
push ebx
lea edx, [ebp - 0x3848]
push edx
call fcn.00431f30
add esp, 0xc
push 0x800
push ebx
lea eax, [ebp - 0x2048]
push eax
call fcn.00431f30
add esp, 0xc
mov dword [ebp - 0x4074], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4064], ebx
mov dword [ebp - 0x4060], 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 0x45340c
lea ecx, [ebp - 0x404c]
call fcn.00401c90
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.00431f30
add esp, 0xc
push 0x800
push ebx
lea edx, [ebp - 0x848]
push edx
call fcn.00431f30
add esp, 0xc
cmp byte [ebp + 0xc], bl
je 0x40329f
push 0x800
push ebx
lea eax, [ebp - 0x1848]
push eax
call fcn.00431f30
add esp, 0xc
push 0x3ff
push str.Setup.exe
push 0x400
lea ecx, [ebp - 0x1848]
push ecx
call fcn.00430f2d
add esp, 0x10
jmp 0x403827
lea esi, [ebp - 0x40a0]
call fcn.0040b360
mov byte [ebp - 4], 3
mov bl, byte [eax + 0x18]
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.0040b440
call fcn.00419620
mov eax, dword [eax + 8]
push 0x400
lea ecx, [ebp - 0x1848]
mov edx, eax
test bl, bl
je 0x4032f3
push str.COMMAND64
call fcn.00407170
test eax, eax
je 0x403317
push 0x800
push 0
lea edx, [ebp - 0x1848]
push edx
jmp 0x40330f
push str.COMMAND32
call fcn.00407170
test eax, eax
je 0x403317
push 0x800
push 0
lea eax, [ebp - 0x1848]
push eax
call fcn.00431f30
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 0x403398
call fcn.00419620
mov eax, dword [eax + 8]
push 0x400
push str.COMMAND
lea ecx, [ebp - 0x1848]
mov edx, eax
call fcn.00407170
test eax, eax
je 0x403398
push 0x800
push ebx
lea ecx, [ebp - 0x1848]
push ecx
call fcn.00431f30
add esp, 0xc
push 0x3ff
push str.Setup.exe
push 0x400
lea edx, [ebp - 0x1848]
push edx
call fcn.00430f2d
push str.Get_Command_Fail__
mov ecx, 0x466208
call fcn.00405f80
add esp, 0x14
lea eax, [ebp - 0x1848]
push eax
push str.Command_from_Resource_:___s_
mov ecx, 0x466208
call fcn.00405f80
push 0x800
push ebx
lea ecx, [ebp - 0x1048]
push ecx
call fcn.00431f30
add esp, 0x14
call fcn.00419620
mov eax, dword [eax + 8]
push str.PORT
lea ecx, [ebp - 0x1048]
mov edx, eax
call fcn.00407450
test eax, eax
je 0x4033fb
push 0x800
push ebx
lea edx, [ebp - 0x1048]
push edx
call fcn.00431f30
add esp, 0xc
jmp 0x40367d
lea eax, [ebp - 0x1048]
push eax
push str.UNC_Port_:___s_
mov ecx, 0x466208
call fcn.00405f80
push 0x800
push ebx
lea ecx, [ebp - 0x2848]
push ecx
call fcn.00431f30
add esp, 0x14
push 0x800
push ebx
lea edx, [ebp - 0x4048]
push edx
call fcn.00431f30
add esp, 0xc
call fcn.00419620
mov eax, dword [eax + 8]
push str.USER
lea ecx, [ebp - 0x2848]
mov edx, eax
call fcn.00407450
test eax, eax
jne 0x403488
lea edx, [ebp - 0x4048]
lea ecx, [ebp - 0x2848]
call fcn.004054d0
test eax, eax
jne 0x403488
lea edi, [ebp - 0x4048]
push str.Success_to_decode_the_szUser
mov ecx, 0x466208
call fcn.00405f80
add esp, 4
jmp 0x40348e
mov edi, dword [ebp - 0x4064]
push 0x800
push ebx
lea eax, [ebp - 0x2848]
push eax
call fcn.00431f30
add esp, 0xc
push 0x800
push ebx
lea ecx, [ebp - 0x3848]
push ecx
call fcn.00431f30
add esp, 0xc
call fcn.00419620
mov eax, dword [eax + 8]
push str.PASSWORD
lea ecx, [ebp - 0x2848]
mov edx, eax
call fcn.00407450
test eax, eax
jne 0x403505
lea edx, [ebp - 0x3848]
lea ecx, [ebp - 0x2848]
call fcn.004054d0
test eax, eax
jne 0x403505
lea esi, [ebp - 0x3848]
push str.Success_to_decode_the_szPassword
mov ecx, 0x466208
call fcn.00405f80
add esp, 4
jmp 0x40350b
mov esi, dword [ebp - 0x4060]
cmp edi, ebx
je 0x403513
cmp esi, ebx
jne 0x403523
mov dword [ebp - 0x4064], ebx
mov dword [ebp - 0x4060], ebx
mov edi, ebx
mov esi, ebx
push esi
mov edx, edi
lea ecx, [ebp - 0x1048]
call fcn.00405390
mov dword [ebp - 0x4050], eax
cmp eax, ebx
je 0x403552
cmp eax, 0x55
je 0x403552
push 0x800
push ebx
lea edx, [ebp - 0x1048]
push edx
jmp 0x40364c
lea eax, [ebp - 0x1048]
lea edx, [eax + 2]
jmp 0x403560
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403560
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 0x403621
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 0x4035e6
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, 0x466208
call fcn.00405f80
jmp 0x403651
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, 0x466208
call fcn.00405f80
add esp, 0xc
push 0x800
push ebx
lea eax, [ebp - 0x1048]
push eax
jmp 0x40364c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4050], eax
push str.Fail_to_OpenPrinter
mov ecx, 0x466208
call fcn.00405f80
add esp, 4
push 0x800
push ebx
lea ecx, [ebp - 0x1048]
push ecx
call fcn.00431f30
add esp, 0xc
mov eax, dword [ebp - 0x405c]
cmp eax, ebx
je 0x403664
push eax
call sub.WINSPOOL.DRV_ClosePrinter
mov edx, dword [ebp - 0x4050]
push edx
push str.Add_UNC_Port_Result_:___d_
mov ecx, 0x466208
call fcn.00405f80
add esp, 8
lea eax, [ebp - 0x1048]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403686
sub eax, edx
sar eax, 1
jne 0x4036e1
call fcn.00419620
mov eax, dword [eax + 8]
push 0x400
push str.PORT
lea ecx, [ebp - 0x1048]
mov edx, eax
call fcn.00407170
test eax, eax
je 0x4036e1
push 0x800
push ebx
lea eax, [ebp - 0x1048]
push eax
call fcn.00431f30
add esp, 0xc
push str.Get_Port_Fail__
mov ecx, 0x466208
call fcn.00405f80
add esp, 4
lea ecx, [ebp - 0x1048]
push ecx
push str.Port_from_Resource_:___s_
mov ecx, 0x466208
call fcn.00405f80
push 0x453f78
lea edx, [ebp - 0x1848]
push edx
call fcn.00430deb
add esp, 0x10
test eax, eax
jne 0x40372c
mov eax, dword [ebp - 0x4058]
push eax
lea edx, [ebp - 0x1048]
mov ecx, dword [ebp - 0x406c]
call fcn.00403c50
jmp 0x403825
lea esi, [ebp - 0x40a0]
call fcn.0040b360
mov byte [ebp - 4], 4
mov bl, byte [eax + 0x18]
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.0040b440
call fcn.00419620
mov eax, dword [eax + 8]
push 0x400
lea ecx, [ebp - 0x848]
mov edx, eax
test bl, bl
je 0x403780
push str.PARAM64
call fcn.00407170
test eax, eax
je 0x4037a4
push 0x800
push 0
lea ecx, [ebp - 0x848]
push ecx
jmp 0x40379c
push str.PARAM32
call fcn.00407170
test eax, eax
je 0x4037a4
push 0x800
push 0
lea edx, [ebp - 0x848]
push edx
call fcn.00431f30
add esp, 0xc
lea eax, [ebp - 0x848]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4037b0
sub eax, edx
sar eax, 1
jne 0x40380c
call fcn.00419620
mov eax, dword [eax + 8]
push 0x400
push str.PARAM
lea ecx, [ebp - 0x848]
mov edx, eax
call fcn.00407170
test eax, eax
je 0x40380c
push 0x800
push 0
lea eax, [ebp - 0x848]
push eax
call fcn.00431f30
add esp, 0xc
push str.Get_Parameter_Fail__
mov ecx, 0x466208
call fcn.00405f80
add esp, 4
lea ecx, [ebp - 0x848]
push ecx
push str.Parameter_from_Resource_:___s_
mov ecx, 0x466208
call fcn.00405f80
add esp, 8
xor ebx, ebx
push 0x800
push ebx
lea edx, [ebp - 0x2048]
push edx
call fcn.00431f30
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.00405ac0
lea ecx, [ebp - 0x2048]
push ecx
push str.szSetupzip_File_:___s_
mov ecx, 0x466208
call fcn.00405f80
add esp, 0x10
lea edx, [ebp - 0x2048]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403913
push str.__Extract_Setup_Subdirectory__
mov ecx, 0x466208
call fcn.00405f80
add esp, 4
lea eax, [ebp - 0x2048]
push eax
push str.File_:___s_
mov ecx, 0x466208
call fcn.00405f80
mov ecx, dword [esi + 0x204]
push ecx
push str.Destination_Path_:___s_
mov ecx, 0x466208
call fcn.00405f80
add esp, 0x10
mov edi, dword [esi + 0x204]
lea esi, [ebp - 0x2048]
call fcn.0040c150
test al, al
je 0x4039ac
mov ecx, esi
call fcn.00407560
test eax, eax
jne 0x403901
mov edx, esi
push edx
push str.___s_delete_success__
mov ecx, 0x466208
call fcn.00405f80
add esp, 8
push str.__Extract_success__
mov ecx, 0x466208
call fcn.00405f80
add esp, 4
push 0x800
push ebx
lea ecx, [ebp - 0x3048]
push ecx
call fcn.00431f30
add esp, 0xc
lea edx, [ebp - 0x1848]
push edx
mov eax, dword [ebp - 0x4058]
mov ecx, dword [eax + 0x204]
push ecx
push 0x453448
lea edx, [ebp - 0x3048]
call fcn.00405ac0
add esp, 0xc
lea eax, [ebp - 0x848]
lea edx, [eax + 2]
jmp 0x403960
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403960
sub eax, edx
push 0x3ff
sar eax, 1
je 0x4039d9
push 0x4541e4
push 0x400
lea edx, [ebp - 0x848]
push edx
call fcn.0043163a
push 0x3ff
push 0x4541e8
push 0x400
lea eax, [ebp - 0x848]
push eax
call fcn.0043163a
add esp, 0x20
jmp 0x4039f2
push str.__Extract_fail__
mov ecx, 0x466208
call fcn.00405f80
add esp, 4
mov dword [ebp - 0x4070], 3
push 0x45b9ec
lea eax, [ebp - 0x4070]
push eax
call fcn.0043521b
push 0x4541e8
push 0x400
lea ecx, [ebp - 0x848]
push ecx
call fcn.00430f2d
add esp, 0x10
mov edi, dword [ebp - 0x406c]
cmp edi, ebx
je 0x403a61
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403a01
sub eax, edx
sar eax, 1
je 0x403a61
lea edx, [ebp - 0x848]
push edx
lea ecx, [ebp - 0x404c]
call fcn.00401a80
mov ecx, edi
lea esi, [ebp - 0x404c]
call fcn.00405830
cmp eax, 0xffffffff
jne 0x403a61
push 0x3ff
push 0x4541e4
push 0x400
lea eax, [ebp - 0x848]
push eax
call fcn.0043163a
add esp, 0x10
mov eax, edi
lea ecx, [ebp - 0x848]
call fcn.00405ae0
lea eax, [ebp - 0x1048]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403a70
sub eax, edx
sar eax, 1
je 0x403b1c
lea ecx, [ebp - 0x1048]
push ecx
push str.Port_:__s
mov ecx, 0x466208
call fcn.00405f80
add esp, 8
lea edx, [ebp - 0x848]
push edx
lea ecx, [ebp - 0x404c]
call fcn.00401a80
lea ecx, [ebp - 0x1048]
lea esi, [ebp - 0x404c]
call fcn.00405830
cmp eax, 0xffffffff
jne 0x403b1c
push 0x3ff
push str.__P__
push 0x400
lea eax, [ebp - 0x848]
push eax
call fcn.0043163a
push 0x3ff
lea ecx, [ebp - 0x1048]
push ecx
push 0x400
lea edx, [ebp - 0x848]
push edx
call fcn.0043163a
push 0x3ff
push 0x454210
push 0x400
lea eax, [ebp - 0x848]
push eax
call fcn.0043163a
add esp, 0x30
cmp byte [ebp + 0xc], 0
jne 0x403b76
lea ecx, [ebp - 0x848]
push ecx
lea ecx, [ebp - 0x404c]
call fcn.00401a80
mov ecx, 0x454214
lea esi, [ebp - 0x404c]
call fcn.00405830
cmp eax, 0xffffffff
je 0x403b58
mov ecx, 0x45421c
call fcn.00405830
cmp eax, 0xffffffff
jne 0x403b76
push 0x3ff
push 0x454224
push 0x400
lea edx, [ebp - 0x848]
push edx
call fcn.0043163a
add esp, 0x10
lea edx, [ebp - 0x848]
lea ecx, [ebp - 0x3048]
call fcn.00408040
lea eax, [ebp - 0x3048]
push eax
push str.Command_:__s
mov ecx, 0x466208
call fcn.00405f80
lea ecx, [ebp - 0x848]
push ecx
push 0x4531e4
mov ecx, 0x466208
call fcn.00405f80
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.00401c10
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x4074]
push edx
call fcn.00406590
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.00430ff6
mov esp, ebp
pop ebp
ret 8