Function at 0x409dca
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], 0
push 0x10
call fcn.0040fadd
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
add ebx, 0xc
push ebx
push 0x10
call fcn.0040fadd
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x41b3cf
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
push 0x1c
call fcn.0040fadd
add esp, 4
mov dword [ebp - 0x10], 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.0040fadd
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x41b52e
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 0xa
call fcn.0040fadd
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x41b536
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosb byte es:[edi], al
stosb byte es:[edi], al
mov dword [ebp - 0x14], esp
mov eax, dword [ebp - 8]
push eax
push 0x10
call fcn.0040fadd
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
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
call dword [0x41bf2d]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x409f09
push 6
call fcn.0040fae9
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
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.0040fd70
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 0x409f60
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x409f5e
imul eax, dword [edi]
jmp 0x409f53
mov ecx, eax
cmp ecx, 8
jle 0x409f6a
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 8
call fcn.0040fae3
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
push 0x10
call fcn.0040fadd
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 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
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_accept]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x409ff9
push 6
call fcn.0040fae9
add esp, 4
push eax
mov ebx, dword [ebp - 0x28]
push ebx
mov edi, dword [ebp - 0x2c]
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
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.0040fd70
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 0x40a050
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x40a04e
imul eax, dword [edi]
jmp 0x40a043
mov ecx, eax
cmp ecx, 8
jle 0x40a05a
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 8
call fcn.0040fae3
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40a08d
cmp dword [ebp - 4], 0
je 0x40a08d
mov eax, 1
jmp 0x40a08f
xor eax, eax
test eax, eax
je 0x40a29d
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
push 1
push dword [ebp - 4]
push dword [0x41bf0d]
call fcn.0040a4cc
mov dword [ebp - 0x14], esp
push 0
push 0
push dword [ebp - 4]
push 0x40a79c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40a18a
push 6
call fcn.0040fae9
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40a1be
mov dword [ebp - 0x14], esp
push dword [ebp - 0xc]
call dword [0x41bf31]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40a1b9
push 6
call fcn.0040fae9
add esp, 4
jmp 0x40a298
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40a1e0
push 6
call fcn.0040fae9
add esp, 4
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
push 1
push dword [ebp - 4]
push dword [0x41bf15]
call fcn.0040a4cc
jmp 0x40a2a2
jmp 0x40a2a7
jmp 0x409e99
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40a2c9
push 6
call fcn.0040fae9
add esp, 4
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xa04
call fcn.00411670
add esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp - 0x10]
push eax
push 0x10f
call fcn.0040fadd
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 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, 2
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 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
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_WSAStartup]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40a395
push 6
call fcn.0040fae9
add esp, 4
push eax
mov ebx, dword [ebp - 0x1c]
push ebx
mov edi, dword [ebp - 0x20]
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.0040fd70
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 0x40a3e2
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x40a3e0
imul eax, dword [edi]
jmp 0x40a3d5
mov ecx, eax
cmp ecx, 0x101
jle 0x40a3ef
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.0040fd70
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 0x40a42d
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x40a42b
imul eax, dword [edi]
jmp 0x40a420
mov ecx, eax
cmp ecx, 2
jle 0x40a437
mov ecx, 2
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 2
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
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0040fae3
add esp, 4
pop eax
push dword [0x41bf19]
push 1
push 0x41bf1d
call fcn.004098b9
mov ebx, dword [ebp - 8]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0040fae3
add esp, 4
pop ebx
call fcn.0040fae3
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0040fae3
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0040fae3
add esp, 4
pop ebx
call fcn.0040fae3
add esp, 4
mov esp, ebp
pop ebp
ret 4