Function at 0x4186c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afb4e
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x4d8c20]
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
xor esi, esi
cmp dword [0x4de424], esi
jne 0x41903b
push 0x1a4
call fcn.00475e26
add esp, 4
cmp eax, esi
je 0x41871c
call fcn.00419060
mov ebx, eax
mov dword [ebp - 0x330], ebx
jmp 0x418724
mov dword [ebp - 0x330], esi
mov ebx, esi
mov dword [ebp - 0x344], ebx
mov dword [ebp - 4], esi
cmp ebx, esi
jne 0x418738
xor eax, eax
jmp 0x419040
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [ebx + 0x70]
mov dword [ebp - 0x2e8], edx
lea edx, [ebx + 0xc4]
mov dword [ebp - 0x2dc], edx
lea eax, [ebx + 0x1c]
mov dword [ebp - 0x2f4], eax
lea edx, [ebp - 0x334]
push edx
push 0x4bf500
lea eax, [ebx + 0x38]
lea ecx, [ebx + 0x8c]
mov dword [ebp - 0x2f0], eax
mov dword [ebp - 0x2ec], ecx
push 1
lea eax, [ebx + 0x54]
lea ecx, [ebx + 0xa8]
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e0], ecx
push esi
lea eax, [ebx + 0xfc]
lea ecx, [ebx + 0xe0]
push 0x4b491c
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 0x334], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x334]
cmp eax, esi
jne 0x4188a9
mov eax, 0x1c
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], 5
mov dword [ebp - 0x234], 0x28
mov dword [ebp - 0x230], 0x14
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], 0x1a
mov dword [ebp - 0x224], 0x21
mov dword [ebp - 0x220], 0xb
xor edi, edi
jmp 0x418832
xor esi, esi
push 0x208
lea ecx, [ebp - 0x21a]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x21c], ax
call fcn.0047f860
mov eax, dword [ebp + edi - 0x240]
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push esi
push esi
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41889c
mov ecx, dword [ebp + edi - 0x2f4]
lea eax, [ebp - 0x21c]
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x418880
sub eax, esi
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
call fcn.00404447
add edi, 4
cmp edi, 0x24
jb 0x418830
jmp 0x418b18
mov ecx, dword [0x4b48cc]
mov edx, dword [0x4b48d0]
mov dword [ebp - 0x2d0], ecx
mov ecx, dword [0x4b48d4]
mov dword [ebp - 0x2cc], edx
mov edx, dword [0x4b48d8]
mov dword [ebp - 0x2c8], ecx
mov ecx, dword [0x4b48dc]
mov dword [ebp - 0x2c4], edx
mov edx, dword [0x4b48e0]
mov dword [ebp - 0x2c0], ecx
mov ecx, dword [0x4b48e4]
mov dword [ebp - 0x2bc], edx
mov edx, dword [0x4b48e8]
mov dword [ebp - 0x2b8], ecx
mov ecx, dword [0x4b48ac]
mov dword [ebp - 0x2b4], edx
mov edx, dword [0x4b48b0]
mov dword [ebp - 0x2b0], ecx
mov ecx, dword [0x4b48b4]
mov dword [ebp - 0x2ac], edx
mov edx, dword [0x4b48b8]
mov dword [ebp - 0x2a8], ecx
mov ecx, dword [0x4b48fc]
mov dword [ebp - 0x2a4], edx
mov edx, dword [0x4b4900]
mov dword [ebp - 0x2a0], ecx
mov ecx, dword [0x4b4904]
mov dword [ebp - 0x29c], edx
mov edx, dword [0x4b4908]
mov dword [ebp - 0x298], ecx
mov ecx, dword [0x4b487c]
mov dword [ebp - 0x294], edx
mov edx, dword [0x4b4880]
mov dword [ebp - 0x290], ecx
mov ecx, dword [0x4b4884]
mov dword [ebp - 0x28c], edx
mov edx, dword [0x4b4888]
mov dword [ebp - 0x288], ecx
mov ecx, dword [0x4b488c]
mov dword [ebp - 0x284], edx
mov edx, dword [0x4b4890]
mov dword [ebp - 0x280], ecx
mov ecx, dword [0x4b4894]
mov dword [ebp - 0x27c], edx
mov edx, dword [0x4b4898]
mov dword [ebp - 0x278], ecx
mov ecx, dword [0x4b48bc]
mov dword [ebp - 0x274], edx
mov edx, dword [0x4b48c0]
mov dword [ebp - 0x270], ecx
mov ecx, dword [0x4b48c4]
mov dword [ebp - 0x26c], edx
mov edx, dword [0x4b48c8]
mov dword [ebp - 0x268], ecx
mov ecx, dword [0x4b48ec]
mov dword [ebp - 0x264], edx
mov edx, dword [0x4b48f0]
mov dword [ebp - 0x260], ecx
mov ecx, dword [0x4b48f4]
mov dword [ebp - 0x25c], edx
mov edx, dword [0x4b48f8]
mov dword [ebp - 0x258], ecx
mov ecx, dword [0x4b489c]
mov dword [ebp - 0x254], edx
mov edx, dword [0x4b48a0]
mov dword [ebp - 0x250], ecx
mov ecx, dword [0x4b48a4]
mov dword [ebp - 0x24c], edx
mov edx, dword [0x4b48a8]
mov dword [ebp - 0x248], ecx
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x338], ecx
jmp 0x418a70
lea ecx, [ebp - 0x33c]
push ecx
mov ecx, dword [ebp - 0x338]
xor edi, edi
mov dword [ebp - 0x33c], edi
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x33c]
cmp eax, edi
je 0x418af9
lea edx, [ebp - 0x340]
push edx
mov dword [ebp - 0x340], edi
mov ecx, dword [eax]
push 0x8000
push eax
mov eax, dword [ecx + 0x18]
call eax
mov edx, dword [ebp - 0x340]
cmp edx, edi
je 0x418aeb
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418ac1
mov ecx, dword [ebp + esi*4 - 0x2f4]
sub eax, edi
sar eax, 1
push eax
push edx
call fcn.00404447
mov ecx, dword [ebp - 0x340]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x33c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
add dword [ebp - 0x338], 0x10
mov eax, dword [ebp - 0x334]
inc esi
cmp esi, 9
jb 0x418a70
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.0047f860
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418b51
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
call fcn.00404447
xor ecx, ecx
push 0xa
mov word [ebp - 0x310], cx
mov esi, 7
push str.NetBoxLogs
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x2fc], esi
mov dword [ebp - 0x300], 0
call fcn.00404447
lea eax, [ebx + 0x1c]
push eax
lea ebx, [ebp - 0x310]
lea edi, [ebp - 0x32c]
mov byte [ebp - 4], 1
call fcn.00419220
add esp, 4
mov edi, eax
mov ebx, dword [ebp - 0x330]
add ebx, 0x118
cmp ebx, edi
je 0x418c27
cmp dword [ebx + 0x14], 8
jb 0x418bde
mov eax, dword [ebx]
push eax
call fcn.00475dcb
add esp, 4
xor edx, edx
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], 0
mov word [ebx], dx
cmp dword [edi + 0x14], 8
jae 0x418c06
mov eax, dword [edi + 0x10]
inc eax
add eax, eax
push eax
push edi
push ebx
call fcn.00475550
add esp, 0xc
jmp 0x418c0c
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], esi
mov dword [edi + 0x10], 0
mov word [edi], cx
cmp dword [ebp - 0x318], 8
jb 0x418c3f
mov edx, dword [ebp - 0x32c]
push edx
call fcn.00475dcb
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x2fc], 8
mov dword [ebp - 0x318], esi
mov dword [ebp - 0x31c], 0
mov word [ebp - 0x32c], ax
jb 0x418c73
mov ecx, dword [ebp - 0x310]
push ecx
call fcn.00475dcb
add esp, 4
push 5
xor edx, edx
push str.Panel
lea ecx, [ebp - 0x32c]
mov dword [ebp - 0x318], esi
mov dword [ebp - 0x31c], 0
mov word [ebp - 0x32c], dx
call fcn.00404447
mov byte [ebp - 4], 3
push 6
xor eax, eax
push 0x4b9414
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x2fc], esi
mov dword [ebp - 0x300], 0
mov word [ebp - 0x310], ax
call fcn.00404447
mov eax, dword [ebp - 0x330]
add eax, 0x1c
push eax
lea ebx, [ebp - 0x310]
lea edi, [ebp - 0x2ec]
mov byte [ebp - 4], 4
call fcn.00419220
push eax
lea ebx, [ebp - 0x32c]
lea edi, [ebp - 0x238]
mov byte [ebp - 4], 5
call fcn.00419220
add esp, 8
mov edi, eax
mov ebx, dword [ebp - 0x330]
add ebx, 0x134
cmp ebx, edi
je 0x418d72
cmp dword [ebx + 0x14], 8
jb 0x418d28
mov eax, dword [ebx]
push eax
call fcn.00475dcb
add esp, 4
xor ecx, ecx
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], 0
mov word [ebx], cx
cmp dword [edi + 0x14], 8
jae 0x418d51
mov eax, dword [edi + 0x10]
lea edx, [eax + eax + 2]
push edx
push edi
push ebx
call fcn.00475550
add esp, 0xc
jmp 0x418d57
mov eax, dword [edi]
mov dword [ebx], eax
mov dword [edi], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebx + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [ebx + 0x14], edx
xor eax, eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [ebp - 0x224], 8
jb 0x418d8a
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00475dcb
add esp, 4
xor edx, edx
cmp dword [ebp - 0x2d8], 8
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], dx
jb 0x418dbb
mov eax, dword [ebp - 0x2ec]
push eax
call fcn.00475dcb
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x2fc], 8
mov dword [ebp - 0x2d8], esi
mov dword [ebp - 0x2dc], 0
mov word [ebp - 0x2ec], cx
jb 0x418dec
mov edx, dword [ebp - 0x310]
push edx
call fcn.00475dcb
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x318], 8
mov dword [ebp - 0x2fc], esi
mov dword [ebp - 0x300], 0
mov word [ebp - 0x310], ax
jb 0x418e20
mov ecx, dword [ebp - 0x32c]
push ecx
call fcn.00475dcb
add esp, 4
mov ebx, dword [ebp - 0x330]
lea edx, [ebp - 0x2ec]
push str.Kometa
push edx
add ebx, 0x1c
call fcn.004054c5
add esp, 8
mov edi, eax
mov esi, dword [ebp - 0x330]
add esi, 0x150
cmp esi, edi
je 0x418eae
cmp dword [esi + 0x14], 8
jb 0x418e60
mov eax, dword [esi]
push eax
call fcn.00475dcb
add esp, 4
xor ebx, ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
cmp dword [edi + 0x14], 8
jae 0x418e8b
mov eax, dword [edi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push edi
push esi
call fcn.00475550
add esp, 0xc
jmp 0x418e91
mov edx, dword [edi]
mov dword [esi], edx
mov dword [edi], ebx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], dx
jmp 0x418eb0
xor ebx, ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x2d8], 8
jb 0x418ecb
mov eax, dword [ebp - 0x2ec]
push eax
call fcn.00475dcb
add esp, 4
lea ecx, [ebp - 0x2ec]
push str.Application
push ecx
mov ebx, esi
call fcn.004054c5
add esp, 8
mov edi, eax
mov ebx, dword [ebp - 0x330]
add ebx, 0x16c
cmp ebx, edi
je 0x418f55
cmp dword [ebx + 0x14], 8
jb 0x418f04
mov eax, dword [ebx]
push eax
call fcn.00475dcb
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 0x418f30
mov eax, dword [edi + 0x10]
inc eax
add eax, eax
push eax
push edi
push ebx
call fcn.00475550
add esp, 0xc
jmp 0x418f36
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 byte [ebp - 4], 0
cmp dword [ebp - 0x2d8], 8
jb 0x418f71
mov edx, dword [ebp - 0x2ec]
push edx
call fcn.00475dcb
add esp, 4
lea eax, [ebp - 0x2ec]
push str.User_Data
push eax
mov ebx, esi
call fcn.004054c5
add esp, 8
mov edi, eax
mov ebx, dword [ebp - 0x330]
add ebx, 0x188
cmp ebx, edi
je 0x418ffd
cmp dword [ebx + 0x14], 8
jb 0x418faa
mov ecx, dword [ebx]
push ecx
call fcn.00475dcb
add esp, 4
mov esi, 7
xor edx, edx
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], 0
mov word [ebx], dx
cmp dword [edi + 0x14], 8
jae 0x418fd8
mov eax, dword [edi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push edi
push ebx
call fcn.00475550
add esp, 0xc
jmp 0x418fe2
mov edx, dword [edi]
mov dword [ebx], edx
mov dword [edi], 0
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], esi
mov dword [edi + 0x10], 0
mov word [edi], dx
cmp dword [ebp - 0x2d8], 8
jb 0x419015
mov eax, dword [ebp - 0x2ec]
push eax
call fcn.00475dcb
add esp, 4
mov edi, dword [0x4de424]
mov ecx, dword [ebp - 0x330]
mov dword [0x4de424], ecx
test edi, edi
je 0x41903b
mov esi, edi
call fcn.0041e340
push edi
call fcn.00475dcb
add esp, 4
mov eax, 1
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.004751dc
mov esp, ebp
pop ebp
ret