Function at 0x1001ba00
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082bd5
mov eax, dword fs:[0]
push eax
mov eax, 0x2284
call fcn.10047b90
mov eax, dword [0x100ac1c4]
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 - 0x2254], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2258], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2250], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x225c], eax
xor eax, eax
mov dword [ebp - 0x2234], ecx
mov dword [ebp - 0x2260], edx
mov dword [ebp - 0x2238], eax
test ecx, ecx
jne 0x1001ba7d
xor eax, eax
jmp 0x1001c82c
test esi, esi
jne 0x1001bf59
call fcn.10008540
push 1
mov ecx, eax
call fcn.1003d4c0
test al, al
je 0x1001ba76
call fcn.1001dfb0
mov ecx, eax
call fcn.100143d0
xorps xmm0, xmm0
mov dword [ebp - 0x48], esi
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x224c], esi
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x2240]
push eax
call fcn.1001dfb0
mov ecx, eax
call fcn.10014360
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 0x1001bb02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1001bb49
lea eax, [ebp - 0x2240]
push eax
call fcn.1001dfb0
mov ecx, eax
call fcn.10014360
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
push eax
cmp dword [ebp - 0x14], ecx
je 0x1001bb31
call fcn.10013b90
add dword [ebp - 0x18], 4
jmp 0x1001bb3a
push ecx
lea ecx, [ebp - 0x1c]
call fcn.1001adf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2240]
call fcn.100054b0
call fcn.10008540
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x2240], eax
push ecx
mov ecx, eax
call fcn.1003afb0
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x68]
cmp esi, edi
je 0x1001bc05
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1001bb7b
mov eax, dword [esi]
mov ecx, dword [ebp - 0x2240]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1003d230
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x1001bb97
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x223c]
call fcn.10003cf0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x223c]
mov eax, dword [ebp - 0x18]
push ecx
cmp dword [ebp - 0x14], eax
je 0x1001bbc3
mov ecx, eax
call fcn.10013b90
add dword [ebp - 0x18], 4
jmp 0x1001bbcc
push eax
lea ecx, [ebp - 0x1c]
call fcn.1001adf0
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 0x1001bbee
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.10005880
add esi, 0x18
cmp esi, edi
jne 0x1001bb71
mov eax, dword [ebp - 0x18]
xor esi, esi
sub eax, dword [ebp - 0x1c]
sar eax, 2
test eax, eax
je 0x1001be4d
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov ecx, dword [0x100ad9bc]
test ecx, ecx
jne 0x1001bc82
push 0x100ab084
call edi
cmp dword [0x100ad9bc], 0
jne 0x1001bc71
push 0x14
call fcn.1004771c
add esp, 4
mov dword [ebp - 0x2280], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x1001bc5b
mov ecx, eax
call fcn.10014120
jmp 0x1001bc5d
xor eax, eax
mov byte [ebp - 4], 4
xor edx, edx
lea ecx, [ebp - 0x228c]
lock or dword [ecx], edx
mov dword [0x100ad9bc], eax
push 0x100ab084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100ad9bc]
lea eax, [ebp - 0x223c]
push eax
call fcn.10014360
mov byte [ebp - 4], 9
or dword [ebp - 0x2238], 1
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x1001bd48
mov ecx, dword [0x100ad9bc]
test ecx, ecx
jne 0x1001bd0a
push 0x100ab084
call edi
cmp dword [0x100ad9bc], 0
jne 0x1001bcf9
push 0x14
call fcn.1004771c
add esp, 4
mov dword [ebp - 0x2290], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x1001bce3
mov ecx, eax
call fcn.10014120
jmp 0x1001bce5
xor eax, eax
mov byte [ebp - 4], 9
xor edx, edx
lea ecx, [ebp - 0x2284]
lock or dword [ecx], edx
mov dword [0x100ad9bc], eax
push 0x100ab084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100ad9bc]
lea eax, [ebp - 0x2240]
push eax
call fcn.10014360
mov dword [ebp - 4], 0xb
or dword [ebp - 0x2238], 2
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
test ecx, ecx
je 0x1001c84e
push ecx
push dword [eax + esi*4]
call fcn.10057865
add esp, 8
mov byte [ebp - 0x222d], 1
test eax, eax
jne 0x1001bd4f
mov byte [ebp - 0x222d], 0
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x2238]
test cl, 2
je 0x1001bd95
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 0x1001bd95
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 0x1001bdcc
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 0x1001bdcc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x222d], 0
je 0x1001bde8
cmp dword [ebp - 0x224c], 0
jne 0x1001be3b
mov dword [ebp - 0x224c], 1
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x60]
push ecx
push dword [eax + esi*4]
call fcn.10028670
add esp, 8
test eax, eax
js 0x1001be3b
cmp dword [ebp - 0x5c], 4
jne 0x1001be3b
mov eax, dword [ebp - 0x1c]
push dword [eax + esi*4]
push dword [ebp - 0x225c]
push dword [ebp - 0x2260]
push dword [ebp - 0x2250]
push dword [ebp - 0x2258]
push dword [ebp - 0x2254]
push dword [ebp - 0x2234]
call sym.HpSvc.dll_CallLudashiServiceExInternal
test eax, eax
jne 0x1001bebd
mov eax, dword [ebp - 0x18]
inc esi
sub eax, dword [ebp - 0x1c]
sar eax, 2
cmp esi, eax
jb 0x1001bc20
mov dword [ebp - 0x224c], 0
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x6c]
test esi, esi
je 0x1001bee8
mov edi, dword [ebp - 0x68]
cmp esi, edi
je 0x1001be81
nop dword [eax]
mov ecx, esi
call fcn.10005880
add esi, 0x18
cmp esi, edi
jne 0x1001be70
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 0x1001bec9
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c849
jmp 0x1001bec9
mov dword [ebp - 0x224c], 1
jmp 0x1001be57
push ecx
push esi
call fcn.1004774c
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 0x1001bf4e
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.1001ad80
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 0x1001bf2f
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c858
push ecx
push edx
call fcn.1004774c
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x224c]
jmp 0x1001c82c
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.100503b0
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 0x1001c7c5
lea eax, [ebp - 0x2248]
push eax
lea eax, [ebp - 0x2244]
push eax
call fcn.1001daa0
test eax, eax
je 0x1001c7c5
push 0x10
push dword [ebp - 0x2248]
push dword [ebp - 0x2244]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x1001c7c5
push esi
push eax
push str.Port
call fcn.100192a0
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 - 0x2248]
mov esi, dword [ebp - 0x225c]
push edi
push 0xc8
mov dword [ebp - 0x2284], eax
lea eax, [ebp - 0x2288]
push edi
push eax
push 2
mov dword [ebp - 0x2288], esi
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 2
jae 0x1001c7bf
cmp esi, dword [ebp + eax*4 - 0x2288]
je 0x1001c7c5
push 0x2c
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.100503b0
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
je 0x1001c7c5
movaps xmm0, xmmword [0x1008b7a0]
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 0x100adb4a
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10047c12
mov edi, eax
add esp, 8
mov dword [ebp - 0x44], edi
test edi, edi
je 0x1001c125
add esi, esi
push esi
push dword [ebp - 0x2234]
push edi
call fcn.1004fe30
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
movaps xmm0, xmmword [0x1008b7a0]
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 - 0x2254]
test eax, eax
je 0x1001c1aa
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 0x100adb4a
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10047c12
mov edi, eax
add esp, 8
mov dword [ebp - 0x60], edi
test edi, edi
je 0x1001c1aa
add esi, esi
push esi
push dword [ebp - 0x2254]
push edi
call fcn.1004fe30
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
movaps xmm0, xmmword [0x1008b7a0]
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 - 0x2258]
mov dword [ebp - 0x223c], 0
test eax, eax
je 0x1001c260
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 0x100adb4a
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10047c12
mov esi, eax
add esp, 8
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x227c], esi
test esi, esi
je 0x1001c260
mov esi, dword [ebp - 0x2270]
add esi, esi
push esi
push dword [ebp - 0x2258]
push eax
call fcn.1004fe30
mov eax, dword [ebp - 0x223c]
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x223c], eax
mov word [eax + esi], cx
call fcn.10032410
mov dword [ebp - 0x2234], eax
mov byte [ebp - 4], 0x11
test eax, eax
jne 0x1001c2b3
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2234]
call fcn.100061c0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x227c]
call fcn.1001b370
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x60]
call fcn.1001b370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.1001b370
xor edi, edi
jmp 0x1001c7c5
mov eax, dword [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1001c311
push 0
push 0
push 0
push 0
push dword [ebp - 0x38]
push eax
push 0
push 0xfde9
call esi
push 0x100adb4a
mov dword [ebp - 0x34], eax
lea ecx, [eax + 1]
push ecx
call fcn.10047c12
add esp, 8
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1001c314
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.10032440
push eax
push 0x1008b250
push dword [ebp - 0x2234]
call fcn.10032300
add esp, 0x10
test edi, edi
je 0x1001c384
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 0x100adb4a
mov dword [ebp - 0x50], edi
lea ecx, [edi + 1]
push ecx
call fcn.10047c12
add esp, 8
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x1001c387
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 0x1001c387
mov eax, dword [ebp - 0x5c]
push eax
call fcn.10032440
push eax
push str.appname
push dword [ebp - 0x2234]
call fcn.10032300
add esp, 0x10
cmp dword [ebp - 0x223c], 0
je 0x1001c411
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 0x100adb4a
mov dword [ebp - 0x226c], edi
lea ecx, [edi + 1]
push ecx
call fcn.10047c12
add esp, 8
mov dword [ebp - 0x2278], eax
test eax, eax
je 0x1001c417
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 0x1001c417
mov eax, dword [ebp - 0x2278]
push eax
call fcn.10032440
mov esi, dword [ebp - 0x2234]
push eax
push str.cmdline
push esi
call fcn.10032300
push esi
call fcn.100326c0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1001c47c
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2234]
call fcn.100061c0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x227c]
call fcn.1001b370
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x60]
call fcn.1001b370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.1001b370
jmp 0x1001c7c5
push 0x2000
lea eax, [ebp - 0x222c]
push 0
push eax
call fcn.100503b0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax + 1]
cmp ecx, 0x1ffe
ja 0x1001c43e
lea eax, [ecx + 2]
push ecx
mov word [ebp - 0x222c], ax
lea eax, [ebp - 0x222a]
push edi
push eax
call fcn.1004fe30
mov esi, dword [ebp - 0x225c]
lea eax, [ebp - 0x222c]
add esp, 0xc
push 0x3e8
push eax
push dword [ebp - 0x2244]
push dword [ebp - 0x2248]
push esi
call fcn.100209f0
push 0x2000
lea eax, [ebp - 0x222c]
push 0
push eax
call fcn.100503b0
add esp, 0xc
lea eax, [ebp - 0x222c]
push 0xbb8
push eax
push dword [ebp - 0x2244]
push dword [ebp - 0x2248]
push esi
call fcn.1001ec30
test eax, eax
je 0x1001c43e
cmp word [ebp - 0x222c], 2
jbe 0x1001c43e
lea eax, [ebp - 0x222a]
push eax
call fcn.10032660
mov esi, eax
add esp, 4
mov dword [ebp - 0x224c], esi
mov byte [ebp - 4], 0x12
test esi, esi
jne 0x1001c560
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x224c]
call fcn.100061c0
jmp 0x1001c43e
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.10011cb0
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x28]
push 0
push eax
push esi
call fcn.10033630
add esp, 0xc
mov byte [ebp - 0x222d], al
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1001c5e0
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001c5d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c85d
push edx
push ecx
call fcn.1004774c
add esp, 8
mov eax, dword [ebp - 0x2250]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test eax, eax
je 0x1001c659
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 0x1001c621
sub ecx, edx
push ecx
push dword [ebp - 0x2250]
lea ecx, [ebp - 0x28]
call fcn.10011cb0
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.10033690
add esp, 0xc
jmp 0x1001c65b
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 0x1001c6c9
and eax, 0xfffffffb
mov dword [ebp - 0x2238], eax
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1001c6b7
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001c6a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c862
push edx
push ecx
call fcn.1004774c
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 0x1001c6ea
cmp dword [ebp - 0x2250], 0
je 0x1001c6e0
cmp dword [ecx], 0
jbe 0x1001c6ea
mov dword [ebp - 0x2240], 1
mov byte [ebp - 4], 0x11
push esi
call fcn.100324f0
mov dword [ebp - 0x224c], 0
mov byte [ebp - 4], 0x10
push dword [ebp - 0x2234]
call fcn.100324f0
mov dword [ebp - 0x2234], 0
mov byte [ebp - 4], 0xf
push dword [ebp - 0x227c]
call fcn.10047763
push dword [ebp - 0x2278]
mov dword [ebp - 0x227c], 0
call fcn.10047763
push 0
mov dword [ebp - 0x2278], 0
call fcn.10047763
mov dword [ebp - 0x2274], 0
mov byte [ebp - 4], 0xe
push dword [ebp - 0x60]
call fcn.10047763
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
call fcn.10047763
push 0
mov dword [ebp - 0x5c], 0
call fcn.10047763
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x44]
call fcn.10047763
mov ecx, dword [ebp - 0x40]
push ecx
mov dword [ebp - 0x44], 0
call fcn.10047763
push 0
mov dword [ebp - 0x40], 0
call fcn.10047763
add esp, 0x2c
mov dword [ebp - 0x3c], 0
jmp 0x1001c7c5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [ebp - 0x2248]
test eax, eax
je 0x1001c7e0
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [ebp - 0x2248], 0
mov eax, dword [ebp - 0x2244]
cmp eax, 0xffffffff
je 0x1001c80a
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 0x1001c819
call dword [sym.imp.WS2_32.dll_WSACleanup]
test edi, edi
je 0x1001c826
push edi
call fcn.10055f63
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.10047acb
mov esp, ebp
pop ebp
ret 0x1c
call fcn.100534b3
push 0x80004005
call fcn.100079c0
call fcn.100534b3
call fcn.100534b3
call fcn.100534b3
int3