Function at 0x49e864
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor eax, eax
push ebx
push esi
push edi
xor edi, edi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x49e9ec
mov ebx, eax
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x20c], eax
dec dword [esi + 0x210]
mov edx, dword [ebx + 0x14]
mov ecx, dword [edx + 0x20]
mov dword [ebp - 8], ecx
push 0
mov eax, dword [ebp - 8]
push eax
push esi
call fcn.0049e5b0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x49e8ce
mov edx, dword [ebp - 8]
push edx
push str.win32iocp_persist_dispatch:_cannot_found_fd__d___dangerous
call fcn.0049c3b0
add esp, 8
mov dword [ebx + 0x1c], edi
mov edi, ebx
jmp 0x49e9ec
cmp word [ebx + 0x18], 2
jne 0x49e960
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x14
push 0
push ebx
call fcn.004798f8
add esp, 0xc
mov edx, dword [esi + 0xc]
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x18]
push ebx
push ecx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x49e959
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3e5
je 0x49e959
mov edx, dword [ebp - 0x14]
push edx
push str.win32iocp_persist_dispatch:_ReadFile_failed__errno__d
call fcn.0049c3b0
add esp, 8
cmp dword [ebp - 0x14], 0x6f8
je 0x49e941
cmp dword [ebp - 0x14], 0x718
je 0x49e941
cmp dword [ebp - 0x14], 8
jne 0x49e94f
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x1c], ecx
mov dword [ebp - 0x10], ebx
jmp 0x49e9ec
mov dword [ebx + 0x1c], edi
mov edi, ebx
jmp 0x49e9ec
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x14], 1
cmp word [ebx + 0x18], 4
jne 0x49e9ec
xor edx, edx
mov dword [ebp - 0x1c], edx
push 0x14
push 0
push ebx
call fcn.004798f8
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov dword [ebx + 0x10], ecx
lea eax, [ebp - 0x1c]
push ebx
push eax
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x49e9e5
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3e5
je 0x49e9e5
mov ecx, dword [ebp - 0x14]
push ecx
push str.win32iocp_persist_dispatch:_WriteFile_failed__errno__d
call fcn.0049c3b0
add esp, 8
cmp dword [ebp - 0x14], 0x6f8
je 0x49e9d3
cmp dword [ebp - 0x14], 0x718
je 0x49e9d3
cmp dword [ebp - 0x14], 8
jne 0x49e9de
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x1c], eax
mov dword [ebp - 0x10], ebx
jmp 0x49e9ec
mov dword [ebx + 0x1c], edi
mov edi, ebx
jmp 0x49e9ec
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x15], 1
mov eax, dword [esi + 0x20c]
test eax, eax
jne 0x49e881
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [esi + 0x20c], edx
mov dword [esi + 0x210], ecx
mov ebx, dword [esi + 0x20c]
test ebx, ebx
je 0x49ea22
inc dword [esi + 0x210]
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x49ea15
mov ebx, edi
test ebx, ebx
je 0x49ea55
mov edi, dword [ebx + 0x1c]
push 1
movsx eax, word [ebx + 0x18]
push eax
mov edx, dword [ebx + 0x14]
push edx
call fcn.0049ba20
add esp, 0xc
push ebx
push esi
call fcn.0049e650
add esp, 8
mov ebx, edi
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
jne 0x49ea28
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret