Function at 0x401987
Capabilities:
Create thread
Get system information on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x1c
call fcn.00415932
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
add ebx, 8
push ebx
push 0x109
call fcn.00415932
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x41b268
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x101
rep stosb byte es:[edi], al
add ebx, 4
push ebx
push 0x89
call fcn.00415932
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x41b270
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x81
rep stosb byte es:[edi], al
push 0x28
call fcn.00415932
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xa
rep stosd dword es:[edi], eax
push ebx
push 8
call fcn.00415932
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
mov dword [ebp - 0xc], 0
mov eax, dword [0x4238eb]
and eax, 1
xor eax, 1
test eax, eax
je 0x401ef5
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xa00
call fcn.00416430
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
mov eax, dword [ebp - 4]
push eax
push 0x18f
call fcn.00415932
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x81
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov byte [edi], al
inc edi
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_WSAStartup]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x401b1e
push 6
call fcn.00415938
add esp, 4
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.00415bb0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x401b6b
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x401b69
imul eax, dword [edi]
jmp 0x401b5e
mov ecx, eax
cmp ecx, 0x101
jle 0x401b78
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x101
push ebx
push edi
push 1
mov eax, 2
call fcn.00415bb0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x401bb6
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x401bb4
imul eax, dword [edi]
jmp 0x401ba9
mov ecx, eax
cmp ecx, 0x81
jle 0x401bc3
mov ecx, 0x81
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x81
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov al, byte [ebx]
inc ebx
mov dword [edi], eax
add edi, 4
call fcn.0041594a
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x401ef5
mov dword [ebp - 0x10], esp
push 0
push 0
push 0
push 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x401c37
push 6
call fcn.00415938
add esp, 4
mov dword [0x4238ef], eax
cmp dword [0x4238ef], 0
je 0x401ef5
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 8]
push eax
push 0x24
call fcn.00415932
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
push ebx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov dword [edi], ebx
add edi, 4
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x401cfa
push 6
call fcn.00415938
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov edi, dword [ebp - 0x18]
push edi
mov edi, dword [edi]
push ebx
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 4
pop edi
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
add edi, 4
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
call fcn.0041594a
add esp, 4
mov ebx, dword [ebp - 8]
add ebx, 0x14
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
fild dword [ebx]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul qword [0x41b260]
fstp qword [ebp - 0x20]
mov dword [ebp - 0x28], 1
fld qword [ebp - 0x20]
call fcn.00401408
cmp eax, 0
jge 0x401dc4
push 0xa
call fcn.00415938
add esp, 4
mov dword [ebp - 0x24], eax
lea ebx, [ebp - 0x28]
call fcn.004010aa
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.00415932
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
lea esi, [ebp - 0x24]
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov ebx, dword [0x4238f3]
call fcn.004010aa
pop edx
test edx, edx
je 0x401e0c
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [0x4238f3]
call fcn.0041594a
add esp, 4
pop eax
mov dword [0x4238f3], eax
mov ebx, dword [ebp - 8]
add ebx, 0x14
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
fild dword [ebx]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul qword [0x41b260]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.00401408
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x401ee8
mov ebx, dword [0x4238f3]
call fcn.004010aa
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x401e7c
push 4
call fcn.00415938
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x401e8f
push 1
call fcn.00415938
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x402855
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x401edb
push 6
call fcn.00415938
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x401e4e
add esp, 0xc
mov dword [0x4238eb], 1
mov eax, dword [0x4238eb]
jmp 0x401eff
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0041594a
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0041594a
add esp, 4
pop ebx
call fcn.0041594a
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0041594a
add esp, 4
pop ebx
call fcn.0041594a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret