Function at 0x10017760
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp + 0x394], eax
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3a4]
push esi
mov esi, dword [ebp + 0x3a8]
push edi
mov edi, dword [ebp + 0x3a0]
mov dword [ebp - 0x74], eax
mov eax, esi
test esi, esi
jne 0x100177a4
mov eax, 0x101eeb08
push eax
push ebx
push edi
push 0x101f8298
push 3
call fcn.101d1209
push esi
call fcn.100173fb
add esp, 0x18
test eax, eax
je 0x100179bd
push edi
push dword [0x1027ad8c]
call fcn.10017704
pop ecx
pop ecx
test eax, eax
je 0x100179b5
push 0x101f8294
push dword [0x1027ad8c]
call fcn.10017704
pop ecx
pop ecx
test eax, eax
je 0x100179b5
push ebx
push dword [0x1027ad8c]
call fcn.10017704
pop ecx
pop ecx
test eax, eax
je 0x100179b5
push 0x101f8290
push dword [0x1027ad8c]
call fcn.10017704
pop ecx
pop ecx
test eax, eax
je 0x100179b5
xor ebx, ebx
mov dword [ebp - 0x70], ebx
mov edi, closesocket
push ebx
lea eax, [ebp - 0x78]
push eax
push 0x3fe
lea eax, [ebp - 0x6c]
push eax
push dword [0x1027ad88]
mov dword [ebp - 0x78], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10017afc
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x10017afc
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x6c], cx
lea esi, [ebp - 0x6c]
cmp word [ebp - 0x6c], bx
je 0x10017a89
push 0x101f8290
push esi
call fcn.101d3891
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
test eax, eax
je 0x1001788d
xor ecx, ecx
mov word [eax], cx
push edi
mov ebx, str.ret
push ebx
call fcn.1001661b
push eax
push ebx
push esi
call fcn.101d3a45
add esp, 0x14
push edi
test eax, eax
jne 0x100178e7
push ebx
call fcn.1001661b
lea eax, [esi + eax*2]
push eax
call fcn.101d1b9e
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100178db
cmp esi, 0x4c7
jne 0x100178cb
xor esi, esi
push 0
call fcn.1001762e
pop ecx
test esi, esi
jne 0x10017aaa
mov dword [ebp - 0x70], 1
jmp 0x10017a5b
mov ebx, str.dbg
push ebx
call fcn.1001661b
push eax
push ebx
push esi
call fcn.101d3a45
add esp, 0x14
push edi
test eax, eax
jne 0x10017920
push ebx
call fcn.1001661b
lea eax, [esi + eax*2]
push eax
push str.AIL:System64:_s
push 3
call fcn.101d1209
add esp, 0x14
jmp 0x10017a5b
mov ebx, 0x101f7da8
push ebx
call fcn.1001661b
push eax
push ebx
push esi
call fcn.101d3a45
add esp, 0x14
push edi
test eax, eax
jne 0x100179d7
push ebx
call fcn.1001661b
lea eax, [esi + eax*2]
push eax
call fcn.101d1b9e
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x10017ae8
cmp esi, dword [ebp + 0x3b4]
jge 0x10017ae8
imul eax, dword [ebp + 0x3b0]
mov ecx, dword [ebp - 0x74]
lea ebx, [ecx + eax*2]
push 0x101f8268
push ebx
call fcn.101d3891
pop ecx
pop ecx
test eax, eax
jne 0x10017ac5
push ebx
push dword [0x1027ad8c]
call fcn.10017704
pop ecx
pop ecx
test eax, eax
je 0x100179b5
push 0x101f8290
push dword [0x1027ad8c]
call fcn.10017704
pop ecx
pop ecx
test eax, eax
jne 0x10017a5b
push 1
call fcn.1001762e
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x394]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101d14d7
add ebp, 0x398
leave
ret
mov ebx, 0x101f7db0
push ebx
call fcn.1001661b
push eax
push ebx
push esi
call fcn.101d3a45
add esp, 0x14
test eax, eax
jne 0x10017a4b
push 0x3d
push esi
call fcn.101d1ba9
pop ecx
pop ecx
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x10017a4b
push edi
push ebx
call fcn.1001661b
lea eax, [esi + eax*2]
push eax
call fcn.101d1b9e
add esp, 0xc
test eax, eax
jl 0x10017af9
cmp eax, dword [ebp + 0x3b4]
jge 0x10017af9
imul eax, dword [ebp + 0x3b0]
mov ecx, dword [ebp - 0x7c]
add ecx, 2
push ecx
mov ecx, dword [ebp - 0x74]
push dword [ebp + 0x3b0]
lea eax, [ecx + eax*2]
push eax
call fcn.10016ac1
jmp 0x10017a58
push esi
push str.AIL:System64:N_A:_s
push 3
call fcn.101d1209
add esp, 0xc
mov esi, dword [ebp - 0x80]
test esi, esi
je 0x10017a89
add esi, 2
movzx eax, word [esi]
cmp ax, 0xa
je 0x10017a74
cmp ax, 0xd
jne 0x10017a7f
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x10017a65
cmp word [esi], 0
jne 0x10017874
xor ebx, ebx
cmp dword [ebp - 0x70], ebx
je 0x1001782e
push str.AIL:System64__ok
push 3
call fcn.101d1209
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x100179bf
push esi
push str.AIL:System64:Err_d
push 1
call fcn.101d1209
push esi
call sym.AhnIEx.dll_AhnIEx_SetError
add esp, 0x10
jmp 0x100179bd
push esi
push str.AIL:System64:The_Var_d_contains_LF_or_CR
push 1
call fcn.101d1209
push 0xd
call sym.AhnIEx.dll_AhnIEx_SetError
push 1
call fcn.1001762e
add esp, 0x14
jmp 0x100179bd
push esi
push str.AIL:System64:The_Var_d_is_not_valid
push 1
call fcn.101d1209
push 0x6f
jmp 0x10017ad4
push eax
jmp 0x10017ae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.AIL:System64:Read_err_d
push 1
call fcn.101d1209
push esi
jmp 0x10017ad4