Function at 0x1003d6d0
Capabilities:
Create pipe
Write file on windows
Write pipe

Disassembly:
push ebp
lea ebp, [esp - 0x1a60]
mov eax, 0x1a60
call fcn.100c8100
push 0xffffffffffffffff
push 0x100eec48
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x1a5c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x1a68]
mov dword [ebp - 0x30], edi
mov eax, dword [ebp + 0x1a6c]
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 0x1a70]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 0x1a74]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x1a78]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0x1a7c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0xd
xor ebx, ebx
mov dword [ebp + 0x24c], ebx
mov dword [ebp + 0x250], ebx
mov dword [ebp + 0x254], ebx
push 0x200
push ebx
lea eax, [ebp + 0x258]
push eax
call fcn.100c7d20
add esp, 0xc
mov dword [ebp + 0x458], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x1003de57
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1003d7a0
sub eax, edx
sar eax, 1
je 0x1003de57
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x1003de57
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1003d7c3
sub eax, edx
sar eax, 1
je 0x1003de57
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x1003de57
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1003d7e6
sub eax, edx
sar eax, 1
je 0x1003de57
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x1003de57
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1003d810
sub eax, edx
sar eax, 1
je 0x1003de57
push 0x200
push ebx
lea ecx, [ebp + 0x185c]
push ecx
call fcn.100c7d20
add esp, 0xc
mov esi, dword [ebp - 0x18]
cmp esi, ebx
je 0x1003d86b
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1003d846
sub eax, edx
sar eax, 1
je 0x1003d86b
push 0xff
push esi
push 0x100
lea edx, [ebp + 0x185c]
push edx
jmp 0x1003d881
push 0xff
push str.public
push 0x100
lea eax, [ebp + 0x185c]
push eax
call fcn.100c6041
add esp, 0x10
lea ecx, [edi + 0x120f8]
mov edx, dword [ebp - 0x24]
call fcn.10046d00
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x1003d8c3
push str.Load_Script_files_fail__
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov dword [ebp - 0x44], esi
push 0x1012ac78
lea ecx, [ebp - 0x44]
push ecx
call fcn.100c80ad
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x1003d925
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1003d8d0
sub eax, edx
sar eax, 1
je 0x1003d925
push str.PSU_WSP
push ebx
lea eax, [edi + 0x120f8]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
call fcn.10047190
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x1003d96c
push str.Init_Registry_fail__
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov dword [ebp - 0x5c], esi
push 0x1012ac78
lea edx, [ebp - 0x5c]
push edx
call fcn.100c80ad
push str.PSU_WSP
push str.Easy_Wireless_Setup
lea eax, [edi + 0x120f8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x38]
call fcn.10047190
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x1003d96c
push str.Init_Registry_fail__
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov dword [ebp - 0x48], esi
push 0x1012ac78
lea eax, [ebp - 0x48]
push eax
call fcn.100c80ad
lea esi, [edi + 0x1e2d8]
mov dword [edi + 0x1fb24], esi
push 0x800
push ebx
lea ecx, [ebp + 0x45c]
push ecx
call fcn.100c7d20
push 1
push 0x800
lea edx, [ebp + 0x45c]
push edx
push str.Selected
mov eax, dword [esi]
push eax
mov edx, str.InstallingWSPFoundPrinter
call fcn.10044220
add esp, 0x20
test eax, eax
je 0x1003d9cf
push 0x3ff
push 0x10106260
push 0x400
lea ecx, [ebp + 0x45c]
push ecx
call fcn.100c6041
add esp, 0x10
push 0x800
push ebx
lea edx, [ebp + 0xc5c]
push edx
call fcn.100c7d20
lea eax, [ebp + 0x45c]
push eax
push str.InstallingWSPFoundPrinter
push 0x101093f0
lea edx, [ebp + 0xc5c]
call fcn.10005c50
add esp, 0x18
push str.DevicePath
lea ecx, [ebp + 0xc5c]
push ecx
mov edx, dword [edi + 0x1fb24]
push edx
mov ecx, dword [ebp - 0x34]
call fcn.1000c780
push str.Type
lea eax, [ebp + 0xc5c]
push eax
mov ecx, dword [edi + 0x1fb24]
push ecx
mov ecx, 0x10109b60
call fcn.1000c780
push str.Port
lea edx, [ebp + 0xc5c]
push edx
mov eax, dword [edi + 0x1fb24]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.1000c780
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x1003da89
mov eax, ecx
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x1003da60
sub eax, esi
sar eax, 1
je 0x1003da89
push str.Printer
lea edx, [ebp + 0xc5c]
push edx
mov eax, dword [edi + 0x1fb24]
push eax
call fcn.1000c780
push 0x200
push ebx
lea ecx, [ebp + 0x145c]
push ecx
call fcn.100c7d20
push 0x200
push ebx
lea edx, [ebp + 0x165c]
push edx
call fcn.100c7d20
push 0xff
push 0x1010a75c
push 0x100
lea eax, [ebp + 0x165c]
push eax
call fcn.100c6041
add esp, 0x28
lea ecx, [ebp]
push ecx
call fcn.1000f900
mov byte [ebp - 4], 1
push 0x10108140
lea ecx, [ebp - 0x18]
call fcn.10007ed0
mov byte [ebp - 4], 2
lea ecx, [edi + 0x120f8]
lea edx, [ebp]
call fcn.1000fb20
mov edx, dword [ebp + 0x20]
push edx
lea ecx, [ebp]
call fcn.1000fef0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp]
push ecx
call fcn.1003b890
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x18]
call fcn.10007cc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.10007e70
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
je 0x1003db6e
push eax
push str.MUI_Language_:___s_
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
mov esi, dword [ebp - 0x24]
push esi
push edi
mov edx, dword [ebp - 0x18]
lea ecx, [ebp + 0x185c]
call fcn.1003ec10
push 0xff
mov edx, dword [ebp - 0x18]
push edx
push 0x100
lea eax, [ebp + 0x145c]
push eax
jmp 0x1003db9c
mov esi, dword [ebp - 0x24]
push esi
push edi
lea edx, [ebp + 0x165c]
lea ecx, [ebp + 0x185c]
call fcn.1003ec10
push 0xff
lea ecx, [ebp + 0x165c]
push ecx
push 0x100
lea edx, [ebp + 0x145c]
push edx
call fcn.100c6041
add esp, 0x10
lea eax, [ebp + 0x145c]
push eax
mov edx, esi
lea ecx, [edi + 0x120f8]
call fcn.10046fd0
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x1003dbe4
push str.Load_String_files_fail__
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov dword [ebp - 0x3c], esi
push 0x1012ac78
lea ecx, [ebp - 0x3c]
push ecx
call fcn.100c80ad
lea eax, [edi + 0x1fb28]
lea ecx, [edi + 0x1fb2c]
push 0x1000
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1003dc3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
push str.Create_Flow_Pipe
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.10007e70
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.1000fa90
mov eax, esi
jmp 0x1003dec8
lea esi, [edi + 0x1faec]
mov dword [esi + 4], edi
lea eax, [edi + 0x120f8]
mov dword [esi + 8], eax
push esi
call fcn.10008fc0
mov dword [ebp + 0x24c], esi
lea ecx, [edi + 0x120f8]
mov dword [ebp + 0x254], ecx
mov edx, 2
xor eax, eax
call fcn.10046cb0
mov dword [ebp + 0x250], eax
mov edx, dword [edi + 0x1fb2c]
mov dword [ebp + 0x458], edx
push 0xff
push str.WSP_FLOW_EPM
push 0x100
lea eax, [ebp + 0x258]
push eax
call fcn.100c6041
add esp, 0x10
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp + 0x24c]
push ecx
push 0x1003e090
call fcn.100c08c5
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
jne 0x1003dcee
push str.Init_Flow_Thread_fail___
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x4c], eax
push 0x1012ac78
lea edx, [ebp - 0x4c]
push edx
call fcn.100c80ad
call fcn.100bf0c6
mov eax, dword [eax + 8]
mov ecx, dword [edi + 0x1fb24]
mov ecx, dword [ecx]
mov dword [edi + 0x3f0bc], ecx
mov dword [edi + 0x3f0c0], edi
mov dword [edi + 0x3f0c4], edi
mov dword [edi + 0x3f0c8], eax
call fcn.100bf0c6
mov eax, dword [eax + 8]
mov ecx, dword [edi + 0x1fb24]
mov ecx, dword [ecx]
mov edx, dword [edi]
push ebx
push eax
push str.WSP_WIZARD
push ebx
push ebx
push ecx
push edi
mov eax, dword [edx + 0x168]
call eax
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x1003de40
mov ecx, edi
call fcn.1003df10
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx + 0x144]
call eax
cmp eax, 1
jne 0x1003de34
mov dword [ebp - 0x14], ebx
lea esi, [edi + 0x3f0dc]
push 0x800
push ebx
push esi
call fcn.100c7d20
add esp, 0xc
push str.IPADDRESS
push str.InstallingWSPCurrent
mov ecx, dword [edi + 0x1fb24]
push ecx
mov eax, 0x400
mov edx, esi
call fcn.10008b50
test eax, eax
jne 0x1003ddae
push esi
push str.Wireless_Printer_IP_is___s_
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
mov esi, dword [ebp - 0x20]
mov eax, dword [edi + 0x1fb28]
cmp eax, ebx
je 0x1003de09
mov dword [ebp - 0x58], 3
mov dword [ebp - 0x54], ebx
push ebx
lea edx, [ebp - 0x40]
push edx
push 0xc
lea ecx, [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1003ddf5
push str.WriteFile_of_Flow_Pipe_Data
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
cmp dword [esi + 0x2c], ebx
je 0x1003de09
push 0x1388
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [edi + 0x1fb24]
call fcn.10044e10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.10007e70
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.1000fa90
mov dword [ebp - 4], 0xffffffff
jmp 0x1003de95
mov dword [ebp - 0x14], 0x4c7
jmp 0x1003ddb1
push str.Set_Wizard_fail__
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
jmp 0x1003ddb1
mov eax, 0xd
jmp 0x1003dec8
mov dword [ebp - 4], 5
mov eax, dword [edi + 0x1fb28]
cmp eax, ebx
je 0x1003dead
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi + 0x1fb2c]
cmp edi, ebx
je 0x1003debe
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1a5c]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x1a60
mov esp, ebp
pop ebp
ret 0x18