Function at 0x429270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47795b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b4
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0046f891
mov eax, dword [0x49d4d0]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x2cc], ebx
je 0x4292b9
push eax
call fcn.0045df2d
add esp, 4
push str.AttrKalibr.cfg
push 0x5c
push str.CONFIG
push 0x49b7b8
lea eax, [esp + 0xd0]
push str._s_s_c_s
push eax
mov dword [0x49d4d0], ebx
mov dword [0x49d4d4], ebx
call fcn.0045d67e
add esp, 0x18
lea ecx, [esp + 0xc0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4294ac
push ebx
push 2
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0x1c]
call fcn.0046fae2
mov eax, dword [esp + 0x10]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
call dword [eax + 0x28]
lea ecx, [esp + 0x10]
call fcn.0046f783
mov esi, eax
cmp esi, 4
lea ecx, [esp + 0x10]
jb 0x4294a7
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
call dword [edx + 0x28]
push 4
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.0046f59e
mov eax, dword [esp + 0x28]
cmp eax, 1
jl 0x4294a3
imul eax, eax, 0x1b8
lea ecx, [eax + 4]
cmp esi, ecx
jne 0x4294a3
push eax
call fcn.0045e1f2
mov edx, dword [esp + 0x2c]
imul edx, edx, 0x1b8
add esp, 4
mov edi, eax
push edx
push edi
lea ecx, [esp + 0x18]
call fcn.0046f59e
lea ecx, [esp + 0x10]
call fcn.0046f82f
fld qword [0x4998b8]
fsub qword [0x4998b0]
fdiv qword [0x4998c0]
call fcn.0045d728
mov dword [0x49d4d4], eax
imul eax, eax, 0x1b8
push eax
call fcn.0045e1f2
mov ecx, dword [esp + 0x2c]
mov dword [0x49d4d0], eax
mov eax, dword [0x49d4d4]
add esp, 4
cmp ecx, eax
mov dword [esp + 0x2c], 1
je 0x4293e6
mov dword [esp + 0x2c], ebx
fld qword [0x4998c0]
xor ebp, ebp
cmp eax, ebx
fmul qword [0x479a00]
fadd qword [0x4998b0]
fstp qword [esp + 0x20]
jle 0x429479
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
push edi
call fcn.00422a70
imul eax, eax, 0x1b8
lea esi, [eax + edi]
mov eax, dword [0x49d4d0]
push 0x1b8
lea ecx, [ebx + eax]
push esi
push ecx
call fcn.0045dbf0
mov edx, dword [0x49d4d0]
fld qword [esp + 0x3c]
add esp, 0x1c
fstp qword [ebx + edx]
fld qword [esi]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x44
jnp 0x429459
mov dword [esp + 0x2c], 0
fld qword [0x4998c0]
mov eax, dword [0x49d4d4]
fadd qword [esp + 0x20]
inc ebp
add ebx, 0x1b8
cmp ebp, eax
fstp qword [esp + 0x20]
jl 0x429402
xor ebx, ebx
cmp edi, ebx
je 0x429486
push edi
call fcn.0045df2d
add esp, 4
cmp dword [esp + 0x2c], ebx
jne 0x4295ef
push ebx
push 0x1002
lea eax, [esp + 0xc8]
push eax
jmp 0x4295a3
lea ecx, [esp + 0x10]
call fcn.0046f82f
lea edx, [esp + 0x30]
push edx
call fcn.004229e0
fld qword [0x4998b8]
fsub qword [0x4998b0]
fdiv qword [0x4998c0]
call fcn.0045d728
mov dword [0x49d4d4], eax
imul eax, eax, 0x1b8
push eax
call fcn.0045e1f2
mov dword [0x49d4d0], eax
fld qword [0x4998c0]
mov eax, dword [0x49d4d4]
fmul qword [0x479a00]
add esp, 8
xor edi, edi
cmp eax, ebx
fadd qword [0x4998b0]
fstp qword [esp + 0x20]
jle 0x429595
xor esi, esi
lea ecx, [ecx]
mov eax, dword [0x49d4d0]
fld qword [esp + 0x20]
fstp qword [esi + eax]
mov edx, dword [0x49d4d0]
push 0x90
lea ecx, [esp + 0x34]
push ecx
lea eax, [esi + edx + 8]
push eax
call fcn.0045dbf0
mov edx, dword [0x49d4d0]
push 0x90
lea ecx, [esp + 0x40]
push ecx
lea eax, [esi + edx + 0x98]
push eax
call fcn.0045dbf0
mov edx, dword [0x49d4d0]
push 0x90
lea ecx, [esp + 0x4c]
push ecx
lea eax, [esi + edx + 0x128]
push eax
call fcn.0045dbf0
fld qword [0x4998c0]
fadd qword [esp + 0x44]
mov eax, dword [0x49d4d4]
add esp, 0x24
inc edi
add esi, 0x1b8
fstp qword [esp + 0x20]
cmp edi, eax
jl 0x429510
push ebx
push 0x1002
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0046fae2
mov edx, dword [esp + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x18]
push ebx
call dword [edx + 0x28]
push 4
lea ecx, [esp + 0x14]
push 0x49d4d4
call fcn.0046f5de
mov eax, dword [0x49d4d4]
mov ecx, dword [0x49d4d0]
imul eax, eax, 0x1b8
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0046f5de
lea ecx, [esp + 0x10]
call fcn.0046f82f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2cc], 0xffffffff
call fcn.0046f8d0
mov ecx, dword [esp + 0x2c4]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret