Function at 0x10001fc0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040de8
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x10052260]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10055ed0]
mov esi, ecx
push 0x10047fd0
lea ecx, [ebp - 0x1ac]
mov dword [ebp - 0x1bc], esi
mov dword [ebp - 0x1b0], eax
call fcn.100012b0
lea ecx, [ebp - 0x1a0]
push ecx
xor edi, edi
push 0x202
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, edi
jne 0x10002262
push edi
push 0x1f400
push edi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
lea ecx, [ebp - 0x1a4]
push 0x10055f1c
push ecx
mov dword [0x10055edc], eax
call fcn.10006840
add esp, 8
push eax
mov byte [ebp - 4], 2
call fcn.10002700
mov ebx, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1a4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10002088
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1b8]
push ecx
call fcn.10002460
push ebx
lea edi, [ebp - 0x1a4]
lea esi, [ebp - 0x1b0]
mov byte [ebp - 4], 3
call fcn.10007810
push eax
mov byte [ebp - 4], 4
call fcn.10007d50
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1a4]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100020dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1b8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10002103
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x100021fd
lea ecx, [ebp - 0x1a8]
push 0x10055f1c
push ecx
call fcn.10006840
add esp, 8
mov edi, eax
mov esi, dword [ebp - 0x1bc]
mov byte [ebp - 4], 5
push 0x10055f18
lea ecx, [esi + 0x10]
mov dword [esi + 0x18], 1
call fcn.10001d80
lea ecx, [esi + 0x14]
push edi
call fcn.10001d80
lea ecx, [esi + 0x10]
call fcn.10001aa0
mov esi, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1a8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10002177
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x10002180
call fcn.100023b0
lea ecx, [ebp - 0x1b4]
push ecx
call fcn.10002460
lea edx, [ebp - 0x1b0]
mov bl, 6
push edx
mov ecx, esi
lea edi, [ebp - 0x1a8]
mov byte [ebp - 4], bl
call fcn.100078b0
push eax
mov byte [ebp - 4], 7
call fcn.10007d50
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1a8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100021d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1b4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100021fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x10055edc]
test eax, eax
je 0x10002217
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov dword [0x10055edc], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1ac]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10002246
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002099e
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x1a4]
lea eax, [ebp - 0x1b0]
call fcn.100077f0
push eax
mov byte [ebp - 4], 1
call fcn.10007d50
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1a4]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100022a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x10055edc]
cmp eax, edi
je 0x10002217
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov dword [0x10055edc], edi
jmp 0x10002217