Function at 0x100044c0
Capabilities:
Create tcp socket
Create thread
Create udp socket
Get local ipv4 addresses
Get socket information
Get system information on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10099556
mov eax, dword fs:[0]
push eax
sub esp, 0x39c
mov eax, dword [0x100b5004]
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 esi, ecx
mov dword [ebp - 0x3a8], esi
mov edi, dword [ebp + 8]
lea eax, [esi + 4]
push 0x40cf
push edi
push eax
mov dword [ebp - 0x39c], edi
call fcn.1007e990
add esp, 0xc
cmp dword [esi + 0x40fc], 0
je 0x10004c8b
cmp dword [esi + 0x4124], 0
je 0x10004c8b
cmp dword [esi + 0x414c], 0
je 0x10004c8b
lea eax, [ebp - 0x208]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test ebx, ebx
jne 0x10004c90
mov al, byte [edi + 0x42]
cmp al, 2
jne 0x1000457e
cmp byte [0x100df509], bl
jne 0x1000466d
lea ecx, [ebp - 0x398]
call fcn.10014ac8
mov byte [0x100df509], 1
jmp 0x1000466d
cmp al, 4
je 0x1000458a
cmp al, 5
jne 0x1000466d
mov eax, dword [0x100df564]
push 4
test eax, eax
je 0x10004599
call eax
jmp 0x1000459e
call fcn.10080ffe
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100045c0
mov word [ebp - 0x3a4], 0x403
mov ax, word [ebp - 0x3a4]
mov word [ecx], ax
mov word [ecx + 2], 0x100
call fcn.100196b0
mov ecx, eax
mov dword [esi + 0x4168], ecx
test ecx, ecx
je 0x10004c8b
mov al, byte [ecx + 0x59]
lea edx, [edi + 0x47]
not al
shr eax, 1
and eax, 1
push eax
push 0
push 0
push 0
push 0
push 1
push dword [edi + 0x43]
call fcn.1001b000
add esp, 0x1c
test eax, eax
je 0x10004c8b
mov ecx, dword [esi + 0x4168]
test ecx, ecx
je 0x10004614
test byte [ecx + 0x59], 2
je 0x10004614
xor eax, eax
jmp 0x10004619
mov eax, 1
push eax
push 0
push 0
push 0
push 1
push 1
push dword [edi + 0x2047]
lea edx, [edi + 0x204b]
call fcn.1001b000
add esp, 0x1c
test eax, eax
je 0x10004c8b
mov ecx, dword [esi + 0x4168]
test ecx, ecx
je 0x10004c8b
mov edx, dword [ecx + 0x3c]
sub esp, 8
push dword [ecx + 0x48]
push dword [ecx + 0x54]
mov ecx, dword [ecx + 0x1c]
call fcn.1001bf80
add esp, 0x10
test eax, eax
je 0x10004c8b
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x4154], eax
test eax, eax
jne 0x10004692
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x10004c90
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x64]
xor ecx, ecx
add eax, eax
mov edx, 4
mov dword [esi + 0x415c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008dfec
xor edi, edi
mov dword [esi + 0x4158], eax
add esp, 4
cmp dword [esi + 0x415c], edi
jbe 0x100046f6
push 0
push 0
push esi
push 0x100060b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x4158]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0x415c]
jb 0x100046d0
mov edi, dword [ebp - 0x39c]
mov al, byte [edi + 0x42]
cmp al, 2
jne 0x10004aba
add esi, 0x4150
push 0xc9
mov ecx, esi
mov dword [ebp - 0x39c], esi
call fcn.10015071
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10004c90
xorps xmm0, xmm0
mov eax, 2
push ebx
movlpd qword [ebp - 0x3c], xmm0
mov word [ebp - 0x44], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x40], eax
movzx eax, word [edi + 0x40]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [esi]
mov esi, dword [0x100df518]
push esi
mov word [ebp - 0x42], ax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp edi, dword [0x100df520]
jae 0x10004aa9
mov eax, dword [0x100df51c]
cmp dword [eax + edi*8], ebx
je 0x10004aa9
mov edi, dword [eax + edi*8 + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call ebx
mov eax, dword [edi + 0x458]
sub eax, 0x66
je 0x10004862
sub eax, 0x62
je 0x10004812
sub eax, 1
jne 0x10004c8b
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0x490]
push esi
mov dword [ebp - 0x3a4], 0x10
call eax
cmp dword [edi + 0x45c], 1
je 0x100047d7
push esi
call ebx
mov ebx, 0x139f
jmp 0x100048cb
push dword [ebp - 0x3a4]
lea eax, [ebp - 0x44]
push eax
push dword [edi + 0x448]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x10004807
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, eax
push esi
call edi
jmp 0x100048d1
lea eax, [ebp - 0x3a4]
jmp 0x100048a8
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0x490]
push esi
mov dword [ebp - 0x3a0], 0x10
call eax
cmp dword [edi + 0x45c], 1
je 0x10004840
push esi
call ebx
mov ebx, 0x139f
jmp 0x100048cb
push dword [ebp - 0x3a0]
lea eax, [ebp - 0x44]
push eax
push dword [edi + 0x448]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x100047f1
lea eax, [ebp - 0x3a0]
jmp 0x100048a8
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0x490]
push esi
mov dword [ebp - 0x14], 0x10
call eax
cmp dword [edi + 0x45c], 1
je 0x1000488a
push esi
call ebx
mov ebx, 0x139f
jmp 0x100048cb
push dword [ebp - 0x14]
lea eax, [ebp - 0x44]
push eax
push dword [edi + 0x448]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x100047f1
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x470]
push eax
push dword [edi + 0x448]
call dword [sym.imp.WS2_32.dll_getsockname]
push esi
mov dword [edi + 0x45c], 2
call ebx
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x10004c90
mov ebx, dword [ebp - 0x39c]
mov esi, dword [0x100df518]
push esi
mov ebx, dword [ebx]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp ebx, dword [0x100df520]
jae 0x10004aa9
mov eax, dword [0x100df51c]
cmp dword [eax + ebx*8], 0
je 0x10004aa9
mov ebx, dword [eax + ebx*8 + 4]
push esi
call edi
mov eax, dword [ebx + 0x458]
sub eax, 0x66
je 0x10004929
sub eax, 0x62
je 0x10004929
sub eax, 1
jne 0x10004c8b
mov eax, dword [ebx]
mov ecx, ebx
push 0x20
call dword [eax + 4]
mov ebx, eax
test ebx, ebx
jne 0x10004c90
push 0x60
call fcn.1007bcba
mov ebx, eax
mov dword [ebp - 0x14], ebx
push 0x60
push 0
push ebx
mov dword [ebp - 4], 0
call fcn.1007d2d0
push 0x34
call fcn.1007bcba
push 0x34
mov edi, eax
push 0
push edi
mov dword [ebp - 0x3a0], edi
call fcn.1007d2d0
mov eax, dword [ebp - 0x39c]
add esp, 0x20
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [eax]
push 0
push 0
push 1
push 0
mov dword [edi], vtable.CXVTcpSocketClient.0
mov dword [edi + 4], ecx
call esi
push 0
push 0
push 1
push 0
mov dword [edi + 0x2c], eax
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
call esi
push 0
push 0
push 1
push 0
mov dword [edi + 0x18], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
call esi
sub esp, 0x28
mov dword [edi + 0x30], eax
mov eax, esp
mov ecx, ebx
push edi
mov dword [eax + 0x24], 0
call fcn.10003dc0
mov ecx, dword [ebp - 0x3a8]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [0x100df518]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ecx + 0x4150]
mov dword [ebp - 0x3a0], eax
mov eax, dword [ecx + 0x4154]
push esi
mov dword [ebp - 0x14], eax
call edi
cmp ebx, dword [0x100df520]
jae 0x10004aa9
mov eax, dword [0x100df51c]
cmp dword [eax + ebx*8], 0
je 0x10004aa9
mov eax, dword [eax + ebx*8 + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov dword [ebp - 0x39c], eax
call ebx
mov esi, dword [ebp - 0x39c]
mov eax, dword [esi + 0x458]
sub eax, 0x66
je 0x10004a67
sub eax, 0x62
je 0x10004a67
sub eax, 1
jne 0x10004c8b
add esi, 0x490
push esi
call edi
mov eax, dword [ebp - 0x39c]
mov ecx, dword [ebp - 0x14]
push esi
mov dword [eax + 0x488], ecx
mov ecx, dword [ebp - 0x3a0]
mov dword [eax + 0x48c], ecx
call ebx
mov esi, dword [ebp - 0x3a8]
xor ebx, ebx
mov ecx, esi
call fcn.10005850
mov byte [esi + 0x416c], 1
jmp 0x10004c90
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 6
jmp 0x10004c90
cmp al, 7
je 0x10004c7b
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0x4150], eax
cmp eax, 0xffffffff
jne 0x10004aec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x10004c90
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
xorps xmm0, xmm0
mov eax, 2
push 0
movlpd qword [ebp - 0x4c], xmm0
mov word [ebp - 0x54], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x50], eax
movzx eax, word [edi + 0x40]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x52], ax
lea eax, [ebp - 0x54]
push 0x10
push eax
push dword [esi + 0x4150]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10004adf
push closesocket
push dword [esi + 0x4150]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x10004adf
mov edi, dword [sym.imp.WS2_32.dll_WSAIoctl]
lea eax, [ebp - 0x14]
push 0
push 0
push eax
push 4
lea eax, [esi + 0x4160]
mov dword [ebp - 0x14], 0
push eax
push 0x10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0xb5367df1
push eax
push 0xc8000006
push dword [esi + 0x4150]
mov dword [ebp - 0x20], 0x11cfcbac
mov dword [ebp - 0x1c], 0x8000ca95
mov dword [ebp - 0x18], 0x92a1485f
mov dword [ebp - 0x34], 0xb5367df2
mov dword [ebp - 0x30], 0x11cfcbac
mov dword [ebp - 0x2c], 0x8000ca95
mov dword [ebp - 0x28], 0x92a1485f
call edi
cmp eax, 0xffffffff
je 0x10004adf
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [esi + 0x4164]
push eax
push 0x10
lea eax, [ebp - 0x34]
push eax
push 0xc8000006
push dword [esi + 0x4150]
call edi
cmp eax, 0xffffffff
je 0x10004adf
push 0x60
call fcn.1007bcba
mov edi, eax
mov dword [ebp - 0x39c], edi
push 0x60
push 0
push edi
mov dword [ebp - 4], 1
call fcn.1007d2d0
push 0x38
call fcn.1007bcba
push 0x38
mov esi, eax
push 0
push esi
mov dword [ebp - 0x3a0], esi
call fcn.1007d2d0
mov ecx, dword [ebp - 0x3a8]
add esp, 0x20
push dword [ecx + 0x4150]
mov ecx, esi
call fcn.100035c0
sub esp, 0x28
mov ecx, esp
push eax
mov dword [ecx + 0x24], 0
mov ecx, edi
call fcn.100037e0
mov esi, dword [ebp - 0x3a8]
push 0
push eax
mov dword [ebp - 4], 0xffffffff
push dword [esi + 0x4154]
push dword [esi + 0x4150]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x10004685
mov ecx, esi
call fcn.10005850
mov byte [esi + 0x416c], 1
jmp 0x10004c90
mov ebx, 0x54f
mov eax, ebx
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.1007bc9e
mov esp, ebp
pop ebp
ret 4