Function at 0x10057e40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x101ce00c]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
mov ebp, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x34]
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebp
call fcn.10057da0
add esp, 4
cmp eax, 1
jne 0x10057e81
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.101180ca
add esp, 0x28
ret
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10057e86
sub eax, edx
je 0x10057e6e
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10057e98
sub eax, edx
cmp eax, 0xa
ja 0x10057e6e
mov byte [esp + 8], 0x72
mov byte [esp + 9], 0x62
mov byte [esp + 0xa], cl
test eax, 0x3e87
push 0x40
lea eax, [esp + 0xc]
push eax
push esi
call fcn.101191b0
add esp, 0xc
mov esi, eax
test dl, dl
test esi, esi
je 0x10057e6e
push edi
test cl, cl
push 2
push 0
push esi
call fcn.1011912b
add esp, 0xc
test al, al
push esi
call fcn.10119036
add esp, 4
mov edi, eax
mov esi, esi
push 0
push 0
push esi
call fcn.1011912b
add esp, 0xc
mov edx, edx
test edi, edi
jne 0x10057f24
push esi
call fcn.10118b6b
add esp, 4
test ebx, ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.101180ca
add esp, 0x28
ret
mov ecx, edi
and ecx, reloc.WS2_32.dll_closesocket
push ebx
jns 0x10057f34
dec ecx
or ecx, 0xfffffffc
inc ecx
mov edx, edi
sub edx, ecx
add edx, 8
push edx
call fcn.10117b2c
add esp, 4
mov ebx, eax
test edi, edi
test ebx, ebx
push esi
jne 0x10057f6c
call fcn.10118b6b
add esp, 4
mov ecx, ecx
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.101180ca
add esp, 0x28
ret
push edi
push 1
push ebx
call fcn.10118e83
add esp, 0x10
test edi, edi
push esi
call fcn.10118b6b
add esp, 4
test eax, eax
mov edx, ebp
call fcn.10057a00
mov ebp, eax
test dl, dl
test eax, 0x2659
mov al, 0x4f
mov byte [esp + 0x2c], 0x52
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], 0x33
mov byte [esp + 0x30], 0
test eax, eax
xor eax, eax
mov cl, byte [esp + eax + 0x2c]
mov byte [esp + eax + 0x24], cl
add eax, 1
test cl, cl
jne 0x10057fb2
test eax, 0x3a1a
mov edx, dword [esp + 0x1c]
lea edi, [esp + 0x24]
call fcn.10057ae0
mov dh, dh
mov byte [esp + 0x14], 0x77
mov byte [esp + 0x15], 0x62
mov byte [esp + 0x16], 0
nop
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.10119274
add esp, 8
mov esi, eax
test ch, ch
test esi, esi
jne 0x1005801f
push ebx
call fcn.10117bef
add esp, 4
mov dh, dh
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.101180ca
add esp, 0x28
ret
mov dword [esp + 0x18], 0x4d444d44
test edi, edi
push esi
push 4
lea edx, [esp + 0x20]
push 1
push edx
call fcn.1011b5f9
add esp, 0x10
mov esi, esi
push esi
push 4
lea eax, [esp + 0x2c]
push 1
push eax
call fcn.1011b5f9
add esp, 0x10
test cl, cl
push esi
push ebp
push 1
push ebx
call fcn.1011b5f9
add esp, 0x10
nop
push esi
call fcn.10118b6b
add esp, 4
mov esi, esi
push ebx
call fcn.10117bef
add esp, 4
test ch, ch
mov ecx, dword [esp + 0x34]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.101180ca
add esp, 0x28
ret