Function at 0x40d940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3718
mov eax, dword fs:[0]
push eax
sub esp, 0x844
mov eax, dword [0x52de04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x848], esi
push dword [esi + 4]
call fcn.004cd97e
movq xmm0, qword [str.__Nothing__]
mov ecx, dword [0x4fed68]
push eax
mov dword [0x668a7c], eax
mov dword [0x668b8c], 1
movq qword [0x668a88], xmm0
mov dword [0x668a90], ecx
call fcn.0040dc20
push dword [0x668a7c]
mov dword [ebp - 0x838], 0
call fcn.00428a60
mov dword [ebp - 0x844], eax
add esp, 0xc
mov eax, 2
mov dword [ebp - 0x840], eax
cmp dword [ebp + 8], eax
jle 0x40dbef
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
mov edx, 0x16
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov edi, dword [esi + eax*4]
mov esi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x83c], edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40da14
sub esi, ecx
cmp esi, 0xf
ja 0x40da3a
push esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], esi
push edi
push eax
call fcn.004b8680
mov byte [ebp + esi - 0x30], 0
jmp 0x40daba
cmp esi, 0x7fffffff
ja 0x40dc19
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x40da68
mov eax, connect
mov edi, closesocket
push eax
call fcn.004020c0
add esp, 4
jmp 0x40da94
cmp edi, 0x16
cmovb edi, edx
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x40da83
push eax
call fcn.004020c0
add esp, 4
jmp 0x40da94
test eax, eax
je 0x40da92
push eax
call fcn.0049c406
add esp, 4
jmp 0x40da94
xor eax, eax
push esi
push dword [ebp - 0x83c]
mov dword [ebp - 0x834], eax
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
call fcn.004b8680
mov eax, dword [ebp - 0x834]
mov byte [eax + esi], 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x838]
add esp, 0xc
cmp dword [0x668a84], 0x6666666
mov dword [ebp - 0x18], eax
mov eax, dword [0x668a80]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x83c], eax
je 0x40dc0f
mov dword [ebp - 0x850], 0x668a80
push 0x28
mov byte [ebp - 4], 1
mov dword [ebp - 0x84c], 0
call fcn.0049c406
mov edi, eax
add esp, 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x84c], edi
push eax
lea ecx, [edi + 8]
call fcn.00402330
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x20], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x24], ecx
mov ecx, dword [ebp - 0x83c]
inc dword [0x668a84]
push 0x4fda68
mov dword [ebp - 0x84c], 0
mov eax, dword [ecx + 4]
mov dword [edi], ecx
mov dword [edi + 4], eax
mov dword [ecx + 4], edi
mov dword [eax], edi
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 0x10
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.0041d3a0
mov esi, eax
add esp, 8
test esi, esi
je 0x40db9b
push esi
push 0x800
lea eax, [ebp - 0x830]
push 1
push eax
call fcn.004c37de
push esi
call fcn.004c35d5
mov eax, dword [ebp - 0x828]
add esp, 0x14
add eax, dword [ebp - 0x844]
add dword [ebp - 0x838], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x40dbd2
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40dbc8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc0a
push ecx
push edx
call fcn.004b3acc
add esp, 8
mov eax, dword [ebp - 0x840]
inc eax
mov dword [ebp - 0x840], eax
cmp eax, dword [ebp + 8]
jge 0x40dbef
mov esi, dword [ebp - 0x848]
jmp 0x40d9e1
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.004b3f28
mov esp, ebp
pop ebp
ret
call fcn.004c342f
push str.list_too_long
call fcn.004b4e39
call fcn.00402bf0
int3