Function at 0x40f036
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push 0x4241ac
push ebx
call fcn.0040edf2
mov esi, eax
pop ecx
pop ecx
test esi, esi
jns 0x40f057
or eax, 0xffffffff
jmp 0x40f453
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
dec eax
imul ebp
push 0
push edx
push eax
push esi
call fcn.0041611a
add esp, 0x10
test edx, edx
jg 0x40f082
jl 0x40f07a
test eax, eax
jae 0x40f082
push 0xfffffffffffffffe
pop eax
jmp 0x40f452
push edi
mov edi, dword [esp + 0x20]
push ebp
push edi
push esi
call fcn.004145f5
add esp, 0xc
test eax, eax
jns 0x40f09d
push 0xfffffffffffffffd
jmp 0x40f44c
cmp eax, ebp
je 0x40f0a8
push 0xfffffffffffffffb
jmp 0x40f44c
lea eax, [ebp - 1]
jmp 0x40f0b8
cmp byte [eax + edi], 0x7e
jne 0x40f0b7
mov byte [eax + edi], 0
dec eax
test eax, eax
jg 0x40f0ad
push edi
call fcn.00413d01
pop ecx
test eax, eax
jne 0x40f0d2
and dword [0x453060], eax
jmp 0x40f44a
xor ebp, ebp
inc ebp
cmp word [0x43c7e0], bp
jne 0x40f2e2
mov esi, str.vst_pers.173
push esi
call fcn.00413bf0
push eax
push esi
push ebx
call fcn.00413c80
add esp, 0x10
test eax, eax
jne 0x40f10b
push edi
call fcn.0040e410
pop ecx
test eax, eax
js 0x40f44a
mov esi, str.vst_klok.174
push esi
call fcn.00413bf0
push eax
push esi
push ebx
call fcn.00413c80
add esp, 0x10
test eax, eax
jne 0x40f1a4
push str.TC_KLKGROUP
call fcn.0040fe70
mov ebp, eax
pop ecx
cmp byte [ebp], 0
je 0x40f1a4
lea ecx, [edi + 0x9a]
push ecx
call fcn.00413cf8
push ebp
mov esi, eax
call fcn.00413cf8
pop ecx
pop ecx
cmp eax, esi
je 0x40f1a4
lea eax, [edi + 0x9d]
push eax
call fcn.00413cf8
push ebp
mov esi, eax
call fcn.00413cf8
pop ecx
pop ecx
cmp eax, esi
je 0x40f1a4
lea eax, [edi + 0xa0]
push eax
call fcn.00413cf8
push ebp
mov esi, eax
call fcn.00413cf8
pop ecx
pop ecx
cmp eax, esi
je 0x40f1a4
lea eax, [edi + 0xa3]
push eax
call fcn.00413cf8
push ebp
mov esi, eax
call fcn.00413cf8
pop ecx
pop ecx
cmp eax, esi
jne 0x40f44a
mov esi, str.vst_accgrp.bes
push esi
call fcn.00413bf0
push eax
push esi
push ebx
call fcn.00413c80
add esp, 0x10
test eax, eax
jne 0x40f231
push str.TC_KLKGROUP
call fcn.0040fe70
mov ebp, eax
pop ecx
cmp byte [ebp], 0
je 0x40f231
lea ecx, [edi + 0x3d]
push ecx
call fcn.00413cf8
push ebp
mov esi, eax
call fcn.00413cf8
pop ecx
pop ecx
cmp eax, esi
je 0x40f231
lea eax, [edi + 0x40]
push eax
call fcn.00413cf8
push ebp
mov esi, eax
call fcn.00413cf8
pop ecx
pop ecx
cmp eax, esi
je 0x40f231
lea eax, [edi + 0x43]
push eax
call fcn.00413cf8
push ebp
mov esi, eax
call fcn.00413cf8
pop ecx
pop ecx
cmp eax, esi
je 0x40f231
lea eax, [edi + 0x46]
push eax
call fcn.00413cf8
push ebp
mov esi, eax
call fcn.00413cf8
pop ecx
pop ecx
cmp eax, esi
jne 0x40f44a
mov esi, str.vst_shftgrp.161
push esi
call fcn.00413bf0
push eax
push esi
push ebx
call fcn.00413c80
add esp, 0x10
test eax, eax
jne 0x40f27d
push str.TC_WPLEK
call fcn.0040fe70
mov esi, eax
pop ecx
cmp byte [esi], 0
je 0x40f27d
lea ebp, [edi + 0x46]
push ebp
call fcn.004108c9
pop ecx
test ax, ax
jne 0x40f27d
push ebp
push esi
call fcn.0040f64a
pop ecx
pop ecx
test eax, eax
js 0x40f44a
mov esi, str.vst_afd.174
push esi
call fcn.00413bf0
push eax
push esi
push ebx
call fcn.00413c80
add esp, 0x10
test eax, eax
jne 0x40f2df
push str.TC_AFD
call fcn.0040fe70
pop ecx
cmp byte [eax], 0
je 0x40f2bb
lea ecx, [edi + 5]
push ecx
push eax
call fcn.0040f64a
pop ecx
pop ecx
test eax, eax
js 0x40f44a
push str.TC_ABRKREIS
call fcn.0040fe70
pop ecx
cmp byte [eax], 0
je 0x40f2df
lea ecx, [edi + 0x4f]
push ecx
push eax
call fcn.0040f64a
pop ecx
pop ecx
test eax, eax
js 0x40f44a
xor ebp, ebp
inc ebp
mov esi, str.vst_wplek.174
push esi
call fcn.00413bf0
push eax
push esi
push ebx
call fcn.00413c80
add esp, 0x10
test eax, eax
jne 0x40f334
cmp word [0x43c7e0], bp
jne 0x40f329
push str.TC_PEE
call fcn.0040fe70
pop ecx
cmp byte [eax], 0
je 0x40f329
lea ecx, [edi + 5]
push ecx
push eax
call fcn.0040f64a
pop ecx
pop ecx
test eax, eax
js 0x40f44a
cmp byte [edi + 0x39], 0x31
jne 0x40f334
call fcn.0040f792
mov esi, str.vst_login.173
push esi
call fcn.00413bf0
push eax
push esi
push ebx
call fcn.00413c80
add esp, 0x10
test eax, eax
jne 0x40f388
cmp word [0x43c7e0], bp
jne 0x40f388
push str.TC_COMPANY
call fcn.0040fe70
mov ebp, eax
pop ecx
cmp byte [ebp], 0
je 0x40f388
lea esi, [edi + 0x452]
push esi
call fcn.00405e65
push esi
push ebp
call fcn.0040f64a
add esp, 0xc
test eax, eax
js 0x40f44a
mov ebp, str.vst_klok.174
push ebp
call fcn.00413bf0
push eax
push ebp
push ebx
call fcn.00413c80
xor ebp, ebp
add esp, 0x10
inc ebp
test eax, eax
jne 0x40f3db
cmp word [0x43c7e0], bp
jne 0x40f3db
push str.TC_COMPANY
call fcn.0040fe70
mov ebp, eax
pop ecx
cmp byte [ebp], 0
je 0x40f3d8
lea esi, [edi + 0x6d]
push esi
call fcn.00405e65
push esi
push ebp
call fcn.0040f64a
add esp, 0xc
test eax, eax
js 0x40f44a
xor ebp, ebp
inc ebp
mov esi, str.vst_team.bes
push esi
call fcn.00413bf0
push eax
push esi
push ebx
call fcn.00413c80
add esp, 0x10
test eax, eax
jne 0x40f44f
cmp word [0x43c7e0], bp
jne 0x40f44f
push str.TC_TEAM
call fcn.0040fe70
mov esi, eax
pop ecx
cmp byte [esi], 0
je 0x40f44f
push str.TNT
push 0x4614da
call fcn.00413b60
pop ecx
test eax, eax
lea eax, [edi + 5]
pop ecx
jne 0x40f436
push 0xa
push eax
push esi
call fcn.0040f6a1
add esp, 0xc
jmp 0x40f43f
push eax
push esi
call fcn.0040f64a
pop ecx
pop ecx
mov word [0x452f48], ax
test ax, ax
jns 0x40f44f
push 0xfffffffffffffffc
pop eax
jmp 0x40f451
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
ret