Function at 0x40db70
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e971c
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x677010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x220]
call fcn.00407a4a
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
push str.srl::System::Initialize
mov byte [ebp - 0x224], 0
call fcn.00414ef0
mov dword [ebp - 4], 1
call fcn.0041db40
cmp dword [eax + 4], 4
jl 0x40dbe7
push ecx
lea ecx, [ebp - 0x224]
call fcn.00412cf0
lea ecx, [ebp - 0x44]
call fcn.0040dae0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x330]
call fcn.00410730
mov byte [ebp - 4], 2
mov edx, dword [eax]
test edx, edx
jne 0x40dc0c
xor ecx, ecx
jmp 0x40dc20
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dc11
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 8]
call fcn.004020e3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x32c]
mov eax, dword [ebp - 0x330]
cmp eax, ecx
je 0x40dc47
push eax
call fcn.005c6b78
add esp, 4
push 0
push 0x23
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str._systemrequirementslabcyriconfig.ini
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x208]
push eax
push 0x64
lea eax, [ebp - 0x140]
push eax
push 0x63abd4
push 0x63de30
push str.Detection
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x140], 0
jne 0x40dd2a
lea ecx, [ebp - 0x78]
call fcn.0040dae0
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x330]
call fcn.00410730
mov byte [ebp - 4], 3
lea esi, [edi + 0xc]
mov edx, dword [eax]
test edx, edx
jne 0x40dcc7
xor ecx, ecx
jmp 0x40dcdf
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dcd0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004020e3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x32c]
mov eax, dword [ebp - 0x330]
cmp eax, ecx
je 0x40dd05
push eax
call fcn.005c6b78
add esp, 4
mov ecx, esi
call fcn.00410490
lea eax, [ebp - 0x208]
push eax
push dword [esi]
push 0x63de30
push str.Detection
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x40dead
lea esi, [ebp - 0x140]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40dd33
mov eax, dword [edi + 0xc]
sub esi, ecx
sar esi, 1
jne 0x40ddef
cmp dword [eax - 0xc], 0
lea ecx, [eax - 0x10]
mov esi, dword [ecx]
je 0x40dead
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
jge 0x40dd87
cmp dword [eax - 8], 0
jge 0x40dd73
push 0x80070057
call fcn.004022e2
mov dword [eax - 0xc], 0
xor ecx, ecx
mov eax, dword [edi + 0xc]
mov word [eax], cx
jmp 0x40dead
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40ddc2
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40ddbe
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40ddbe
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40ddc2
mov ecx, edx
call ebx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40dde0
lock inc dword [esi + 0x14]
lea eax, [esi + 8]
add eax, 0x10
mov dword [edi + 0xc], eax
jmp 0x40dead
mov ecx, esi
call edx
add eax, 0x10
mov dword [edi + 0xc], eax
jmp 0x40dead
mov ecx, dword [eax - 0xc]
lea ebx, [ebp - 0x140]
sub ebx, eax
mov dword [ebp - 0x334], ecx
sar ebx, 1
test esi, esi
jns 0x40de10
push 0x80070057
call fcn.004022e2
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x40de2a
push esi
lea ecx, [edi + 0xc]
call fcn.00401fda
mov ecx, dword [edi + 0xc]
cmp ebx, dword [ebp - 0x334]
ja 0x40de81
mov eax, dword [ecx - 8]
lea edx, [esi + esi]
lea ebx, [ecx + ebx*2]
test edx, edx
je 0x40de95
test ecx, ecx
jne 0x40de58
call fcn.005c3fdd
mov dword [eax], 0x16
call fcn.005c3f04
jmp 0x40de95
test ebx, ebx
je 0x40de46
add eax, eax
cmp eax, edx
jae 0x40de74
call fcn.005c3fdd
mov dword [eax], 0x22
call fcn.005c3f04
jmp 0x40de95
push edx
push ebx
push ecx
call fcn.005bfc60
add esp, 0xc
jmp 0x40de95
push esi
lea eax, [ebp - 0x140]
push eax
push dword [ecx - 8]
push ecx
call fcn.004021b7
add esp, 0x10
mov eax, dword [edi + 0xc]
cmp esi, dword [eax - 8]
jg 0x40dd69
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [edi + 0xc]
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
call fcn.00414900
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bc745
mov esp, ebp
pop ebp
ret