Function at 0x41bfb0
Capabilities:
Check if file exists
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485861
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x4ab4ec]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x220], edi
push 1
lea ecx, [ebp - 0x304]
call fcn.0041ac10
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
cmp dword [esi + 0x18], 8
jb 0x41c00b
mov eax, dword [esi + 4]
jmp 0x41c00e
lea eax, [esi + 4]
push 0x40
push 0xb
push eax
lea ecx, [ebp - 0x304]
call fcn.00418a50
mov eax, dword [ebp - 0x304]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x2fc], 6
je 0x41c048
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x304]
call fcn.00418a30
jmp 0x41c270
lea ecx, [ebp - 0x304]
call fcn.00418aa0
mov dword [ebp - 4], edi
push 0xffffffffffffffff
push edi
push esi
mov ecx, 0x4a9850
call fcn.00404f40
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push edi
lea eax, [ebp - 0x21a]
push eax
call fcn.004578d0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push str._COMMONAPPDATA_CheckPointZoneAlarmData
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x21c]
push edx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
jne 0x41c0bb
push edi
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x21c]
push ecx
call esi
test eax, eax
je 0x41c10b
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x274]
call fcn.00405d80
mov byte [ebp - 4], 3
mov dword [ebp - 0x220], 1
push 0x48f588
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.004059f0
add esp, 0xc
mov dword [ebp - 4], 4
mov ebx, 3
jmp 0x41c136
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], edi
xor ecx, ecx
mov word [ebp - 0x238], cx
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 5
mov ebx, 4
mov dword [ebp - 0x220], ebx
push 0xffffffffffffffff
push edi
push eax
mov ecx, 0x4a986c
call fcn.00404f40
mov dword [ebp - 4], 4
mov esi, 8
test bl, 4
je 0x41c194
and ebx, 0xfffffffb
mov dword [ebp - 0x220], ebx
cmp dword [ebp - 0x224], esi
jb 0x41c17b
mov edx, dword [ebp - 0x238]
push edx
call fcn.00456b63
add esp, 4
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], edi
xor eax, eax
mov word [ebp - 0x238], ax
mov dword [ebp - 4], 3
test bl, 2
je 0x41c1d9
and ebx, 0xfffffffd
mov dword [ebp - 0x220], ebx
cmp dword [ebp - 0x240], esi
jb 0x41c1c0
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.00456b63
add esp, 4
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], edi
xor edx, edx
mov word [ebp - 0x254], dx
mov dword [ebp - 4], edi
test bl, 1
je 0x41c21a
and ebx, 0xfffffffe
mov dword [ebp - 0x220], ebx
cmp dword [ebp - 0x25c], esi
jb 0x41c201
mov eax, dword [ebp - 0x270]
push eax
call fcn.00456b63
add esp, 4
mov dword [ebp - 0x25c], 7
mov dword [ebp - 0x260], edi
xor ecx, ecx
mov word [ebp - 0x270], cx
push 0x4ad3ac
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.00417220
lea ecx, [ebp - 0x2a8]
call fcn.004018c0
mov al, 1
jmp 0x41c272
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045718a
mov esp, ebp
pop ebp
ret