Function at 0x4e3040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2e96
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x61ce74]
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, dword [ebp + 8]
lea ecx, [ebp - 0x29d]
mov dword [ebp - 0x2a8], edi
mov dword [ebp - 0x2a4], 0
call fcn.004e2b20
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00540d70
lea eax, [ebp - 0x284]
push eax
call fcn.004e1910
mov esi, eax
xor eax, eax
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
push 0x40
mov byte [ebp - 4], 3
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
call fcn.0042fbc0
add esp, 0x14
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 4
cmp eax, esi
je 0x4e313d
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4e312e
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x254]
push eax
call fcn.00439df0
push 1
push 0x5b14ac
lea ecx, [ebp - 0x254]
call fcn.00439c70
push 0x10
push str.cfgsproduct.dat
mov ecx, eax
call fcn.00439c70
lea eax, [ebp - 0x23c]
cmp eax, esi
je 0x4e3180
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4e3171
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x23c]
push eax
call fcn.00439df0
push 1
push 0x5b14ac
lea ecx, [ebp - 0x23c]
call fcn.00439c70
push 0xc
push str.cfgsoem.ini
mov ecx, eax
call fcn.00439c70
push 0x24
call fcn.0042fbc0
add esp, 4
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x4e31c2
push esi
mov ecx, eax
call fcn.00461fe0
jmp 0x4e31c4
xor eax, eax
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x270]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x4e320e
mov ecx, dword [ebp - 0x284]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e3204
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e34c3
push edx
push ecx
call fcn.0053d0af
add esp, 8
xor eax, eax
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], ax
cmp byte [0x62a3fc], al
jne 0x4e32f2
push 0x23
push str.Support_GetWinSpecialFoldersFromReg
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
call fcn.00439df0
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x2a4], 1
push eax
lea ecx, [ebp - 0x254]
call fcn.0043e2e0
cmp dword [ebp - 0x288], 8
lea eax, [ebp - 0x29c]
push str.true
cmovae eax, dword [ebp - 0x29c]
push eax
call fcn.0054b581
mov edx, dword [ebp - 0x288]
add esp, 8
test eax, eax
sete bl
cmp edx, 8
jb 0x4e32ee
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e32e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e34c8
push edx
push ecx
call fcn.0053d0af
add esp, 8
test bl, bl
je 0x4e32f4
mov bl, 1
test byte [ebp - 0x2a4], 1
mov dword [ebp - 4], 7
je 0x4e3344
mov edx, dword [ebp - 0x258]
cmp edx, 8
jb 0x4e3344
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e333a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e34cd
push edx
push ecx
call fcn.0053d0af
add esp, 8
lea eax, [ebp - 0x218]
test bl, bl
je 0x4e3367
push 0xa
push 0xffffffffffffffff
push 0
push 0x104
push eax
push dword [ebp + 0xc]
call fcn.004e2d20
add esp, 0x18
jmp 0x4e3375
push 0
push dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x218]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3391
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00439df0
lea ecx, [ebp - 0x254]
call fcn.0043d560
mov eax, dword [ebp - 0x224]
push dword [eax + 4]
lea eax, [ebp - 0x224]
push eax
mov ecx, eax
call fcn.0043b040
push 0x40
push dword [ebp - 0x224]
call fcn.0053d0af
mov edx, dword [ebp - 0x228]
add esp, 8
cmp edx, 8
jb 0x4e3421
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e3417
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e34d2
push edx
push ecx
call fcn.0053d0af
add esp, 8
mov edx, dword [ebp - 0x240]
xor eax, eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
cmp edx, 8
jb 0x4e347a
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e3470
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e34d2
push edx
push ecx
call fcn.0053d0af
add esp, 8
xor eax, eax
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
cmp byte [ebp - 0x29d], al
je 0x4e34a5
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, edi
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.0053d079
mov esp, ebp
pop ebp
ret
call fcn.0054b0c3
call fcn.0054b0c3
call fcn.0054b0c3
call fcn.0054b0c3
int3