Function at 0x4055c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2120
call fcn.004bf520
mov eax, dword [0x586f0c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push edi
push 0x589e54
mov dword [ebp - 0x211c], edi
call fcn.004011e0
mov esi, eax
xor ebx, ebx
add esp, 8
mov dword [ebp - 0x2120], esi
cmp esi, ebx
jne 0x405615
push 0x135
push str.ncat_broker.c
push 0x5373e4
call fcn.004becc9
add esp, 0xc
mov dword [ebp - 0x2114], ebx
cmp edi, ebx
jne 0x405674
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push ebx
call fcn.004d5697
add esp, 0xc
mov dword [ebp - 0x210c], eax
cmp eax, ebx
jle 0x4057c4
cmp dword [0x58a24c], ebx
je 0x40566c
push 0x589f74
lea ecx, [ebp - 0x2114]
push ecx
lea edx, [ebp - 0x210c]
push edx
lea eax, [ebp - 0x2004]
push eax
call fcn.0040122b
add esp, 0x10
mov dword [ebp - 0x2118], ebx
jmp 0x40569e
lea ecx, [ebp - 0x2118]
push ecx
push 0x2000
lea edx, [ebp - 0x2004]
push edx
push esi
call fcn.00401078
add esp, 0x10
mov dword [ebp - 0x210c], eax
cmp eax, ebx
jle 0x405880
cmp dword [0x58a208], 1
jle 0x4056b5
push edi
push str.Handling_data_from_client__d._n
call fcn.00401113
add esp, 8
mov eax, dword [ebp - 0x2114]
test eax, eax
jne 0x4056c5
lea eax, [ebp - 0x2004]
cmp dword [0x58a238], 0
mov dword [ebp - 0x2110], eax
je 0x405711
mov edx, dword [ebp - 0x210c]
lea ecx, [ebp - 0x210c]
push ecx
push edi
push edx
mov ecx, eax
call fcn.00405050
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40570b
cmp dword [0x58a204], eax
je 0x405711
push edi
push str.Error_formatting_chat_message_from_fd__d_n
call fcn.00401113
add esp, 8
jmp 0x405711
mov dword [ebp - 0x2110], ebx
mov ecx, 0x41
mov esi, 0x589d50
lea edi, [ebp - 0x2108]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x589d50]
xor eax, eax
test ecx, ecx
je 0x405770
nop
mov edx, dword [ebp - 0x211c]
cmp dword [ebp + eax*4 - 0x2104], edx
je 0x405746
inc eax
cmp eax, ecx
jb 0x405730
jmp 0x405770
dec ecx
cmp eax, ecx
jae 0x40576a
jmp 0x405750
mov ecx, dword [ebp + eax*4 - 0x2100]
mov dword [ebp + eax*4 - 0x2104], ecx
mov edx, dword [ebp - 0x2108]
inc eax
dec edx
cmp eax, edx
jb 0x405750
dec dword [ebp - 0x2108]
mov eax, dword [ebp - 0x210c]
mov ecx, dword [ebp - 0x2110]
push eax
push ecx
lea edx, [ebp - 0x2108]
push 0x589d38
push edx
call fcn.00401221
push ebx
call fcn.004be321
mov eax, dword [ebp - 0x2114]
push eax
call fcn.004be321
add esp, 0x18
cmp dword [ebp - 0x2118], 0
je 0x4059e4
mov esi, dword [ebp - 0x2120]
mov edi, dword [ebp - 0x211c]
xor ebx, ebx
jmp 0x405615
jge 0x4057e9
cmp dword [0x58a204], ebx
je 0x4057e9
call fcn.004bdedf
mov ecx, dword [eax]
push ecx
call fcn.004bf45d
push eax
push str.Error_reading_from_stdin:__s_n
call fcn.00401113
add esp, 0xc
cmp dword [ebp - 0x210c], ebx
jne 0x405806
cmp dword [0x58a208], ebx
je 0x405806
push str.EOF_on_stdin_n
call fcn.00401113
add esp, 4
mov ecx, dword [0x589e68]
xor eax, eax
cmp ecx, ebx
jbe 0x405865
cmp dword [eax*4 + 0x589e6c], ebx
je 0x40583b
inc eax
cmp eax, ecx
jb 0x405812
pop edi
pop esi
mov dword [0x589f70], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
lea edx, [ecx - 1]
cmp eax, edx
jae 0x40585e
mov ecx, dword [eax*4 + 0x589e70]
mov dword [eax*4 + 0x589e6c], ecx
mov ecx, dword [0x589e68]
inc eax
lea edx, [ecx - 1]
cmp eax, edx
jb 0x405842
dec ecx
mov dword [0x589e68], ecx
pop edi
pop esi
mov dword [0x589f70], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
cmp dword [0x58a208], ebx
je 0x405895
push str.Closing_connection._n
call fcn.00401113
add esp, 4
cmp dword [0x58a2a4], ebx
je 0x4058c1
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4058c1
cmp dword [ebp - 0x210c], ebx
jne 0x4058b5
push eax
call fcn.004a06a0
add esp, 4
mov eax, dword [esi + 4]
push eax
call fcn.004a0410
add esp, 4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [0x589e68]
xor eax, eax
cmp ecx, ebx
jbe 0x405913
cmp dword [eax*4 + 0x589e6c], edi
je 0x4058e4
inc eax
cmp eax, ecx
jb 0x4058d4
jmp 0x405913
lea edx, [ecx - 1]
cmp eax, edx
jae 0x40590c
jmp 0x4058f0
mov ecx, dword [eax*4 + 0x589e70]
mov dword [eax*4 + 0x589e6c], ecx
mov ecx, dword [0x589e68]
inc eax
lea edx, [ecx - 1]
cmp eax, edx
jb 0x4058f0
dec ecx
mov dword [0x589e68], ecx
push edi
push 0x589e54
call fcn.00401267
mov ecx, dword [0x589d50]
add esp, 8
xor eax, eax
cmp ecx, ebx
jbe 0x405973
lea ecx, [ecx]
cmp dword [eax*4 + 0x589d54], edi
je 0x405940
inc eax
cmp eax, ecx
jb 0x405930
jmp 0x405973
lea edx, [ecx - 1]
cmp eax, edx
jae 0x40596c
jmp 0x405950
mov ecx, dword [eax*4 + 0x589d58]
mov dword [eax*4 + 0x589d54], ecx
mov ecx, dword [0x589d50]
inc eax
lea edx, [ecx - 1]
cmp eax, edx
jb 0x405950
dec ecx
mov dword [0x589d50], ecx
push edi
push 0x589d38
call fcn.00401267
add esp, 8
dec dword [0x589f6c]
jne 0x4059d3
mov ecx, dword [0x589e68]
xor eax, eax
cmp ecx, ebx
jbe 0x4059d3
cmp dword [eax*4 + 0x589e6c], ebx
je 0x4059a5
inc eax
cmp eax, ecx
jb 0x405995
jmp 0x4059d3
lea edx, [ecx - 1]
cmp eax, edx
jae 0x4059cc
lea esp, [esp]
mov ecx, dword [eax*4 + 0x589e70]
mov dword [eax*4 + 0x589e6c], ecx
mov ecx, dword [0x589e68]
inc eax
lea edx, [ecx - 1]
cmp eax, edx
jb 0x4059b0
dec ecx
mov dword [0x589e68], ecx
cmp dword [0x58a238], ebx
je 0x4059e4
push edi
call fcn.00404fb0
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bf32e
mov esp, ebp
pop ebp
ret