Function at 0x10029a80
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088781
mov eax, dword fs:[0]
push eax
mov eax, 0x2284
call fcn.10053770
mov eax, dword [0x100bc1b4]
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 - 0x225c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2260], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2238], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2234], eax
xor eax, eax
mov dword [ebp - 0x2258], ecx
mov dword [ebp - 0x2264], edx
mov dword [ebp - 0x2220], eax
test ecx, ecx
je 0x1002aa99
test esi, esi
jne 0x1002a14c
call fcn.100240f0
mov ecx, eax
call fcn.1001d080
xorps xmm0, xmm0
mov dword [ebp - 0x24], esi
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2230], esi
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x222c]
push eax
call fcn.100240f0
mov ecx, eax
call fcn.1001d020
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 - 0x222c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10029b6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x10029bc7
lea eax, [ebp - 0x222c]
push eax
call fcn.100240f0
mov ecx, eax
call fcn.1001d020
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
push eax
cmp dword [ebp - 0x14], ecx
je 0x10029b9c
call fcn.1001b6f0
add dword [ebp - 0x18], 4
jmp 0x10029ba5
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10027240
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x222c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10029bc7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x221c]
push 1
push eax
call fcn.10052b00
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2211]
call fcn.10028850
push eax
lea eax, [ebp - 0x221c]
push eax
call fcn.10017700
add esp, 8
lea ecx, [ebp - 0x2211]
test al, al
je 0x10029c66
call fcn.10028670
push eax
lea ecx, [ebp - 0x2218]
call fcn.10007b40
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2218]
mov eax, dword [ebp - 0x18]
push ecx
cmp dword [ebp - 0x14], eax
je 0x10029c32
mov ecx, eax
call fcn.1001b6f0
add dword [ebp - 0x18], 4
jmp 0x10029c3b
push eax
lea ecx, [ebp - 0x1c]
call fcn.10027240
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x2218]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10029e69
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10029e69
call fcn.100282b0
push eax
lea eax, [ebp - 0x221c]
push eax
call fcn.10017700
add esp, 8
lea ecx, [ebp - 0x2211]
test al, al
je 0x10029cc7
call fcn.100290c0
push eax
lea ecx, [ebp - 0x2218]
call fcn.10007b40
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2218]
mov eax, dword [ebp - 0x18]
push ecx
cmp dword [ebp - 0x14], eax
je 0x10029cb9
mov ecx, eax
call fcn.1001b6f0
add dword [ebp - 0x18], 4
jmp 0x10029e5a
push eax
lea ecx, [ebp - 0x1c]
call fcn.10027240
jmp 0x10029e5a
call fcn.10028c10
push eax
lea eax, [ebp - 0x221c]
push eax
call fcn.10017700
add esp, 8
lea ecx, [ebp - 0x2211]
test al, al
je 0x10029d00
call fcn.10028fd0
push eax
lea ecx, [ebp - 0x2218]
call fcn.10007b40
mov byte [ebp - 4], 9
jmp 0x10029e4b
call fcn.10028a30
push eax
lea eax, [ebp - 0x221c]
push eax
call fcn.10017700
add esp, 8
lea ecx, [ebp - 0x2211]
test al, al
je 0x10029d39
call fcn.10028d00
push eax
lea ecx, [ebp - 0x2218]
call fcn.10007b40
mov byte [ebp - 4], 0xa
jmp 0x10029e4b
call fcn.10028490
push eax
lea eax, [ebp - 0x221c]
push eax
call fcn.10017700
add esp, 8
lea ecx, [ebp - 0x2211]
test al, al
je 0x10029d72
call fcn.10029570
push eax
lea ecx, [ebp - 0x2218]
call fcn.10007b40
mov byte [ebp - 4], 0xb
jmp 0x10029e4b
call fcn.10028df0
push eax
lea eax, [ebp - 0x221c]
push eax
call fcn.10017700
add esp, 8
lea ecx, [ebp - 0x2211]
test al, al
je 0x10029dab
call fcn.100283a0
push eax
lea ecx, [ebp - 0x2218]
call fcn.10007b40
mov byte [ebp - 4], 0xc
jmp 0x10029e4b
call fcn.100291b0
push eax
lea eax, [ebp - 0x221c]
push eax
call fcn.10017700
add esp, 8
lea ecx, [ebp - 0x2211]
test al, al
je 0x10029de1
call fcn.10029480
push eax
lea ecx, [ebp - 0x2218]
call fcn.10007b40
mov byte [ebp - 4], 0xd
jmp 0x10029e4b
call fcn.10028760
push eax
lea eax, [ebp - 0x221c]
push eax
call fcn.10017700
add esp, 8
lea ecx, [ebp - 0x2211]
test al, al
je 0x10029e17
call fcn.10028b20
push eax
lea ecx, [ebp - 0x2218]
call fcn.10007b40
mov byte [ebp - 4], 0xe
jmp 0x10029e4b
call fcn.10028580
push eax
lea eax, [ebp - 0x221c]
push eax
call fcn.10017700
add esp, 8
test al, al
je 0x10029e69
lea ecx, [ebp - 0x2211]
call fcn.10028ee0
push eax
lea ecx, [ebp - 0x2218]
call fcn.10007b40
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x2218]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10030bd0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2218]
call fcn.10008ed0
mov eax, dword [ebp - 0x18]
xor edi, edi
sub eax, dword [ebp - 0x1c]
sar eax, 2
test eax, eax
je 0x1002a0b2
nop dword [eax]
mov ecx, dword [0x100bd5b0]
test ecx, ecx
jne 0x10029eef
push 0x100b2004
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100bd5b0], 0
jne 0x10029ed6
push 0x1c
call fcn.10053309
mov esi, eax
add esp, 4
mov dword [ebp - 0x2290], esi
mov byte [ebp - 4], 0x10
test esi, esi
je 0x10029eca
lea ecx, [esi + 4]
mov dword [esi], vtable._BaseModule::CCriticalSection.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x10029ecc
xor esi, esi
mov byte [ebp - 4], 5
mov dword [0x100bd5b0], esi
push 0x100b2004
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100bd5b0]
test ecx, ecx
jne 0x10029eef
xor eax, eax
jmp 0x10029f4b
mov eax, dword [0x100bd5ac]
test eax, eax
jne 0x10029f4b
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp dword [0x100bd5ac], 0
jne 0x10029f3b
push 0x14
call fcn.10053309
add esp, 4
mov dword [ebp - 0x2288], eax
mov byte [ebp - 4], 0x11
test eax, eax
je 0x10029f29
mov ecx, eax
call fcn.1001b7a0
mov ecx, eax
jmp 0x10029f2b
xor ecx, ecx
mov byte [ebp - 4], 5
xchg dword [ebp - 0x222c], eax
mov dword [0x100bd5ac], ecx
mov eax, dword [0x100bd5b0]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [0x100bd5ac]
lea ecx, [ebp - 0x2268]
push ecx
mov ecx, eax
call fcn.1001d020
mov byte [ebp - 4], 0x12
or dword [ebp - 0x2220], 1
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x10029fb1
lea eax, [ebp - 0x2218]
push eax
call fcn.100240f0
mov ecx, eax
call fcn.1001d020
mov dword [ebp - 4], 0x13
or dword [ebp - 0x2220], 2
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
test ecx, ecx
je 0x1002aabb
push ecx
push dword [eax + edi*4]
call fcn.10060d4f
add esp, 8
mov byte [ebp - 0x2211], 1
test eax, eax
jne 0x10029fb8
mov byte [ebp - 0x2211], 0
mov dword [ebp - 4], 0x12
mov ecx, dword [ebp - 0x2220]
test cl, 2
je 0x10029ffe
and ecx, 0xfffffffd
mov dword [ebp - 0x2220], ecx
mov dword [ebp - 4], 0x12
or eax, 0xffffffff
mov edx, dword [ebp - 0x2218]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10029ffe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2220]
mov dword [ebp - 4], 5
test cl, 1
je 0x1002a035
and ecx, 0xfffffffe
mov dword [ebp - 0x2220], ecx
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x2268]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002a035
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x2211], 0
je 0x1002a051
cmp dword [ebp - 0x2230], 0
jne 0x1002a0a0
mov dword [ebp - 0x2230], 1
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x3c]
push ecx
push dword [eax + edi*4]
call fcn.100374a0
add esp, 8
test eax, eax
js 0x1002a0a0
cmp dword [ebp - 0x38], 4
jne 0x1002a0a0
mov eax, dword [ebp - 0x1c]
push dword [eax + edi*4]
push dword [ebp - 0x2234]
push dword [ebp - 0x2264]
push dword [ebp - 0x2238]
push dword [ebp - 0x2260]
push dword [ebp - 0x225c]
push dword [ebp - 0x2258]
call sym.wpprovider.dll_CLSEI
test eax, eax
jne 0x1002a11f
mov eax, dword [ebp - 0x18]
inc edi
sub eax, dword [ebp - 0x1c]
sar eax, 2
cmp edi, eax
jb 0x10029e80
xor esi, esi
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x221c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002a0d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1002a145
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.100271d0
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 0x1002a126
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002aab6
jmp 0x1002a126
mov esi, 1
jmp 0x1002a0b4
push ecx
push edx
call fcn.10053339
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, esi
jmp 0x1002aa99
push 0x190
mov dword [ebp - 0x222c], eax
xor edi, edi
mov dword [ebp - 0x2228], eax
mov dword [edx], eax
lea eax, [ebp - 0x210]
push edi
push eax
mov dword [ebp - 0x2224], 0xffffffff
call fcn.100592a0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x2268], eax
test eax, eax
jne 0x1002aa32
lea eax, [ebp - 0x2228]
push eax
lea eax, [ebp - 0x2224]
push eax
call fcn.1002be20
test eax, eax
je 0x1002aa32
push 0x10
push dword [ebp - 0x2228]
push dword [ebp - 0x2224]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x1002aa32
push esi
push eax
push str.Port
call fcn.10024450
movzx esi, ax
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x20], xmm0
push 0x7f000001
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htonl]
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [ebp - 0x2224]
call dword [sym.imp.WS2_32.dll_connect]
mov eax, dword [ebp - 0x2234]
push edi
mov dword [ebp - 0x228c], eax
mov eax, dword [ebp - 0x2228]
push 0xc8
mov dword [ebp - 0x2288], eax
lea eax, [ebp - 0x228c]
push edi
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov esi, eax
cmp esi, 2
jae 0x1002aa1d
mov eax, dword [ebp - 0x2234]
cmp eax, dword [ebp + esi*4 - 0x228c]
jne 0x1002a276
push 0x1009363c
call fcn.1000b130
add esp, 4
jmp 0x1002aa32
push 0x2c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.100592a0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x2228]
push dword [ebp - 0x2224]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test dword [ebp - 0x80], 0x10
jne 0x1002a2b7
push str.._n
call fcn.1000b130
add esp, 4
jmp 0x1002aa32
movaps xmm0, xmmword [0x10093bf0]
movups xmmword [ebp - 0x2254], xmm0
mov dword [ebp - 0x2244], 0xffffffff
mov dword [ebp - 0x2240], 0xffffffff
mov dword [ebp - 0x223c], edi
mov dword [ebp - 4], 0x17
push dword [ebp - 0x2258]
mov dword [ebp - 0x2248], 0xffffffff
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
xor ecx, ecx
mov edx, 2
mov dword [ebp - 0x2248], esi
push 0x100be58e
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10053800
mov edi, eax
add esp, 8
mov dword [ebp - 0x2254], edi
test edi, edi
je 0x1002a349
add esi, esi
push esi
push dword [ebp - 0x2258]
push edi
call fcn.10058d20
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
movaps xmm0, xmmword [0x10093bf0]
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0x18
xor edi, edi
mov eax, dword [ebp - 0x225c]
test eax, eax
je 0x1002a3ce
push eax
mov dword [ebp - 0x30], 0xffffffff
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
xor ecx, ecx
mov edx, 2
mov dword [ebp - 0x30], esi
push 0x100be58e
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10053800
mov edi, eax
add esp, 8
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x1002a3ce
add esi, esi
push esi
push dword [ebp - 0x225c]
push edi
call fcn.10058d20
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
movaps xmm0, xmmword [0x10093bf0]
movups xmmword [ebp - 0x2284], xmm0
mov dword [ebp - 0x2274], 0xffffffff
mov dword [ebp - 0x2270], 0xffffffff
mov dword [ebp - 0x226c], 0
mov byte [ebp - 4], 0x19
mov eax, dword [ebp - 0x2260]
mov dword [ebp - 0x2218], 0
test eax, eax
je 0x1002a484
push eax
mov dword [ebp - 0x2278], 0xffffffff
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x2278], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
push 0x100be58e
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10053800
mov esi, eax
add esp, 8
mov dword [ebp - 0x2218], esi
mov dword [ebp - 0x2284], esi
test esi, esi
je 0x1002a484
mov esi, dword [ebp - 0x2278]
add esi, esi
push esi
push dword [ebp - 0x2260]
push eax
call fcn.10058d20
mov eax, dword [ebp - 0x2218]
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x2218], eax
mov word [eax + esi], cx
call fcn.10042350
mov dword [ebp - 0x221c], eax
mov byte [ebp - 4], 0x1a
test eax, eax
jne 0x1002a4da
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x221c]
call fcn.10009af0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2284]
call fcn.10028050
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x3c]
call fcn.10028050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2254]
call fcn.10028050
xor edi, edi
jmp 0x1002aa32
mov eax, dword [ebp - 0x2254]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1002a553
push 0
push 0
push 0
push 0
push dword [ebp - 0x2248]
push eax
push 0
push 0xfde9
call esi
push 0x100be58e
mov dword [ebp - 0x2244], eax
lea ecx, [eax + 1]
push ecx
call fcn.10053800
add esp, 8
mov dword [ebp - 0x2250], eax
test eax, eax
je 0x1002a559
push 0
push 0
push dword [ebp - 0x2244]
push eax
push dword [ebp - 0x2248]
push dword [ebp - 0x2254]
push 0
push 0xfde9
call esi
mov eax, dword [ebp - 0x2244]
mov ecx, dword [ebp - 0x2250]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x2250]
push eax
call fcn.10042380
push eax
push 0x10093238
push dword [ebp - 0x221c]
call fcn.10042240
add esp, 0x10
test edi, edi
je 0x1002a5c9
push 0
push 0
push 0
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x3c]
push 0
push 0xfde9
call esi
mov edi, eax
push 0x100be58e
mov dword [ebp - 0x2c], edi
lea ecx, [edi + 1]
push ecx
call fcn.10053800
add esp, 8
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1002a5cc
push 0
push 0
push edi
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x3c]
push 0
push 0xfde9
call esi
mov eax, dword [ebp - 0x38]
mov byte [eax + edi], 0
jmp 0x1002a5cc
mov eax, dword [ebp - 0x38]
push eax
call fcn.10042380
push eax
push str.appname
push dword [ebp - 0x221c]
call fcn.10042240
add esp, 0x10
cmp dword [ebp - 0x2218], 0
je 0x1002a656
push 0
push 0
push 0
push 0
push dword [ebp - 0x2278]
push dword [ebp - 0x2284]
push 0
push 0xfde9
call esi
mov edi, eax
push 0x100be58e
mov dword [ebp - 0x2274], edi
lea ecx, [edi + 1]
push ecx
call fcn.10053800
add esp, 8
mov dword [ebp - 0x2280], eax
test eax, eax
je 0x1002a65c
push 0
push 0
push edi
push eax
push dword [ebp - 0x2278]
push dword [ebp - 0x2284]
push 0
push 0xfde9
call esi
mov eax, dword [ebp - 0x2280]
mov byte [eax + edi], 0
jmp 0x1002a65c
mov eax, dword [ebp - 0x2280]
push eax
call fcn.10042380
mov esi, dword [ebp - 0x221c]
push eax
push str.cmdline
push esi
call fcn.10042240
push esi
call fcn.10042600
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1002a6c4
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x221c]
call fcn.10009af0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2284]
call fcn.10028050
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x3c]
call fcn.10028050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2254]
call fcn.10028050
jmp 0x1002aa32
push 0x2000
lea eax, [ebp - 0x2210]
push 0
push eax
call fcn.100592a0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax + 1]
cmp ecx, 0x1ffe
ja 0x1002a683
lea eax, [ecx + 2]
push ecx
mov word [ebp - 0x2210], ax
lea eax, [ebp - 0x220e]
push edi
push eax
call fcn.10058d20
mov esi, dword [ebp - 0x2234]
lea eax, [ebp - 0x2210]
add esp, 0xc
push 0x3e8
push eax
push dword [ebp - 0x2224]
push dword [ebp - 0x2228]
push esi
call fcn.1002efe0
push 0x2000
lea eax, [ebp - 0x2210]
push 0
push eax
call fcn.100592a0
add esp, 0xc
lea eax, [ebp - 0x2210]
push 0xbb8
push eax
push dword [ebp - 0x2224]
push dword [ebp - 0x2228]
push esi
call fcn.1002d000
test eax, eax
je 0x1002a683
cmp word [ebp - 0x2210], 2
jbe 0x1002a683
lea eax, [ebp - 0x220e]
push eax
call fcn.100425a0
mov esi, eax
add esp, 4
mov dword [ebp - 0x2230], esi
mov byte [ebp - 4], 0x1b
test esi, esi
jne 0x1002a7a8
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x2230]
call fcn.10009af0
jmp 0x1002a683
push 6
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 0
push str.result
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
call fcn.10014150
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x54]
push 0
push eax
push esi
call fcn.10043570
add esp, 0xc
mov byte [ebp - 0x2211], al
mov byte [ebp - 4], 0x1b
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
jb 0x1002a828
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002a81e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002aac5
push edx
push ecx
call fcn.10053339
add esp, 8
mov eax, dword [ebp - 0x2238]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
test eax, eax
je 0x1002a8a8
mov ecx, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a870
sub ecx, edx
push ecx
push dword [ebp - 0x2238]
lea ecx, [ebp - 0x54]
call fcn.10014150
mov byte [ebp - 4], 0x1d
mov eax, 4
mov dword [ebp - 0x2220], eax
lea eax, [ebp - 0x54]
push 0
push eax
push esi
call fcn.100435d0
add esp, 0xc
jmp 0x1002a8aa
xor eax, eax
mov ecx, dword [ebp - 0x2264]
mov dword [ecx], eax
mov dword [ebp - 4], 0x1b
mov eax, dword [ebp - 0x2220]
test al, 4
je 0x1002a918
and eax, 0xfffffffb
mov dword [ebp - 0x2220], eax
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
jb 0x1002a906
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002a8f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002aaca
push edx
push ecx
call fcn.10053339
mov ecx, dword [ebp - 0x2264]
add esp, 8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
cmp byte [ebp - 0x2211], 0
je 0x1002a939
cmp dword [ebp - 0x2238], 0
je 0x1002a92f
cmp dword [ecx], 0
jbe 0x1002a939
mov dword [ebp - 0x222c], 1
mov byte [ebp - 4], 0x1a
push esi
call fcn.10042430
mov dword [ebp - 0x2230], 0
mov byte [ebp - 4], 0x19
push dword [ebp - 0x221c]
call fcn.10042430
mov dword [ebp - 0x221c], 0
mov byte [ebp - 4], 0x18
push dword [ebp - 0x2284]
call fcn.100537ab
push dword [ebp - 0x2280]
mov dword [ebp - 0x2284], 0
call fcn.100537ab
push 0
mov dword [ebp - 0x2280], 0
call fcn.100537ab
mov dword [ebp - 0x227c], 0
mov byte [ebp - 4], 0x17
push dword [ebp - 0x3c]
call fcn.100537ab
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
call fcn.100537ab
push 0
mov dword [ebp - 0x38], 0
call fcn.100537ab
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x2254]
call fcn.100537ab
mov ecx, dword [ebp - 0x2250]
push ecx
mov dword [ebp - 0x2254], 0
call fcn.100537ab
push 0
mov dword [ebp - 0x2250], 0
call fcn.100537ab
add esp, 0x2c
mov dword [ebp - 0x224c], 0
jmp 0x1002aa32
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push 0x10093604
call fcn.1000b130
add esp, 0xc
mov eax, dword [ebp - 0x2228]
test eax, eax
je 0x1002aa4d
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [ebp - 0x2228], 0
mov eax, dword [ebp - 0x2224]
cmp eax, 0xffffffff
je 0x1002aa77
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebp - 0x2224]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x2224], 0xffffffff
cmp dword [ebp - 0x2268], 0
jne 0x1002aa86
call dword [sym.imp.WS2_32.dll_WSACleanup]
test edi, edi
je 0x1002aa93
push edi
call fcn.1005f44b
add esp, 4
mov eax, dword [ebp - 0x222c]
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.100536aa
mov esp, ebp
pop ebp
ret 0x1c
call fcn.1005c389
push 0x80004005
call fcn.1000b090
call fcn.1005c389
call fcn.1005c389
int3