Function at 0x1000d980
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push esi
push edi
mov dword [ebp - 4], 0x3e8
call fcn.1001020d
mov dword [0x10031240], eax
mov eax, dword [0x10026fa4]
xor edi, edi
cmp eax, edi
je 0x1000d9f6
mov esi, dword [ebp + 8]
mov dword [0x10026fa4], 1
push esi
push str.File_name___s_n
call fcn.10005e90
push 0x180
push 0x8301
push esi
call fcn.10016520
add esp, 0x14
cmp eax, 0xffffffff
mov dword [0x10023c20], eax
jne 0x1000da91
push esi
push str.Disable_Make__s_File_n
call fcn.10005e90
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x10026fa8], edi
je 0x1000da9c
mov esi, dword [ebp + 0xc]
push edi
push 0x10031204
push esi
mov dword [0x100349c8], edi
mov dword [ebp - 0x10], str.JET_Rip
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 0x10023c6c
call sub.WINSPOOL.DRV_OpenPrinterA
test eax, eax
jne 0x1000da42
push esi
push 0x10023c70
call fcn.10005e90
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10031204]
lea eax, [ebp - 0x10]
push eax
push 1
push ecx
call sub.WINSPOOL.DRV_StartDocPrinterA
cmp eax, edi
mov dword [0x100349cc], eax
jne 0x1000da7f
push esi
push str.Windows___s__driver_Load_Failed_n
call fcn.10005e90
mov edx, dword [0x10031204]
add esp, 8
push edx
call sub.WINSPOOL.DRV_ClosePrinter
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x2804
call fcn.1000fbdf
add esp, 4
mov dword [0x10031248], eax
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x10026fac], edi
je 0x1000db8e
push str.AsynkOverlap
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [ebp + 0xc]
push edi
push 0x40000000
push 3
push edi
push 2
push 0x40000000
push esi
mov dword [0x10034770], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0x10034770]
cmp eax, 0xffffffff
mov dword [0x10031244], eax
mov dword [0x100348a8], edi
mov dword [0x100348ac], edi
mov dword [0x100348b0], ecx
jne 0x1000db1a
push esi
push str.Not_Open___s__Device_n
call fcn.10005e90
mov edx, dword [0x10034770]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10023c30]
add eax, 0x400
push eax
call fcn.1000fbdf
add esp, 4
cmp eax, edi
mov dword [0x10031294], eax
jne 0x1000db64
push esi
push str.Not_Enough___s__Device_Memory_n
call fcn.10005e90
mov ecx, dword [0x10034770]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push ecx
call esi
mov edx, dword [0x10031244]
push edx
call esi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x10026fc8], edi
mov ecx, 7
mov edi, str..USB
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov edx, eax
pop edi
sete dl
mov dword [0x10026fcc], edx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x10026fbc], edi
je 0x1000dcf3
mov esi, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [0x10031210], esi
push ebx
call dword [sym.imp.WSOCK32.dll_htons]
push ebx
mov word [0x10027d48], ax
mov dword [0x100349ec], edi
mov dword [0x10026fc4], edi
mov word [0x10032910], 2
mov dword [0x10032914], esi
call dword [sym.imp.WSOCK32.dll_htons]
mov word [0x10032912], ax
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
pop ebx
je 0x1000dc0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.TCP_IP_WSAStartup_failed:__d_n
call fcn.10005e90
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, 1
push edi
push esi
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x1003488c], eax
jne 0x1000dc4a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Socket_Error__d_n
call fcn.10005e90
add esp, 8
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x10
push 0x10032910
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000dc8c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Connect_Error__d_n
call fcn.10005e90
mov ecx, dword [0x1003488c]
add esp, 8
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1003488c]
lea edx, [ebp - 4]
push edx
push 0x8004667e
push eax
mov dword [0x10027d60], eax
mov dword [ebp - 4], esi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x1000dcdc
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.failed_to_Blocking_:__d_n
call fcn.10005e90
mov eax, dword [0x1003488c]
add esp, 8
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x100349e8], edi
mov dword [0x10026fc4], esi
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x10023c38], 3
jne 0x1000dd11
call fcn.1000ee10
test eax, eax
je 0x1000da91
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x10026fb8], edi
je 0x1000dd4b
cmp dword [0x10026fb0], edi
je 0x1000dd36
call fcn.1000eba0
test eax, eax
je 0x1000da91
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1000e940
test eax, eax
je 0x1000da91
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1000e920
test eax, eax
je 0x1000da91
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret