Function at 0x409ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [0x4a1ee4], bl
setne bl
cmp byte [0x4d1ed1], 0
lea ebx, [ebx*2 - 1]
jne 0x409afe
cmp byte [0x4d1e45], 0
jne 0x409afe
call fcn.004099d0
call fcn.00409e10
cmp byte [0x480c50], 0
jne 0x409e08
call fcn.00407f60
push 0x48a940
push str._sLASTD
push 0x48b940
call fcn.00401770
push 0x47035c
push 0x48b940
call fcn.00417c68
add esp, 0x14
mov dword [0x4c3718], eax
test eax, eax
je 0x409b4f
push eax
call fcn.0041797a
add esp, 4
jmp 0x409b86
push 0x470280
push 0x48b940
mov dword [ebp - 4], 1
call fcn.00417c68
push eax
push 1
mov dword [0x4c3718], eax
lea eax, [ebp - 4]
push 2
push eax
call fcn.004180d4
push dword [0x4c3718]
call fcn.0041797a
add esp, 0x1c
mov eax, dword [str.D1.TXT]
mov dword [0x48b540], eax
movzx eax, word [0x470cc0]
mov word [0x48b544], ax
movzx eax, byte [0x470cc2]
push 0
mov byte [0x48b546], al
call fcn.004088b0
movzx eax, word [0x4716b4]
push str.DATEIEN
push 0x48a940
mov word [0x48b540], ax
movzx eax, byte [0x4716b6]
push str._s_s
push 0x48b940
mov byte [0x48b542], al
call fcn.00401770
push 0x4716c0
push 0x48b940
call fcn.00417c68
add esp, 0x1c
mov dword [0x4c3718], eax
test eax, eax
jne 0x409c3c
push 0x470be4
push 0x48b940
call fcn.00417c68
push str.________________________________________________Abmessungen
push 0x48b540
push 0x471700
push 0x471708
push str._s_s_s_s_n
push eax
mov dword [0x4c3718], eax
call fcn.00401710
mov eax, dword [0x4c3718]
add esp, 0x20
test eax, eax
je 0x409c45
push eax
call fcn.0041797a
add esp, 4
push 1
call fcn.004088b0
push ebx
call fcn.00408380
add esp, 8
cmp byte [0x4d1ed1], 0
je 0x409e08
push 0x48b140
push str.DIARY
push 0x48a940
push str._s_s_s
push 0x48b940
call fcn.00401770
push 0x47035c
push 0x48b940
call fcn.00417c68
add esp, 0x1c
mov dword [0x4c3718], eax
test eax, eax
je 0x409cbb
push eax
push 1
push 0x16e0
push 0x4cccc0
call fcn.00444513
push dword [0x4c3718]
call fcn.0041797a
add esp, 0x14
push edi
mov edi, 1
mov eax, edi
cmp ax, word [0x4cccc0]
jg 0x409dae
push esi
movsx esi, di
xor eax, eax
xor ecx, ecx
mov byte [esi + 0x4ccd9e], 1
cmp ax, word [0x4cccc2]
jg 0x409d05
lea edx, [esi + esi*4]
nop dword [eax + eax]
movsx eax, cx
inc ecx
mov byte [eax + edx*2 + 0x4cce02], 0
cmp cx, word [0x4cccc2]
jle 0x409cf0
push 0x48b140
push esi
push 0x471720
push 0x48a940
push str._s_s0_d_s
push 0x48b940
call fcn.00401770
push 0x47035c
push 0x48b940
call fcn.00417c68
add esp, 0x20
mov dword [0x4c3718], eax
test eax, eax
je 0x409d52
push eax
call fcn.0041797a
push 0x48b940
call fcn.0044485c
add esp, 8
push 0x48b140
push esi
push 0x471730
push 0x48a940
push str._s_s0_d_s
push 0x48b940
call fcn.00401770
push 0x47035c
push 0x48b940
call fcn.00417c68
add esp, 0x20
mov dword [0x4c3718], eax
test eax, eax
je 0x409d9f
push eax
call fcn.0041797a
push 0x48b940
call fcn.0044485c
add esp, 8
inc edi
cmp di, word [0x4cccc0]
jle 0x409cd1
pop esi
push 0x48b140
push str.DIARY
push 0x48a940
push str._s_s_s
push 0x48b940
call fcn.00401770
push 0x470280
push 0x48b940
call fcn.00417c68
add esp, 0x1c
mov dword [0x4c3718], eax
pop edi
test eax, eax
je 0x409e08
push eax
push 1
push 0x16e0
push 0x4cccc0
call fcn.004180d4
push dword [0x4c3718]
call fcn.0041797a
add esp, 0x14
pop ebx
mov esp, ebp
pop ebp
ret