Function at 0x1001bfb0
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083165
mov eax, dword fs:[0]
push eax
mov eax, 0x2284
call fcn.10051b80
mov eax, dword [0x100ae254]
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 0x1001c04d
test esi, esi
jne 0x1001c529
call fcn.10008ad0
push 1
mov ecx, eax
call fcn.10047400
test al, al
jne 0x1001c054
push str.ProductHelperSingleton_init_fail
call fcn.10007df0
add esp, 4
xor eax, eax
jmp 0x1001ce30
call fcn.100195e0
mov ecx, eax
call fcn.10014500
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.100195e0
mov ecx, eax
call fcn.10014490
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 0x1001c0d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1001c11e
lea eax, [ebp - 0x2240]
push eax
call fcn.100195e0
mov ecx, eax
call fcn.10014490
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
push eax
cmp dword [ebp - 0x14], ecx
je 0x1001c106
call fcn.10013cc0
add dword [ebp - 0x18], 4
jmp 0x1001c10f
push ecx
lea ecx, [ebp - 0x1c]
call fcn.1001b360
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2240]
call fcn.10005520
call fcn.10008ad0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x2240], eax
push ecx
mov ecx, eax
call fcn.10044c20
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x68]
cmp esi, edi
je 0x1001c1da
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1001c150
mov eax, dword [esi]
mov ecx, dword [ebp - 0x2240]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10046d20
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x1001c16c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x223c]
call fcn.10003d20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x223c]
mov eax, dword [ebp - 0x18]
push ecx
cmp dword [ebp - 0x14], eax
je 0x1001c198
mov ecx, eax
call fcn.10013cc0
add dword [ebp - 0x18], 4
jmp 0x1001c1a1
push eax
lea ecx, [ebp - 0x1c]
call fcn.1001b360
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 0x1001c1c3
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.100058f0
add esi, 0x18
cmp esi, edi
jne 0x1001c146
mov eax, dword [ebp - 0x18]
xor esi, esi
sub eax, dword [ebp - 0x1c]
sar eax, 2
test eax, eax
je 0x1001c420
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x100af984]
test ecx, ecx
jne 0x1001c255
push 0x100ad004
call edi
cmp dword [0x100af984], 0
jne 0x1001c244
push 0x14
call fcn.10051708
add esp, 4
mov dword [ebp - 0x2280], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x1001c22e
mov ecx, eax
call fcn.10014250
jmp 0x1001c230
xor eax, eax
mov byte [ebp - 4], 4
xor edx, edx
lea ecx, [ebp - 0x228c]
lock or dword [ecx], edx
mov dword [0x100af984], eax
push 0x100ad004
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100af984]
lea eax, [ebp - 0x223c]
push eax
call fcn.10014490
mov byte [ebp - 4], 9
or dword [ebp - 0x2238], 1
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x1001c31b
mov ecx, dword [0x100af984]
test ecx, ecx
jne 0x1001c2dd
push 0x100ad004
call edi
cmp dword [0x100af984], 0
jne 0x1001c2cc
push 0x14
call fcn.10051708
add esp, 4
mov dword [ebp - 0x2290], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x1001c2b6
mov ecx, eax
call fcn.10014250
jmp 0x1001c2b8
xor eax, eax
mov byte [ebp - 4], 9
xor edx, edx
lea ecx, [ebp - 0x2284]
lock or dword [ecx], edx
mov dword [0x100af984], eax
push 0x100ad004
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100af984]
lea eax, [ebp - 0x2240]
push eax
call fcn.10014490
mov dword [ebp - 4], 0xb
or dword [ebp - 0x2238], 2
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
test ecx, ecx
je 0x1001ce52
push ecx
push dword [eax + esi*4]
call fcn.1005fca6
add esp, 8
mov byte [ebp - 0x222d], 1
test eax, eax
jne 0x1001c322
mov byte [ebp - 0x222d], 0
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x2238]
test cl, 2
je 0x1001c368
and ecx, 0xfffffffd
mov dword [ebp - 0x2238], ecx
mov dword [ebp - 4], 9
or eax, 0xffffffff
mov edx, dword [ebp - 0x2240]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001c368
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 0x1001c39f
and ecx, 0xfffffffe
mov dword [ebp - 0x2238], ecx
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x223c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001c39f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x222d], 0
je 0x1001c3bb
cmp dword [ebp - 0x224c], 0
jne 0x1001c40e
mov dword [ebp - 0x224c], 1
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x60]
push ecx
push dword [eax + esi*4]
call fcn.10029260
add esp, 8
test eax, eax
js 0x1001c40e
cmp dword [ebp - 0x5c], 4
jne 0x1001c40e
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 0x1001c48d
mov eax, dword [ebp - 0x18]
inc esi
sub eax, dword [ebp - 0x1c]
sar eax, 2
cmp esi, eax
jb 0x1001c1f3
mov dword [ebp - 0x224c], 0
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x6c]
test esi, esi
je 0x1001c4b8
mov edi, dword [ebp - 0x68]
cmp esi, edi
je 0x1001c451
mov ecx, esi
call fcn.100058f0
add esi, 0x18
cmp esi, edi
jne 0x1001c440
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 0x1001c499
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ce4d
jmp 0x1001c499
mov dword [ebp - 0x224c], 1
jmp 0x1001c42a
push ecx
push esi
call fcn.10051738
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 0x1001c51e
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.1001b2f0
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 0x1001c4ff
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ce5c
push ecx
push edx
call fcn.10051738
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x224c]
jmp 0x1001ce30
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.10058a20
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x2280], eax
test eax, eax
jne 0x1001cdc9
lea eax, [ebp - 0x2248]
push eax
lea eax, [ebp - 0x2244]
push eax
call fcn.1001e2f0
test eax, eax
je 0x1001cdc9
push 0x10
push dword [ebp - 0x2248]
push dword [ebp - 0x2244]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x1001cdc9
push esi
push eax
push str.Port
call fcn.10019850
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 0x1001cdb4
mov eax, dword [ebp - 0x2250]
cmp eax, dword [ebp + esi*4 - 0x2288]
jne 0x1001c653
push 0x1008c744
call fcn.10007df0
add esp, 4
jmp 0x1001cdc9
push 0x2c
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.10058a20
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 0x1001c69d
push str.._n
call fcn.10007df0
add esp, 4
jmp 0x1001cdc9
movaps xmm0, xmmword [0x1008cea0]
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 0x100afb52
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10051c02
mov edi, eax
add esp, 8
mov dword [ebp - 0x44], edi
test edi, edi
je 0x1001c71a
add esi, esi
push esi
push dword [ebp - 0x2234]
push edi
call fcn.100584a0
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
movaps xmm0, xmmword [0x1008cea0]
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 0x1001c79f
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 0x100afb52
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10051c02
mov edi, eax
add esp, 8
mov dword [ebp - 0x60], edi
test edi, edi
je 0x1001c79f
add esi, esi
push esi
push dword [ebp - 0x2258]
push edi
call fcn.100584a0
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
movaps xmm0, xmmword [0x1008cea0]
movups xmmword [ebp - 0x227c], xmm0
mov dword [ebp - 0x226c], 0xffffffff
mov dword [ebp - 0x2268], 0xffffffff
mov dword [ebp - 0x2264], 0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x225c]
mov dword [ebp - 0x223c], 0
test eax, eax
je 0x1001c855
push eax
mov dword [ebp - 0x2270], 0xffffffff
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x2270], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
push 0x100afb52
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10051c02
mov esi, eax
add esp, 8
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x227c], esi
test esi, esi
je 0x1001c855
mov esi, dword [ebp - 0x2270]
add esi, esi
push esi
push dword [ebp - 0x225c]
push eax
call fcn.100584a0
mov eax, dword [ebp - 0x223c]
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x223c], eax
mov word [eax + esi], cx
call fcn.1003c630
mov dword [ebp - 0x2234], eax
mov byte [ebp - 4], 0x11
test eax, eax
jne 0x1001c8a8
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2234]
call fcn.10006230
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x227c]
call fcn.1001b930
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x60]
call fcn.1001b930
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.1001b930
xor edi, edi
jmp 0x1001cdc9
mov eax, dword [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1001c906
push 0
push 0
push 0
push 0
push dword [ebp - 0x38]
push eax
push 0
push 0xfde9
call esi
push 0x100afb52
mov dword [ebp - 0x34], eax
lea ecx, [eax + 1]
push ecx
call fcn.10051c02
add esp, 8
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1001c909
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.1003c660
push eax
push 0x1008c31c
push dword [ebp - 0x2234]
call fcn.1003c520
add esp, 0x10
test edi, edi
je 0x1001c979
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 0x100afb52
mov dword [ebp - 0x50], edi
lea ecx, [edi + 1]
push ecx
call fcn.10051c02
add esp, 8
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x1001c97c
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 0x1001c97c
mov eax, dword [ebp - 0x5c]
push eax
call fcn.1003c660
push eax
push str.appname
push dword [ebp - 0x2234]
call fcn.1003c520
add esp, 0x10
cmp dword [ebp - 0x223c], 0
je 0x1001ca06
push 0
push 0
push 0
push 0
push dword [ebp - 0x2270]
push dword [ebp - 0x227c]
push 0
push 0xfde9
call esi
mov edi, eax
push 0x100afb52
mov dword [ebp - 0x226c], edi
lea ecx, [edi + 1]
push ecx
call fcn.10051c02
add esp, 8
mov dword [ebp - 0x2278], eax
test eax, eax
je 0x1001ca0c
push 0
push 0
push edi
push eax
push dword [ebp - 0x2270]
push dword [ebp - 0x227c]
push 0
push 0xfde9
call esi
mov eax, dword [ebp - 0x2278]
mov byte [edi + eax], 0
jmp 0x1001ca0c
mov eax, dword [ebp - 0x2278]
push eax
call fcn.1003c660
mov esi, dword [ebp - 0x2234]
push eax
push str.cmdline
push esi
call fcn.1003c520
push esi
call fcn.1003c8e0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1001ca71
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2234]
call fcn.10006230
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x227c]
call fcn.1001b930
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x60]
call fcn.1001b930
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.1001b930
jmp 0x1001cdc9
push 0x2000
lea eax, [ebp - 0x222c]
push 0
push eax
call fcn.10058a20
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax + 1]
cmp ecx, 0x1ffe
ja 0x1001ca33
lea eax, [ecx + 2]
push ecx
mov word [ebp - 0x222c], ax
lea eax, [ebp - 0x222a]
push edi
push eax
call fcn.100584a0
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.10021560
push 0x2000
lea eax, [ebp - 0x222c]
push 0
push eax
call fcn.10058a20
add esp, 0xc
lea eax, [ebp - 0x222c]
push 0xbb8
push eax
push dword [ebp - 0x2244]
push dword [ebp - 0x2248]
push esi
call fcn.1001f620
test eax, eax
je 0x1001ca33
cmp word [ebp - 0x222c], 2
jbe 0x1001ca33
lea eax, [ebp - 0x222a]
push eax
call fcn.1003c880
mov esi, eax
add esp, 4
mov dword [ebp - 0x224c], esi
mov byte [ebp - 4], 0x12
test esi, esi
jne 0x1001cb55
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x224c]
call fcn.10006230
jmp 0x1001ca33
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.10011d00
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x28]
push 0
push eax
push esi
call fcn.1003d850
add esp, 0xc
mov byte [ebp - 0x222d], al
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1001cbd5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001cbcb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ce61
push edx
push ecx
call fcn.10051738
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 0x1001cc4e
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]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001cc16
sub ecx, edx
push ecx
push dword [ebp - 0x2254]
lea ecx, [ebp - 0x28]
call fcn.10011d00
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.1003d8b0
add esp, 0xc
jmp 0x1001cc50
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 0x1001ccbe
and eax, 0xfffffffb
mov dword [ebp - 0x2238], eax
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1001ccac
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001cc9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ce66
push edx
push ecx
call fcn.10051738
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 0x1001ccdf
cmp dword [ebp - 0x2254], 0
je 0x1001ccd5
cmp dword [ecx], 0
jbe 0x1001ccdf
mov dword [ebp - 0x2240], 1
mov byte [ebp - 4], 0x11
push esi
call fcn.1003c710
mov dword [ebp - 0x224c], 0
mov byte [ebp - 4], 0x10
push dword [ebp - 0x2234]
call fcn.1003c710
mov dword [ebp - 0x2234], 0
mov byte [ebp - 4], 0xf
push dword [ebp - 0x227c]
call fcn.1005174f
push dword [ebp - 0x2278]
mov dword [ebp - 0x227c], 0
call fcn.1005174f
push 0
mov dword [ebp - 0x2278], 0
call fcn.1005174f
mov dword [ebp - 0x2274], 0
mov byte [ebp - 4], 0xe
push dword [ebp - 0x60]
call fcn.1005174f
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
call fcn.1005174f
push 0
mov dword [ebp - 0x5c], 0
call fcn.1005174f
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x44]
call fcn.1005174f
mov ecx, dword [ebp - 0x40]
push ecx
mov dword [ebp - 0x44], 0
call fcn.1005174f
push 0
mov dword [ebp - 0x40], 0
call fcn.1005174f
add esp, 0x2c
mov dword [ebp - 0x3c], 0
jmp 0x1001cdc9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push 0x1008c70c
call fcn.10007df0
add esp, 0xc
mov eax, dword [ebp - 0x2248]
test eax, eax
je 0x1001cde4
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [ebp - 0x2248], 0
mov eax, dword [ebp - 0x2244]
cmp eax, 0xffffffff
je 0x1001ce0e
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 - 0x2280], 0
jne 0x1001ce1d
call dword [sym.imp.WS2_32.dll_WSACleanup]
test edi, edi
je 0x1001ce2a
push edi
call fcn.1005e3a2
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.10051ab7
mov esp, ebp
pop ebp
ret 0x1c
call fcn.1005bb49
push 0x80004005
call fcn.10007a30
call fcn.1005bb49
call fcn.1005bb49
call fcn.1005bb49
int3