Function at 0x41a15e
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d6c8
push 0x42adb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov eax, 0x100
mov dword [ebp - 0x1c], eax
push eax
call fcn.00440209
pop ecx
mov edi, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
je 0x41a394
push ebx
push 0x8000080
push 3
push ebx
push 1
push OleUIInsertObjectA
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x41a394
mov dword [ebp - 0x38], ebx
mov eax, 0x8000
mov dword [ebp - 0x58], eax
call fcn.0042aa00
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x4c], eax
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push 0x8000
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a394
cmp dword [ebp + 0xc], 0xffffffff
jne 0x41a262
xor eax, eax
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x2c]
cmp eax, edx
mov ecx, dword [ebp - 0x4c]
jae 0x41a234
cmp byte [eax + ecx], 0xa
je 0x41a234
inc eax
mov dword [ebp - 0x5c], eax
jmp 0x41a221
cmp eax, edx
jne 0x41a23d
mov dword [ebp + 0xc], ebx
jmp 0x41a262
cmp eax, ebx
jbe 0x41a248
cmp byte [eax + ecx - 1], 0xd
je 0x41a238
dec edx
cmp eax, edx
jae 0x41a25b
cmp byte [eax + ecx + 1], 0xd
mov dword [ebp + 0xc], 1
je 0x41a262
mov dword [ebp + 0xc], 2
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x28], eax
mov eax, dword [eax*4 + 0x4991bc]
mov dword [ebp - 0x54], eax
push 0x1000
push ebx
lea ecx, [esi + 0x34]
call fcn.0041b2a7
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], ebx
mov edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x44], edx
jae 0x41a34b
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
movsx eax, byte [eax + ecx]
mov dword [ebp - 0x60], eax
inc dword [ebp - 0x44]
cmp dword [ebp - 0x44], edx
jne 0x41a2ce
mov eax, 0x8000
cmp edx, eax
jne 0x41a2ce
push ebx
lea edx, [ebp - 0x2c]
push edx
push eax
push ecx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a394
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x60]
mov byte [eax + edi], cl
inc eax
mov dword [ebp - 0x38], eax
cmp eax, dword [ebp - 0x1c]
jne 0x41a311
add dword [ebp - 0x1c], 0x100
push dword [ebp - 0x1c]
call fcn.00440209
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], eax
push dword [ebp - 0x38]
push edi
push eax
call fcn.00429890
mov dword [ebp - 0x70], edi
push edi
call fcn.00440232
add esp, 0x14
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x54]
mov dl, byte [ebp - 0x60]
mov ecx, dword [ebp - 0x40]
cmp dl, byte [ecx + eax]
jne 0x41a343
inc ecx
mov dword [ebp - 0x40], ecx
cmp byte [ecx + eax], bl
jne 0x41a289
mov eax, dword [ebp - 0x38]
sub eax, ecx
mov byte [eax + edi], bl
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.00419f85
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], ebx
jmp 0x41a289
mov eax, dword [ebp - 0x38]
mov byte [eax + edi], bl
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.00419f85
push 1
pop ecx
mov dword [esi + 0x1c], ecx
mov eax, dword [ebp - 0x3c]
and eax, ecx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x30], 0x400
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [ebp - 0x24], ecx
push 0xffffffffffffffff
push 0x1000
push ebx
push ebx
mov ecx, esi
call fcn.0041a99f
or dword [ebp - 4], 0xffffffff
call fcn.0041a3bc
mov eax, dword [ebp - 0x24]
lea esp, [ebp - 0x84]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8