Function at 0x423920
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8d1f
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x50545c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b8], ecx
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push 0
lea ecx, [ebp - 0x222]
push ecx
call fcn.004931a0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x224]
push edx
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
call fcn.0044fb81
push eax
lea ecx, [ebp - 0x14]
call fcn.00412940
mov dword [ebp - 4], 0
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x228]
call fcn.00412290
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x250], ecx
push 0x5c
mov edx, dword [ebp - 0x250]
push edx
call fcn.00494159
add esp, 8
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x4239f8
mov dword [ebp - 0x2bc], 0xffffffff
jmp 0x423a0c
mov eax, dword [ebp - 0x24c]
sub eax, dword [ebp - 0x228]
sar eax, 1
mov dword [ebp - 0x2bc], eax
mov ecx, dword [ebp - 0x2bc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x423a70
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x258], edx
push 0x2f
mov eax, dword [ebp - 0x258]
push eax
call fcn.00494159
add esp, 8
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
jne 0x423a53
mov dword [ebp - 0x2c0], 0xffffffff
jmp 0x423a67
mov ecx, dword [ebp - 0x254]
sub ecx, dword [ebp - 0x228]
sar ecx, 1
mov dword [ebp - 0x2c0], ecx
mov edx, dword [ebp - 0x2c0]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x260], eax
push 0x2e
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.00494159
add esp, 8
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0
jne 0x423aa8
mov dword [ebp - 0x2c4], 0xffffffff
jmp 0x423abc
mov edx, dword [ebp - 0x25c]
sub edx, dword [ebp - 0x228]
sar edx, 1
mov dword [ebp - 0x2c4], edx
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x423b28
cmp dword [ebp - 0x18], 0xffffffff
je 0x423b28
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x10]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x228]
call fcn.004250f0
mov dword [ebp - 0x2c8], eax
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x264], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x264]
push edx
lea ecx, [ebp - 0x14]
call fcn.00412a10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.004129d0
call fcn.0044fb81
push eax
lea ecx, [ebp - 0x22c]
call fcn.00412940
mov byte [ebp - 4], 3
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.004931a0
add esp, 0xc
push 0
push 0x26
lea ecx, [ebp - 0x224]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x224]
test edx, edx
jne 0x423b7c
mov dword [ebp - 0x26c], 0
jmp 0x423b91
lea eax, [ebp - 0x224]
push eax
call fcn.004939fc
add esp, 4
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x22c]
call fcn.00412d00
push 0
push 0x3a
lea ecx, [ebp - 0x22c]
call fcn.00425070
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040f0f0
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x27c], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x27c]
push edx
lea ecx, [ebp - 0x22c]
call fcn.00412a10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.004129d0
mov eax, str.:Program_FilesEsafeNetCobra_DocGuard_ClientCdgLog.conf
test eax, eax
jne 0x423c18
mov dword [ebp - 0x284], 0
jmp 0x423c2b
push str.:Program_FilesEsafeNetCobra_DocGuard_ClientCdgLog.conf
call fcn.004939fc
add esp, 4
mov dword [ebp - 0x284], eax
mov ecx, dword [ebp - 0x284]
push ecx
push str.:Program_FilesEsafeNetCobra_DocGuard_ClientCdgLog.conf
lea ecx, [ebp - 0x22c]
call fcn.00411880
push ecx
mov edx, esp
mov dword [ebp - 0x238], esp
mov dword [ebp - 0x290], edx
mov eax, dword [ebp - 0x22c]
sub eax, 0x10
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.00412ee0
add esp, 4
mov dword [ebp - 0x28c], eax
mov edx, dword [ebp - 0x28c]
add edx, 0x10
mov eax, dword [ebp - 0x290]
mov dword [eax], edx
mov ecx, dword [ebp - 0x290]
mov dword [ebp - 0x2d0], ecx
mov ecx, dword [ebp - 0x2b8]
call fcn.00424340
mov dword [ebp - 0x2d4], eax
mov edx, dword [ebp - 0x2b8]
mov eax, dword [ebp - 0x2d4]
mov dword [edx + 4], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x23c], esp
mov dword [ebp - 0x29c], ecx
mov edx, dword [ebp - 0x14]
sub edx, 0x10
mov dword [ebp - 0x294], edx
mov eax, dword [ebp - 0x294]
push eax
call fcn.00412ee0
add esp, 4
mov dword [ebp - 0x298], eax
mov ecx, dword [ebp - 0x298]
add ecx, 0x10
mov edx, dword [ebp - 0x29c]
mov dword [edx], ecx
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x2d8], eax
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x240], esp
mov dword [ebp - 0x2a8], ecx
mov edx, dword [ebp - 0x22c]
sub edx, 0x10
mov dword [ebp - 0x2a0], edx
mov eax, dword [ebp - 0x2a0]
push eax
call fcn.00412ee0
add esp, 4
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x10
mov edx, dword [ebp - 0x2a8]
mov dword [edx], ecx
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x2dc], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2b8]
call fcn.00424570
mov dword [ebp - 0x2e0], eax
mov ecx, dword [ebp - 0x2b8]
mov edx, dword [ebp - 0x2e0]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x2b8]
cmp dword [eax + 0xc], 0
jne 0x423d95
mov ecx, dword [ebp - 0x2b8]
mov edx, dword [ebp - 0x2b8]
mov eax, dword [edx + 4]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x2b8]
cmp dword [ecx + 8], 0
jne 0x423db2
mov edx, dword [ebp - 0x2b8]
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [eax]
mov dword [edx + 8], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x22c]
sub edx, 0x10
mov dword [ebp - 0x2ac], edx
mov ecx, dword [ebp - 0x2ac]
call fcn.004029d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004129d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0049318c
mov esp, ebp
pop ebp
ret