Function at 0x416bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a8
call fcn.0046f450
mov eax, dword [0x4c9230]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 3
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0xc]
call fcn.00402040
mov ecx, dword [ebp + 0x10]
call fcn.00402040
mov eax, dword [ebp + 8]
push eax
call fcn.00470c7e
add esp, 4
test eax, eax
je 0x416c1a
jmp 0x416e85
xor ecx, ecx
mov word [ebp - 0x1028], cx
xor edx, edx
mov word [ebp - 0x1020], dx
push 0x1000
push 0
lea eax, [ebp - 0x101e]
push eax
call fcn.00469c10
add esp, 0xc
mov dword [ebp - 0x1024], 0
mov ecx, dword [ebp + 8]
push ecx
push 1
push 2
lea edx, [ebp - 0x1028]
push edx
call fcn.004711c3
add esp, 0x10
cmp eax, 1
jne 0x416cc9
movzx eax, word [ebp - 0x1028]
cmp eax, 0xd
jne 0x416c76
jmp 0x416c4c
movzx ecx, word [ebp - 0x1028]
cmp ecx, 0xa
jne 0x416c84
jmp 0x416cc9
mov edx, dword [ebp - 0x1024]
mov ax, word [ebp - 0x1028]
mov word [ebp + edx*2 - 0x1020], ax
mov ecx, dword [ebp - 0x1024]
add ecx, 1
mov dword [ebp - 0x1024], ecx
cmp dword [ebp - 0x1024], 0x800
jl 0x416cc7
push str.Read_line_buffer_over.
mov edx, dword [ebp + 0x10]
push edx
call fcn.00402f10
add esp, 8
jmp 0x416cc9
jmp 0x416c4c
mov eax, dword [ebp + 8]
push eax
call fcn.00470cb2
add esp, 4
test eax, eax
je 0x416d34
call fcn.00470e1d
mov ecx, dword [eax]
push ecx
call fcn.00470d0e
add esp, 4
mov dword [ebp - 0x1064], eax
cmp dword [ebp - 0x1064], 0
jne 0x416d04
mov dword [ebp - 0x1044], 0
jmp 0x416d19
mov edx, dword [ebp - 0x1064]
push edx
call fcn.00469b80
add esp, 4
mov dword [ebp - 0x1044], eax
mov eax, dword [ebp - 0x1044]
push eax
mov ecx, dword [ebp - 0x1064]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00401f10
jmp 0x416e85
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x1068], ecx
xor edx, edx
cmp dword [ebp - 0x1068], 0
sete dl
movzx eax, dl
test eax, eax
jne 0x416d5a
jmp 0x416e85
lea ecx, [ebp - 0x1020]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x416d78
mov dword [ebp - 0x10a4], 0
jmp 0x416e36
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3fffffff
jle 0x416da0
mov dword [ebp - 0x10a8], 0
jmp 0x416e2a
mov eax, dword [ebp - 4]
shl eax, 1
call fcn.00470220
mov dword [ebp - 0x1070], esp
mov eax, dword [ebp - 0x1074]
mov dword [ebp - 0x10a8], eax
cmp dword [ebp - 0x1070], 0
je 0x416dcb
cmp dword [ebp - 8], 0
jne 0x416dd7
mov dword [ebp - 0x10a8], 0
jmp 0x416e2a
mov ecx, dword [ebp - 0x1070]
mov byte [ecx], 0
push 0
push 0
mov edx, dword [ebp - 4]
shl edx, 1
push edx
mov eax, dword [ebp - 0x1070]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x106c], eax
cmp dword [ebp - 0x106c], 0
jne 0x416e1e
mov dword [ebp - 0x10a8], 0
jmp 0x416e2a
mov eax, dword [ebp - 0x1070]
mov dword [ebp - 0x10a8], eax
mov ecx, dword [ebp - 0x10a8]
mov dword [ebp - 0x10a4], ecx
cmp dword [ebp - 0x10a4], 0
jne 0x416e4b
mov dword [ebp - 0x1078], 0
jmp 0x416e60
mov edx, dword [ebp - 0x10a4]
push edx
call fcn.00469b80
add esp, 4
mov dword [ebp - 0x1078], eax
mov eax, dword [ebp - 0x1078]
push eax
mov ecx, dword [ebp - 0x10a4]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00401f10
mov dword [ebp - 0xc], 1
xor edx, edx
jne 0x416c05
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x10a8]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0046a109
mov esp, ebp
pop ebp
ret