Function at 0x1001b430
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c9b5
mov eax, dword fs:[0]
push eax
mov eax, 0x2284
call fcn.10049410
mov eax, dword [0x100a6204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x2258], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x225c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2254], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2250], eax
xor eax, eax
mov dword [ebp - 0x2234], ecx
mov dword [ebp - 0x2260], edx
mov dword [ebp - 0x2238], eax
test ecx, ecx
je 0x1001b4cd
test esi, esi
jne 0x1001b9a1
call fcn.100081e0
push 1
mov ecx, eax
call fcn.10040970
test al, al
jne 0x1001b4d4
push str.ProductHelperSingleton_init_fail
call fcn.10007880
add esp, 4
xor eax, eax
jmp 0x1001c2aa
call fcn.10018950
mov ecx, eax
call fcn.10013da0
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x224c], 0
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2240]
push eax
call fcn.10018950
mov ecx, eax
call fcn.10013d30
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov esi, dword [eax - 0xc]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x2240]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001b557
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1001b59e
lea eax, [ebp - 0x2240]
push eax
call fcn.10018950
mov ecx, eax
call fcn.10013d30
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
push eax
cmp dword [ebp - 0x14], ecx
je 0x1001b586
call fcn.10013560
add dword [ebp - 0x18], 4
jmp 0x1001b58f
push ecx
lea ecx, [ebp - 0x1c]
call fcn.1001a830
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2240]
call fcn.10005020
call fcn.100081e0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x2240], eax
push ecx
mov ecx, eax
call fcn.10040510
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x68]
cmp esi, edi
je 0x1001b65a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1001b5d0
mov eax, dword [esi]
mov ecx, dword [ebp - 0x2240]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10040830
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x1001b5ec
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x223c]
call fcn.10003ca0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x223c]
mov eax, dword [ebp - 0x18]
push ecx
cmp dword [ebp - 0x14], eax
je 0x1001b618
mov ecx, eax
call fcn.10013560
add dword [ebp - 0x18], 4
jmp 0x1001b621
push eax
lea ecx, [ebp - 0x1c]
call fcn.1001a830
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x223c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001b643
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.100053f0
add esi, 0x18
cmp esi, edi
jne 0x1001b5c6
mov eax, dword [ebp - 0x18]
xor esi, esi
sub eax, dword [ebp - 0x1c]
sar eax, 2
test eax, eax
je 0x1001b898
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x100a7974]
test ecx, ecx
jne 0x1001b6d3
push 0x100a5004
call edi
cmp dword [0x100a7974], 0
jne 0x1001b6c2
push 0x14
call fcn.10048f93
add esp, 4
mov dword [ebp - 0x2290], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x1001b6b0
mov ecx, eax
call fcn.10013af0
mov ecx, eax
jmp 0x1001b6b2
xor ecx, ecx
mov byte [ebp - 4], 4
xchg dword [ebp - 0x2240], eax
mov dword [0x100a7974], ecx
push 0x100a5004
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100a7974]
lea eax, [ebp - 0x2264]
push eax
call fcn.10013d30
mov byte [ebp - 4], 9
or dword [ebp - 0x2238], 1
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x1001b797
mov ecx, dword [0x100a7974]
test ecx, ecx
jne 0x1001b759
push 0x100a5004
call edi
cmp dword [0x100a7974], 0
jne 0x1001b748
push 0x14
call fcn.10048f93
add esp, 4
mov dword [ebp - 0x2284], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x1001b736
mov ecx, eax
call fcn.10013af0
mov ecx, eax
jmp 0x1001b738
xor ecx, ecx
mov byte [ebp - 4], 9
xchg dword [ebp - 0x223c], eax
mov dword [0x100a7974], ecx
push 0x100a5004
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100a7974]
lea eax, [ebp - 0x228c]
push eax
call fcn.10013d30
mov dword [ebp - 4], 0xb
or dword [ebp - 0x2238], 2
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
test ecx, ecx
je 0x1001c2cc
push ecx
push dword [eax + esi*4]
call fcn.10059246
add esp, 8
mov byte [ebp - 0x222d], 1
test eax, eax
jne 0x1001b79e
mov byte [ebp - 0x222d], 0
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x2238]
test cl, 2
je 0x1001b7e4
and ecx, 0xfffffffd
mov dword [ebp - 0x2238], ecx
mov dword [ebp - 4], 9
or eax, 0xffffffff
mov edx, dword [ebp - 0x228c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001b7e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2238]
mov dword [ebp - 4], 4
test cl, 1
je 0x1001b81b
and ecx, 0xfffffffe
mov dword [ebp - 0x2238], ecx
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x2264]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001b81b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x222d], 0
je 0x1001b837
cmp dword [ebp - 0x224c], 0
jne 0x1001b886
mov dword [ebp - 0x224c], 1
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x60]
push ecx
push dword [eax + esi*4]
call fcn.100282f0
add esp, 8
test eax, eax
js 0x1001b886
cmp dword [ebp - 0x5c], 4
jne 0x1001b886
mov eax, dword [ebp - 0x1c]
push dword [eax + esi*4]
push dword [ebp - 0x2250]
push dword [ebp - 0x2260]
push dword [ebp - 0x2254]
push dword [ebp - 0x225c]
push dword [ebp - 0x2258]
push dword [ebp - 0x2234]
call sym.HpSvc.dll_CLSEI
test eax, eax
jne 0x1001b905
mov eax, dword [ebp - 0x18]
inc esi
sub eax, dword [ebp - 0x1c]
sar eax, 2
cmp esi, eax
jb 0x1001b673
mov dword [ebp - 0x224c], 0
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x6c]
test esi, esi
je 0x1001b930
mov edi, dword [ebp - 0x68]
cmp esi, edi
je 0x1001b8c9
mov ecx, esi
call fcn.100053f0
add esi, 0x18
cmp esi, edi
jne 0x1001b8b8
mov esi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x64]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x1001b911
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c2c7
jmp 0x1001b911
mov dword [ebp - 0x224c], 1
jmp 0x1001b8a2
push ecx
push esi
call fcn.10048fc3
add esp, 8
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1001b996
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.1001a7c0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
sub ecx, edx
and ecx, 0xfffffffc
mov eax, edx
cmp ecx, 0x1000
jb 0x1001b977
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c2d6
push ecx
push edx
call fcn.10048fc3
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x224c]
jmp 0x1001c2aa
push 0x190
mov dword [ebp - 0x2240], eax
xor edi, edi
mov dword [ebp - 0x2248], eax
mov dword [edx], eax
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 0x2244], 0xffffffff
call fcn.10051fb0
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x2264], eax
test eax, eax
jne 0x1001c243
lea eax, [ebp - 0x2248]
push eax
lea eax, [ebp - 0x2244]
push eax
call fcn.1001d740
test eax, eax
je 0x1001c243
push 0x10
push dword [ebp - 0x2248]
push dword [ebp - 0x2244]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x1001c243
push esi
push eax
push str.Port
call fcn.10018c40
movzx esi, ax
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x70], xmm0
push 0x7f000001
mov word [ebp - 0x70], ax
call dword [sym.imp.WS2_32.dll_htonl]
push esi
mov dword [ebp - 0x6c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x6e], ax
lea eax, [ebp - 0x70]
push 0x10
push eax
push dword [ebp - 0x2244]
call dword [sym.imp.WS2_32.dll_connect]
mov eax, dword [ebp - 0x2250]
push edi
mov dword [ebp - 0x2288], eax
mov eax, dword [ebp - 0x2248]
push 0xc8
mov dword [ebp - 0x2284], eax
lea eax, [ebp - 0x2288]
push edi
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov esi, eax
cmp esi, 2
jae 0x1001c22e
mov eax, dword [ebp - 0x2250]
cmp eax, dword [ebp + esi*4 - 0x2288]
jne 0x1001bacb
push 0x1008681c
call fcn.10007880
add esp, 4
jmp 0x1001c243
push 0x2c
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.10051fb0
add esp, 0xc
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x2248]
push dword [ebp - 0x2244]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test dword [ebp - 0x9c], 0x10
jne 0x1001bb15
push str.._n
call fcn.10007880
add esp, 4
jmp 0x1001c243
movaps xmm0, xmmword [0x10086ef0]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0xe
push dword [ebp - 0x2234]
mov dword [ebp - 0x38], 0xffffffff
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
xor ecx, ecx
mov edx, 2
mov dword [ebp - 0x38], esi
push 0x100a7b3a
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10049492
mov edi, eax
add esp, 8
mov dword [ebp - 0x44], edi
test edi, edi
je 0x1001bb92
add esi, esi
push esi
push dword [ebp - 0x2234]
push edi
call fcn.10051a30
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
movaps xmm0, xmmword [0x10086ef0]
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0xf
xor edi, edi
mov eax, dword [ebp - 0x2258]
test eax, eax
je 0x1001bc17
push eax
mov dword [ebp - 0x54], 0xffffffff
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
xor ecx, ecx
mov edx, 2
mov dword [ebp - 0x54], esi
push 0x100a7b3a
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10049492
mov edi, eax
add esp, 8
mov dword [ebp - 0x60], edi
test edi, edi
je 0x1001bc17
add esi, esi
push esi
push dword [ebp - 0x2258]
push edi
call fcn.10051a30
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
movaps xmm0, xmmword [0x10086ef0]
movups xmmword [ebp - 0x2280], xmm0
mov dword [ebp - 0x2270], 0xffffffff
mov dword [ebp - 0x226c], 0xffffffff
mov dword [ebp - 0x2268], 0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x225c]
mov dword [ebp - 0x223c], 0
test eax, eax
je 0x1001bccd
push eax
mov dword [ebp - 0x2274], 0xffffffff
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x2274], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
push 0x100a7b3a
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10049492
mov esi, eax
add esp, 8
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2280], esi
test esi, esi
je 0x1001bccd
mov esi, dword [ebp - 0x2274]
add esi, esi
push esi
push dword [ebp - 0x225c]
push eax
call fcn.10051a30
mov eax, dword [ebp - 0x223c]
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x223c], eax
mov word [eax + esi], cx
call fcn.10039760
mov dword [ebp - 0x2234], eax
mov byte [ebp - 4], 0x11
test eax, eax
jne 0x1001bd20
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2234]
call fcn.10005cc0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2280]
call fcn.1001adb0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x60]
call fcn.1001adb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.1001adb0
xor edi, edi
jmp 0x1001c243
mov eax, dword [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1001bd7e
push 0
push 0
push 0
push 0
push dword [ebp - 0x38]
push eax
push 0
push 0xfde9
call esi
push 0x100a7b3a
mov dword [ebp - 0x34], eax
lea ecx, [eax + 1]
push ecx
call fcn.10049492
add esp, 8
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1001bd81
push 0
push 0
push dword [ebp - 0x34]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x44]
push 0
push 0xfde9
call esi
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x40]
push eax
call fcn.10039790
push eax
push 0x10086404
push dword [ebp - 0x2234]
call fcn.10039650
add esp, 0x10
test edi, edi
je 0x1001bdf1
push 0
push 0
push 0
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x60]
push 0
push 0xfde9
call esi
mov edi, eax
push 0x100a7b3a
mov dword [ebp - 0x50], edi
lea ecx, [edi + 1]
push ecx
call fcn.10049492
add esp, 8
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x1001bdf4
push 0
push 0
push edi
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x60]
push 0
push 0xfde9
call esi
mov eax, dword [ebp - 0x5c]
mov byte [edi + eax], 0
jmp 0x1001bdf4
mov eax, dword [ebp - 0x5c]
push eax
call fcn.10039790
push eax
push str.appname
push dword [ebp - 0x2234]
call fcn.10039650
add esp, 0x10
cmp dword [ebp - 0x223c], 0
je 0x1001be7e
push 0
push 0
push 0
push 0
push dword [ebp - 0x2274]
push dword [ebp - 0x2280]
push 0
push 0xfde9
call esi
mov edi, eax
push 0x100a7b3a
mov dword [ebp - 0x2270], edi
lea ecx, [edi + 1]
push ecx
call fcn.10049492
add esp, 8
mov dword [ebp - 0x227c], eax
test eax, eax
je 0x1001be84
push 0
push 0
push edi
push eax
push dword [ebp - 0x2274]
push dword [ebp - 0x2280]
push 0
push 0xfde9
call esi
mov eax, dword [ebp - 0x227c]
mov byte [edi + eax], 0
jmp 0x1001be84
mov eax, dword [ebp - 0x227c]
push eax
call fcn.10039790
mov esi, dword [ebp - 0x2234]
push eax
push str.cmdline
push esi
call fcn.10039650
push esi
call fcn.10039a10
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1001bee9
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2234]
call fcn.10005cc0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2280]
call fcn.1001adb0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x60]
call fcn.1001adb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.1001adb0
jmp 0x1001c243
push 0x2000
lea eax, [ebp - 0x222c]
push 0
push eax
call fcn.10051fb0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax + 1]
cmp ecx, 0x1ffe
ja 0x1001beab
lea eax, [ecx + 2]
push ecx
mov word [ebp - 0x222c], ax
lea eax, [ebp - 0x222a]
push edi
push eax
call fcn.10051a30
mov esi, dword [ebp - 0x2250]
lea eax, [ebp - 0x222c]
add esp, 0xc
push 0x3e8
push eax
push dword [ebp - 0x2244]
push dword [ebp - 0x2248]
push esi
call fcn.10020610
push 0x2000
lea eax, [ebp - 0x222c]
push 0
push eax
call fcn.10051fb0
add esp, 0xc
lea eax, [ebp - 0x222c]
push 0xbb8
push eax
push dword [ebp - 0x2244]
push dword [ebp - 0x2248]
push esi
call fcn.1001e870
test eax, eax
je 0x1001beab
cmp word [ebp - 0x222c], 2
jbe 0x1001beab
lea eax, [ebp - 0x222a]
push eax
call fcn.100399b0
mov esi, eax
add esp, 4
mov dword [ebp - 0x224c], esi
mov byte [ebp - 4], 0x12
test esi, esi
jne 0x1001bfcd
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x224c]
call fcn.10005cc0
jmp 0x1001beab
push 6
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push str.result
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10011690
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x28]
push 0
push eax
push esi
call fcn.1003a980
add esp, 0xc
mov byte [ebp - 0x222d], al
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1001c04d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001c043
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c2db
push edx
push ecx
call fcn.10048fc3
add esp, 8
mov eax, dword [ebp - 0x2254]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test eax, eax
je 0x1001c0c8
mov ecx, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001c090
sub ecx, edx
push ecx
push dword [ebp - 0x2254]
lea ecx, [ebp - 0x28]
call fcn.10011690
mov byte [ebp - 4], 0x14
mov eax, 4
mov dword [ebp - 0x2238], eax
lea eax, [ebp - 0x28]
push 0
push eax
push esi
call fcn.1003a9e0
add esp, 0xc
jmp 0x1001c0ca
xor eax, eax
mov ecx, dword [ebp - 0x2260]
mov dword [ecx], eax
mov dword [ebp - 4], 0x12
mov eax, dword [ebp - 0x2238]
test al, 4
je 0x1001c138
and eax, 0xfffffffb
mov dword [ebp - 0x2238], eax
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1001c126
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001c116
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c2e0
push edx
push ecx
call fcn.10048fc3
mov ecx, dword [ebp - 0x2260]
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp byte [ebp - 0x222d], 0
je 0x1001c159
cmp dword [ebp - 0x2254], 0
je 0x1001c14f
cmp dword [ecx], 0
jbe 0x1001c159
mov dword [ebp - 0x2240], 1
mov byte [ebp - 4], 0x11
push esi
call fcn.10039840
mov dword [ebp - 0x224c], 0
mov byte [ebp - 4], 0x10
push dword [ebp - 0x2234]
call fcn.10039840
mov dword [ebp - 0x2234], 0
mov byte [ebp - 4], 0xf
push dword [ebp - 0x2280]
call fcn.10048fda
push dword [ebp - 0x227c]
mov dword [ebp - 0x2280], 0
call fcn.10048fda
push 0
mov dword [ebp - 0x227c], 0
call fcn.10048fda
mov dword [ebp - 0x2278], 0
mov byte [ebp - 4], 0xe
push dword [ebp - 0x60]
call fcn.10048fda
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
call fcn.10048fda
push 0
mov dword [ebp - 0x5c], 0
call fcn.10048fda
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x44]
call fcn.10048fda
mov ecx, dword [ebp - 0x40]
push ecx
mov dword [ebp - 0x44], 0
call fcn.10048fda
push 0
mov dword [ebp - 0x40], 0
call fcn.10048fda
add esp, 0x2c
mov dword [ebp - 0x3c], 0
jmp 0x1001c243
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push 0x100867e4
call fcn.10007880
add esp, 0xc
mov eax, dword [ebp - 0x2248]
test eax, eax
je 0x1001c25e
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [ebp - 0x2248], 0
mov eax, dword [ebp - 0x2244]
cmp eax, 0xffffffff
je 0x1001c288
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebp - 0x2244]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x2244], 0xffffffff
cmp dword [ebp - 0x2264], 0
jne 0x1001c297
call dword [sym.imp.WS2_32.dll_WSACleanup]
test edi, edi
je 0x1001c2a4
push edi
call fcn.10057942
add esp, 4
mov eax, dword [ebp - 0x2240]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10049342
mov esp, ebp
pop ebp
ret 0x1c
call fcn.100550e9
push 0x80004005
call fcn.100074c0
call fcn.100550e9
call fcn.100550e9
call fcn.100550e9
int3