Function at 0x4152b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x487f9c
mov eax, dword fs:[0]
push eax
mov eax, 0x1134
call fcn.0046d4a0
mov eax, dword [0x4bc7b8]
xor eax, esp
mov dword [esp + 0x1130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bc7b8]
xor eax, esp
push eax
lea eax, [esp + 0x1148]
mov dword fs:[0], eax
mov eax, dword [esp + 0x115c]
mov ebp, dword [esp + 0x1158]
lea esi, [esp + 0x74]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
call fcn.004164d0
push ebp
xor ebx, ebx
push str.CreateAdvNetworkPortEx__s_
mov dword [esp + 0x1158], ebx
call fcn.00426a70
mov edi, eax
call fcn.00426f90
add esp, 8
call dword [esp + 0x1138]
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x14]
push edx
push str.nwiWrapper.NetworkPrinterInfo____attempt__d
call fcn.00426a70
mov edi, eax
call fcn.00426f90
mov edi, 7
mov eax, ebp
add esp, 8
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415367
sub eax, edx
sar eax, 1
push eax
push ebp
lea esi, [esp + 0x60]
call fcn.0040b760
mov byte [esp + 0x1150], 1
mov eax, ebp
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
lea edx, [eax + 2]
jmp 0x4153a0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4153a0
sub eax, edx
sar eax, 1
push eax
push ebp
lea esi, [esp + 0x44]
call fcn.0040b760
mov byte [esp + 0x1150], 2
push ebx
push 0x498194
lea esi, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.0040b760
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x40]
mov eax, esi
push ecx
lea esi, [esp + 0x7c]
mov byte [esp + 0x1158], 3
call fcn.00416730
cmp dword [esp + 0x38], 8
mov esi, eax
jb 0x415411
mov edx, dword [esp + 0x24]
push edx
call fcn.0044ac38
add esp, 4
cmp dword [esp + 0x54], 8
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x415432
mov eax, dword [esp + 0x40]
push eax
call fcn.0044ac38
add esp, 4
mov byte [esp + 0x1150], bl
cmp dword [esp + 0x70], 8
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jb 0x41545a
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0044ac38
add esp, 4
cmp esi, ebx
je 0x4154d8
push str.failed_nwiWrapper.NetworkPrinterInfo____retry...
call fcn.00426a70
mov edi, eax
call fcn.00426f90
add esp, 4
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 3
mov dword [esp + 0x14], eax
jl 0x415337
push str.Was_not_able_to_get_NetworkPrinterInfo.__Manually_add_the_necessary_network_port_data...
call fcn.00426a70
mov edi, eax
call fcn.00426f90
add esp, 4
push str.TCPIP_Port
lea edx, [esp + 0x7c]
push 0x3f
push edx
call fcn.00467e2b
add esp, 0xc
cmp ebp, ebx
je 0x4154d3
push ebp
lea eax, [esp + 0x900]
push 0x104
push eax
call fcn.00467e2b
add esp, 0xc
mov byte [esp + 0x75], 1
push str.nwiWrapper.CreatePort__
call fcn.00426a70
mov edi, eax
call fcn.00426f90
add esp, 4
lea eax, [esp + 0x74]
call fcn.004167f0
test eax, eax
je 0x415522
push str.failed_nwiWrapper.CreatePort__
call fcn.00426a70
mov edi, eax
call fcn.00426f90
mov ecx, dword [esp + 0x1124]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x41560c
push str.nwiWrapper.GetPortname__...
call fcn.00426a70
mov edi, eax
call fcn.00426f90
mov esi, dword [esp + 0x1c]
add esp, 4
lea edx, [esp + 0x78]
push edx
push 0xf6
push esi
call fcn.00467e2b
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415552
sub eax, edx
sar eax, 1
jne 0x41558c
push str.failed_nwiWrapper.GetPortname__:_portname_length__0
call fcn.00426a70
mov edi, eax
call fcn.00426f90
mov eax, dword [esp + 0x1124]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x41560c
push str.nwiWrapper.GetModelName__...
call fcn.00426a70
mov edi, eax
call fcn.00426f90
mov esi, dword [esp + 0x20]
add esp, 4
lea ecx, [esp + 0xd0c]
push ecx
push 0x100
push esi
call fcn.00467e2b
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4155c0
sub eax, edx
sar eax, 1
jne 0x4155e5
push str.failed_nwiWrapper.GetModelName__:_modelName_length__0
call fcn.00426a70
mov edi, eax
call fcn.00426f90
add esp, 4
push str.nCreateAdvNetworkPortEx_Succeeded
call fcn.00426a70
mov edi, eax
call fcn.00426f90
mov edx, dword [esp + 0x1124]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov ecx, dword [esp + 0x1148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1130]
xor ecx, esp
call fcn.004677d8
add esp, 0x1140
ret