Function at 0x4017b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ec
mov eax, dword [0x41f008]
xor eax, esp
mov dword [esp + 0x1e8], eax
mov ecx, dword [ebp + 8]
lea edx, [esp + 0xe4]
push ebx
push esi
push edi
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4017e0
lea eax, [esp + 0xf0]
push 0x5c
push eax
call fcn.00404ab3
push dword [ebp + 0xc]
push str.METL
mov byte [eax], 0
lea eax, [esp + 0xe0]
push str._s_L_d.Dr4
push eax
call fcn.00401770
lea edx, [esp + 0xe8]
add esp, 0x18
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x401825
lea edi, [esp + 0xf0]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401836
mov ecx, edx
lea eax, [esp + 0x52]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x7e
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00403d00
add esp, 0xc
mov eax, 0x16f
mov word [esp + 0x50], ax
lea eax, [esp + 0xc]
push 0
push eax
push 0
push 0x40
lea eax, [esp + 0x100]
push 0x8000
push eax
call fcn.00408531
mov esi, dword [esp + 0x24]
or edi, 0xffffffff
add esp, 0x18
test eax, eax
cmovne esi, edi
cmp esi, edi
jle 0x4018bb
push 0x80
lea eax, [esp + 0x54]
push eax
push esi
call fcn.0040791a
add esp, 0xc
push esi
call fcn.00408980
add esp, 4
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [esp + 0x10]
push eax
push 0x180
push 0x40
lea eax, [esp + 0x100]
push 0x8301
push eax
call fcn.00408531
mov ebx, dword [esp + 0x24]
add esp, 0x18
test eax, eax
cmovne ebx, edi
cmp ebx, 0xffffffff
jne 0x40191d
push 0
push str.Error_Wrir_Error
lea eax, [esp + 0xf8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebx - 0x22]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1e8]
xor ecx, esp
call fcn.00402c53
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x421620]
xor edi, edi
test eax, eax
je 0x401930
mov eax, dword [eax + 0x18]
inc edi
test eax, eax
jne 0x401928
mov eax, 0x109
mov word [esp + 0x56], di
mov word [esp + 0x52], ax
lea eax, [esp + 0x50]
push 0x80
push eax
push ebx
call fcn.00409224
add esp, 0xc
lea eax, [esp + 0x10]
push 0x40
push 0
push eax
call fcn.00403d00
mov esi, dword [0x421620]
add esp, 0xc
mov eax, 4
mov word [esp + 0x10], ax
test esi, esi
je 0x4019fe
movsd xmm1, qword [0x41d2b0]
mov ax, word [esi + 4]
add ax, word [esi]
inc dword [esp + 0x28]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
movd xmm0, dword [esi + 8]
cvtdq2pd xmm0, xmm0
push 0x40
push eax
push ebx
divsd xmm0, xmm1
movsd qword [esp + 0x3c], xmm0
movd xmm0, dword [esi + 0xc]
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [esp + 0x44], xmm0
movd xmm0, dword [esi + 0x10]
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [esp + 0x4c], xmm0
movd xmm0, dword [esi + 0x14]
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [esp + 0x54], xmm0
call fcn.00409224
mov esi, dword [esi + 0x18]
add esp, 0xc
movsd xmm1, qword [0x41d2b0]
test esi, esi
jne 0x401983
push ebx
call fcn.00408980
add esp, 4
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x1f4]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00402c53
mov esp, ebp
pop ebp
ret 0xc