Function at 0x4240c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531a29
mov eax, dword fs:[0]
push eax
sub esp, 0x3fc
mov eax, dword [0x56adc0]
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
test byte [0x572284], 1
jne 0x424115
or dword [0x572284], 1
push 0x536510
mov dword [0x57225c], 0
call fcn.004f7597
add esp, 4
cmp byte [0x571c0c], 0
jne 0x424c21
push 0x24c
mov byte [0x571c0c], 1
call fcn.004f7806
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x424145
call fcn.00424c50
mov esi, eax
jmp 0x424147
xor esi, esi
mov dword [ebp - 0x3cc], esi
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esi + 0x1c]
mov dword [ebp - 0x408], eax
lea eax, [esi + 0x38]
mov dword [ebp - 0x404], eax
lea ecx, [esi + 0x8c]
mov dword [ebp - 0x400], ecx
lea edx, [esi + 0x70]
lea eax, [esi + 0x54]
lea ecx, [esi + 0xa8]
mov dword [ebp - 0x3fc], edx
mov dword [ebp - 0x3f8], eax
mov dword [ebp - 0x3f4], ecx
lea edx, [esi + 0xc4]
lea eax, [esi + 0xfc]
lea ecx, [esi + 0xe0]
mov dword [ebp - 0x3f0], edx
mov dword [ebp - 0x3ec], eax
mov dword [ebp - 0x3e8], ecx
lea edx, [esi + 0x118]
lea eax, [esi + 0x134]
lea ecx, [esi + 0x150]
mov dword [ebp - 0x3e4], edx
mov dword [ebp - 0x3e0], eax
mov dword [ebp - 0x3dc], ecx
lea edx, [esi + 0x16c]
lea eax, [esi + 0x188]
lea ecx, [esi + 0x1a4]
mov dword [ebp - 0x3d8], edx
mov dword [ebp - 0x3d4], eax
mov dword [ebp - 0x3d0], ecx
mov dword [ebp - 0x3bc], ebx
lea edx, [ebp - 0x3bc]
push edx
push 0x54a75c
push 1
push ebx
push 0x5386bc
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x42422f
mov dword [ebp - 0x3bc], ebx
jmp 0x42423d
mov eax, dword [ebp - 0x3bc]
cmp eax, ebx
jne 0x42443a
mov eax, 0x1c
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov eax, 5
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], 0x28
mov dword [ebp - 0x248], 0x14
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], 0x1a
mov dword [ebp - 0x23c], 0x21
mov dword [ebp - 0x238], 0xb
mov dword [ebp - 0x234], 0x24
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], 0x25
mov dword [ebp - 0x228], 8
mov dword [ebp - 0x224], 2
mov dword [ebp - 0x220], 0x17
xor edi, edi
jmp 0x4242d2
xor ebx, ebx
push 0x208
lea ecx, [ebp - 0x21a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x21c], ax
call fcn.004fbb00
mov eax, dword [ebp + edi - 0x258]
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x42433c
mov ecx, dword [ebp + edi - 0x408]
lea eax, [ebp - 0x21c]
lea ebx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x424320
sub eax, ebx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
call fcn.00404bd5
add edi, 4
cmp edi, 0x3c
jb 0x4242d0
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x21a]
push edx
mov word [ebp - 0x21c], cx
call fcn.004fbb00
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424380
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, esi
call fcn.00404bd5
push 0xa
xor edx, edx
push 0x54a038
lea ecx, [ebp - 0x364]
mov dword [ebp - 0x350], 7
mov dword [ebp - 0x354], 0
mov word [ebp - 0x364], dx
call fcn.00404bd5
lea ebx, [ebp - 0x364]
lea ecx, [esi + 0x1c]
lea edi, [ebp - 0x39c]
mov byte [ebp - 4], 2
call fcn.00424f20
mov edi, eax
lea ebx, [esi + 0x1c0]
cmp ebx, edi
je 0x4247ff
cmp dword [ebx + 0x14], 8
jb 0x424406
mov eax, dword [ebx]
push eax
call fcn.004f77ab
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp dword [edi + 0x14], 8
jae 0x4247da
mov eax, dword [edi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push edi
push ebx
call fcn.004f6f30
add esp, 0xc
jmp 0x4247e0
mov ecx, dword [0x53863c]
mov edx, dword [0x538640]
mov dword [ebp - 0x348], ecx
mov ecx, dword [0x538644]
mov dword [ebp - 0x344], edx
mov edx, dword [0x538648]
mov dword [ebp - 0x340], ecx
mov ecx, dword [0x53864c]
mov dword [ebp - 0x33c], edx
mov edx, dword [0x538650]
mov dword [ebp - 0x338], ecx
mov ecx, dword [0x538654]
mov dword [ebp - 0x334], edx
mov edx, dword [0x538658]
mov dword [ebp - 0x330], ecx
mov ecx, dword [0x53860c]
mov dword [ebp - 0x32c], edx
mov edx, dword [0x538610]
mov dword [ebp - 0x328], ecx
mov ecx, dword [0x538614]
mov dword [ebp - 0x324], edx
mov edx, dword [0x538618]
mov dword [ebp - 0x320], ecx
mov ecx, dword [0x53868c]
mov dword [ebp - 0x31c], edx
mov edx, dword [0x538690]
mov dword [ebp - 0x318], ecx
mov ecx, dword [0x538694]
mov dword [ebp - 0x314], edx
mov edx, dword [0x538698]
mov dword [ebp - 0x310], ecx
mov ecx, dword [0x5385bc]
mov dword [ebp - 0x30c], edx
mov edx, dword [0x5385c0]
mov dword [ebp - 0x308], ecx
mov ecx, dword [0x5385c4]
mov dword [ebp - 0x304], edx
mov edx, dword [0x5385c8]
mov dword [ebp - 0x300], ecx
mov ecx, dword [0x5385cc]
mov dword [ebp - 0x2fc], edx
mov edx, dword [0x5385d0]
mov dword [ebp - 0x2f8], ecx
mov ecx, dword [0x5385d4]
mov dword [ebp - 0x2f4], edx
mov edx, dword [0x5385d8]
mov dword [ebp - 0x2f0], ecx
mov ecx, dword [0x53862c]
mov dword [ebp - 0x2ec], edx
mov edx, dword [0x538630]
mov dword [ebp - 0x2e8], ecx
mov ecx, dword [0x538634]
mov dword [ebp - 0x2e4], edx
mov edx, dword [0x538638]
mov dword [ebp - 0x2e0], ecx
mov ecx, dword [0x53865c]
mov dword [ebp - 0x2dc], edx
mov edx, dword [0x538660]
mov dword [ebp - 0x2d8], ecx
mov ecx, dword [0x538664]
mov dword [ebp - 0x2d4], edx
mov edx, dword [0x538668]
mov dword [ebp - 0x2d0], ecx
mov ecx, dword [0x5385ec]
mov dword [ebp - 0x2cc], edx
mov edx, dword [0x5385f0]
mov dword [ebp - 0x2c8], ecx
mov ecx, dword [0x5385f4]
mov dword [ebp - 0x2c4], edx
mov edx, dword [0x5385f8]
mov dword [ebp - 0x2c0], ecx
mov ecx, dword [0x53867c]
mov dword [ebp - 0x2bc], edx
mov edx, dword [0x538680]
mov dword [ebp - 0x2b8], ecx
mov ecx, dword [0x538684]
mov dword [ebp - 0x2b4], edx
mov edx, dword [0x538688]
mov dword [ebp - 0x2b0], ecx
mov ecx, dword [0x53869c]
mov dword [ebp - 0x2ac], edx
mov edx, dword [0x5386a0]
mov dword [ebp - 0x2a8], ecx
mov ecx, dword [0x5386a4]
mov dword [ebp - 0x2a4], edx
mov edx, dword [0x5386a8]
mov dword [ebp - 0x2a0], ecx
mov ecx, dword [0x53866c]
mov dword [ebp - 0x29c], edx
mov edx, dword [0x538670]
mov dword [ebp - 0x298], ecx
mov ecx, dword [0x538674]
mov dword [ebp - 0x294], edx
mov edx, dword [0x538678]
mov dword [ebp - 0x290], ecx
mov ecx, dword [0x5385fc]
mov dword [ebp - 0x28c], edx
mov edx, dword [0x538600]
mov dword [ebp - 0x288], ecx
mov ecx, dword [0x538604]
mov dword [ebp - 0x284], edx
mov edx, dword [0x538608]
mov dword [ebp - 0x280], ecx
mov ecx, dword [0x5385dc]
mov dword [ebp - 0x27c], edx
mov edx, dword [0x5385e0]
mov dword [ebp - 0x278], ecx
mov ecx, dword [0x5385e4]
mov dword [ebp - 0x274], edx
mov edx, dword [0x5385e8]
mov dword [ebp - 0x270], ecx
mov ecx, dword [0x53861c]
mov dword [ebp - 0x26c], edx
mov edx, dword [0x538620]
mov dword [ebp - 0x268], ecx
mov ecx, dword [0x538624]
mov dword [ebp - 0x264], edx
mov edx, dword [0x538628]
mov dword [ebp - 0x260], ecx
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x3c4], ecx
xor edi, edi
jmp 0x424726
mov eax, dword [ebp - 0x3bc]
mov dword [ebp - 0x3c0], edi
cmp eax, edi
je 0x4247d0
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [ebp - 0x3c0]
push ecx
mov ecx, dword [ebp - 0x3c4]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x3c0]
cmp eax, edi
je 0x4247ba
lea edx, [ebp - 0x3c8]
push edx
mov dword [ebp - 0x3c8], edi
mov ecx, dword [eax]
push 0x8000
push eax
mov eax, dword [ecx + 0x18]
call eax
mov edx, dword [ebp - 0x3c8]
cmp edx, edi
je 0x4247ac
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424780
mov ecx, dword [ebp + ebx*4 - 0x408]
sub eax, edi
sar eax, 1
push eax
push edx
call fcn.00404bd5
mov ecx, dword [ebp - 0x3c8]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor edi, edi
mov eax, dword [ebp - 0x3c0]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
add dword [ebp - 0x3c4], 0x10
inc ebx
cmp ebx, 0xf
jb 0x424720
jmp 0x424344
push 0x80004003
call fcn.00516e20
mov edx, dword [edi]
mov dword [ebx], edx
mov dword [edi], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [ebx + 0x14], ecx
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], dx
mov edi, 8
cmp dword [ebp - 0x388], edi
jb 0x42481b
mov eax, dword [ebp - 0x39c]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x388], 7
mov dword [ebp - 0x38c], 0
mov word [ebp - 0x39c], cx
cmp dword [ebp - 0x350], edi
jb 0x424853
mov edx, dword [ebp - 0x364]
push edx
call fcn.004f77ab
add esp, 4
push 5
xor eax, eax
mov ebx, 7
xor edi, edi
push str.Panel
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x388], ebx
mov dword [ebp - 0x38c], edi
mov word [ebp - 0x39c], ax
call fcn.00404bd5
mov byte [ebp - 4], 4
xor ecx, ecx
push 6
mov word [ebp - 0x364], cx
push 0x53ff8c
lea ecx, [ebp - 0x364]
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x354], edi
call fcn.00404bd5
lea ebx, [ebp - 0x364]
lea ecx, [esi + 0x1c]
lea edi, [ebp - 0x380]
mov byte [ebp - 4], 5
call fcn.00424f20
lea ebx, [ebp - 0x39c]
mov ecx, eax
lea edi, [ebp - 0x3b8]
mov byte [ebp - 4], 6
call fcn.00424f20
mov edi, eax
lea ebx, [esi + 0x1dc]
cmp ebx, edi
je 0x424949
cmp dword [ebx + 0x14], 8
jb 0x4248f8
mov eax, dword [ebx]
push eax
call fcn.004f77ab
add esp, 4
xor edx, edx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], dx
cmp dword [edi + 0x14], 8
jae 0x424924
mov eax, dword [edi + 0x10]
inc eax
add eax, eax
push eax
push edi
push ebx
call fcn.004f6f30
add esp, 0xc
jmp 0x42492a
mov ecx, dword [edi]
mov dword [ebx], ecx
mov dword [edi], edx
mov edx, dword [edi + 0x10]
mov dword [ebx + 0x10], edx
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
mov edi, 8
cmp dword [ebp - 0x3a4], edi
jb 0x424965
mov edx, dword [ebp - 0x3b8]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
mov ebx, 7
mov dword [ebp - 0x3a4], ebx
mov dword [ebp - 0x3a8], 0
mov word [ebp - 0x3b8], ax
cmp dword [ebp - 0x36c], edi
jb 0x42499a
mov ecx, dword [ebp - 0x380]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
mov dword [ebp - 0x36c], ebx
mov dword [ebp - 0x370], 0
mov word [ebp - 0x380], dx
cmp dword [ebp - 0x350], edi
jb 0x4249ca
mov eax, dword [ebp - 0x364]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x354], 0
mov word [ebp - 0x364], cx
cmp dword [ebp - 0x388], edi
jb 0x4249fe
mov edx, dword [ebp - 0x39c]
push edx
call fcn.004f77ab
add esp, 4
lea eax, [ebp - 0x380]
push str.Kometa
push eax
lea ebx, [esi + 0x1c]
call fcn.00405c6f
add esp, 8
mov ebx, eax
lea edi, [esi + 0x1f8]
cmp edi, ebx
je 0x424a84
cmp dword [edi + 0x14], 8
jb 0x424a32
mov eax, dword [edi]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
cmp dword [ebx + 0x14], 8
jae 0x424a5f
mov eax, dword [ebx + 0x10]
lea edx, [eax + eax + 2]
push edx
push ebx
push edi
call fcn.004f6f30
add esp, 0xc
jmp 0x424a65
mov eax, dword [ebx]
mov dword [edi], eax
mov dword [ebx], ecx
mov ecx, dword [ebx + 0x10]
mov dword [edi + 0x10], ecx
mov edx, dword [ebx + 0x14]
mov dword [edi + 0x14], edx
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x36c], 8
jb 0x424aa0
mov ecx, dword [ebp - 0x380]
push ecx
call fcn.004f77ab
add esp, 4
lea edx, [ebp - 0x380]
push str.Application
push edx
lea ebx, [esi + 0x1f8]
call fcn.00405c6f
add esp, 8
mov ebx, eax
lea edi, [esi + 0x214]
cmp edi, ebx
je 0x424b29
cmp dword [edi + 0x14], 8
jb 0x424ad7
mov eax, dword [edi]
push eax
call fcn.004f77ab
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [ebx + 0x14], 8
jae 0x424b04
mov eax, dword [ebx + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push edi
call fcn.004f6f30
add esp, 0xc
jmp 0x424b0a
mov edx, dword [ebx]
mov dword [edi], edx
mov dword [ebx], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
mov ecx, dword [ebx + 0x14]
mov dword [edi + 0x14], ecx
xor edx, edx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], dx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x36c], 8
jb 0x424b45
mov eax, dword [ebp - 0x380]
push eax
call fcn.004f77ab
add esp, 4
lea ecx, [ebp - 0x380]
push str.User_Data
push ecx
lea ebx, [esi + 0x1f8]
call fcn.00405c6f
add esp, 8
mov ebx, eax
lea edi, [esi + 0x230]
cmp edi, ebx
je 0x424bcd
cmp dword [edi + 0x14], 8
jb 0x424b7c
mov eax, dword [edi]
push eax
call fcn.004f77ab
add esp, 4
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], dx
cmp dword [ebx + 0x14], 8
jae 0x424ba8
mov eax, dword [ebx + 0x10]
inc eax
add eax, eax
push eax
push ebx
push edi
call fcn.004f6f30
add esp, 0xc
jmp 0x424bae
mov ecx, dword [ebx]
mov dword [edi], ecx
mov dword [ebx], edx
mov edx, dword [ebx + 0x10]
mov dword [edi + 0x10], edx
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], cx
cmp dword [ebp - 0x36c], 8
jb 0x424be5
mov edx, dword [ebp - 0x380]
push edx
call fcn.004f77ab
add esp, 4
mov edi, dword [0x57225c]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3bc]
mov dword [0x57225c], esi
mov dword [ebp - 0x3cc], edi
test eax, eax
je 0x424c0d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test edi, edi
je 0x424c21
mov esi, edi
call fcn.00423cb0
push edi
call fcn.004f77ab
add esp, 4
movzx eax, byte [0x56f9c9]
neg eax
sbb eax, eax
and eax, dword [0x57225c]
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.004f6bad
mov esp, ebp
pop ebp
ret