Function at 0x799cfe
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, reloc.ws2_32.dll_WSASetLastError
mov eax, 0x143c
call fcn.007c1eb0
mov eax, dword [0x830e54]
xor eax, ebp
mov dword [ebp + reloc.ws2_32.dll_WSASetLastError], eax
mov eax, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
and dword [ebp - 0x70], 0
and dword [ebp - 0x78], 0
push ebx
mov ebx, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
push esi
push edi
push dword [ebx]
mov edi, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
mov dword [ebp - 0x7c], eax
call fcn.0077858a
push dword [0x82fabc]
mov dword [ebp - 0x74], eax
call fcn.0074274a
pop ecx
pop ecx
mov dword [0x872620], eax
test eax, eax
jne 0x799d8e
push 2
mov esi, 0x332
push esi
push 0x82cea8
push dword [ebp - 0x74]
call fcn.0074b93c
add esp, 0x10
mov eax, esi
jmp 0x799ff3
push edi
mov esi, 0x82fac0
push esi
push dword [ebp - 0x6c]
mov eax, ebx
call fcn.00799c1d
mov ecx, 0x33b
add esp, 0xc
cmp eax, ecx
jne 0x799dbb
mov esi, ecx
push dword [0x872620]
call fcn.007c9cf8
pop ecx
jmp 0x799d87
mov ecx, 0x32d
cmp eax, ecx
jne 0x799de3
push 0x7ec8a8
push 2
push ecx
push 0x82cea8
push dword [ebp - 0x74]
call fcn.0074b93c
add esp, 0x14
mov esi, 0x32d
jmp 0x799dad
push 0x7ec748
push dword [ebp - 0x6c]
call fcn.00748be9
pop ecx
pop ecx
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x799e18
push 0x7ec8a8
push 2
mov esi, 0x32d
push esi
push 0x82cea8
push dword [ebp - 0x74]
call fcn.0074b93c
add esp, 0x14
jmp 0x799dad
push 0
push esi
call fcn.007c7760
add eax, dword [edi]
pop ecx
push eax
push dword [ebp - 0x6c]
call fcn.007ced22
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
push dword [ebp - 0x80]
push ebx
call fcn.0077abb5
push dword [ebp - 0x6c]
call fcn.007d04f6
add esp, 0x1c
test eax, eax
jne 0x799fc4
mov esi, 0x400
push dword [ebp - 0x6c]
lea eax, reloc.ws2_32.dll_WSASetLastError
push 1
push esi
push eax
call fcn.007cf74d
add esp, 0x10
cmp byte [ebp + 0x13b7], 0x61
je 0x799f53
push 0x5f
push 0
push 0
push esi
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
push ebx
call fcn.0079515a
add esp, 0x1c
cmp byte [ebp + 0xbb8], 0
je 0x799fc4
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007c9c00
push dword [ebp - 0x7c]
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
push ebx
call fcn.0077a2bf
add esp, 0x14
test eax, eax
jne 0x799f9f
mov eax, dword [ebp - 0x7c]
cmp dword [eax], reloc.ws2_32.dll_WSASetLastError
jne 0x799f05
cmp dword [eax + 4], 0
jne 0x799f05
push dword [ebp - 0x6c]
call fcn.007cf402
sub eax, esi
push esi
mov dword [ebp - 0x78], eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0
push eax
mov dword [ebp - 0x70], 0x337
call fcn.007c3430
add esp, 0x10
jmp 0x799f40
lea ecx, [ebp - 0x68]
push ecx
add eax, 8
push eax
push ebx
call fcn.0077abb5
lea eax, [ebp - 0x68]
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007c9d20
add esp, 0x14
test eax, eax
je 0x799fb0
push esi
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0
push eax
call fcn.007c3430
add esp, 0xc
push dword [ebp - 0x6c]
call fcn.007d04f6
pop ecx
test eax, eax
je 0x799e54
jmp 0x799fc4
push 2
mov ebx, 0x322
push ebx
push 0x82cea8
push dword [ebp - 0x74]
call fcn.0074b93c
add esp, 0x10
cmp dword [ebp - 0x70], 0x337
je 0x799f81
push dword [ebp - 0x6c]
call fcn.007cf402
pop ecx
sub eax, esi
jmp 0x799f84
mov eax, dword [ebp - 0x78]
push dword [0x872620]
mov dword [edi], eax
call fcn.007c9cf8
push dword [ebp - 0x6c]
call fcn.007c7ab7
pop ecx
pop ecx
mov eax, ebx
jmp 0x799ff3
push dword [ebp - 0x6c]
call fcn.007cf402
mov dword [ebp - 0x70], 0x322
jmp 0x799fbf
push dword [ebp - 0x6c]
call fcn.007cf402
mov dword [ebp - 0x70], 0x381
sub eax, esi
mov dword [edi], eax
pop ecx
push dword [ebp - 0x6c]
call fcn.007c7ab7
mov eax, 0x337
pop ecx
cmp dword [ebp - 0x70], eax
jne 0x799fe3
mov ecx, dword [ebp - 0x78]
mov dword [edi], ecx
mov esi, eax
jmp 0x799dad
mov esi, 0x381
cmp dword [ebp - 0x70], esi
je 0x799dad
xor eax, eax
mov ecx, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007c1e9d
add ebp, 0x13bc
leave
ret