Function at 0x6ed360
Capabilities:
Check os version
Get common file path
Get file version info
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x88daf6
push eax
mov eax, dword [0x9deb98]
mov dword fs:[0], esp
sub esp, 0x348
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
jne 0x6ed82b
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push ebp
push edi
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x40]
mov dword [esp + 0x3c], 0x114
mov dword [0x9deb98], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push eax
call esi
test eax, eax
je 0x6ed46d
lea ecx, [esp + 0x44]
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.006ed870
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov dword [0x9deba0], eax
mov eax, dword [esp + 0x54]
add esp, 8
cmp eax, 2
mov dword [0x9deb9c], ecx
mov dword [0x9deba4], edx
mov dword [0x9deba8], eax
jne 0x6ed46d
cmp ecx, 4
jb 0x6ed46d
mov ecx, 0x46
xor eax, eax
lea edi, [esp + 0x154]
mov dword [esp + 0x150], 0x11c
rep stosd dword es:[edi], eax
lea eax, [esp + 0x150]
push eax
call esi
test eax, eax
je 0x6ed46d
mov cx, word [esp + 0x264]
mov dx, word [esp + 0x266]
mov ax, word [esp + 0x26a]
mov word [0x9decac], cx
mov cx, word [esp + 0x268]
mov word [0x9decae], dx
mov byte [0x9decb2], al
mov word [0x9decb0], cx
mov byte [0x9decb3], ah
push 0x104
push 0x9decb4
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x9decb4
call fcn.005fc40b
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 4
test eax, eax
jbe 0x6ed648
push 0x9decb4
push 0x9deebc
call fcn.005fc492
push 0x5c
push 0x9deebc
call fcn.005fc428
add esp, 0x10
cmp eax, ebx
je 0x6ed4c3
mov word [eax], bx
push 0x9deebc
call fcn.005fc40b
add esp, 4
test eax, eax
jbe 0x6ed648
push 0x9deebc
push 0x9df4d4
call fcn.005fc492
push 0x5c
push 0x9df4d4
call fcn.005fc428
add esp, 0x10
cmp eax, ebx
je 0x6ed4fd
mov word [eax], bx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push edx
push 0x20019
push ebx
push 0x92eebc
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x6ed5e4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x6ed5e4
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push ebx
push edx
push ebx
push str.ProgramFilesDir
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call edi
test eax, eax
mov esi, 0x102
jne 0x6ed587
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x6ed569
cmp eax, 2
je 0x6ed569
cmp eax, 6
je 0x6ed569
cmp eax, 7
jne 0x6ed587
cmp dword [esp + 0x18], esi
ja 0x6ed587
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x9df0c4
push ebx
push ebx
push str.ProgramFilesDir
push ecx
call edi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push 0x92ee9c
push ecx
call edi
test eax, eax
jne 0x6ed5d9
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x6ed5bb
cmp eax, 2
je 0x6ed5bb
cmp eax, 6
je 0x6ed5bb
cmp eax, 7
jne 0x6ed5d9
cmp dword [esp + 0x18], esi
ja 0x6ed5d9
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x9df2cc
push ebx
push ebx
push 0x92ee9c
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x9df0c4
call fcn.005fc40b
add esp, 4
test eax, eax
jne 0x6ed616
push 0x9df4d4
push 0x9df0c4
call fcn.005fc492
push str.Program_Files
push 0x9df0c4
call fcn.005fc468
add esp, 0x10
push 0x9df2cc
call fcn.005fc40b
add esp, 4
test eax, eax
jne 0x6ed648
push 0x9df0c4
push 0x9df2cc
call fcn.005fc492
push str.Common_Files
push 0x9df2cc
call fcn.005fc468
add esp, 0x10
xor esi, esi
mov dword [esp + 0x14], esi
mov edx, dword [0x98b454]
mov dword [esp + 0x360], ebx
mov dword [esp + 0x20], edx
lea eax, [esp + 0x10]
mov byte [esp + 0x360], 1
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlNlsLanguage
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call ebp
cmp eax, ebx
jne 0x6ed6f0
xor ecx, ecx
mov esi, dword [esp + 0x10]
mov dword [esp + 0x26], ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x2a], ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x2e], ecx
push edx
mov dword [esp + 0x36], ecx
push eax
mov dword [esp + 0x3e], ecx
lea ecx, [esp + 0x18]
push ecx
push ebx
push str.InstallLanguage
push esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], 0xa
mov word [esp + 0x3c], bx
mov dword [esp + 0x28], ebx
call edi
cmp eax, ebx
jne 0x6ed6df
lea edx, [esp + 0x24]
lea ecx, [esp + 0x20]
push edx
call fcn.00832082
cmp esi, ebx
je 0x6ed6f0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x20]
cmp dword [eax - 8], ebx
jle 0x6ed711
push 0x9df6dc
push 0x946268
push eax
call fcn.005fc68e
add esp, 0xc
jmp 0x6ed80e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x152]
mov word [esp + 0x150], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x9decb4
lea eax, [esp + 0x154]
push str._suser.exe
push eax
call fcn.005fe023
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x150]
mov dword [esp + 0x18], ebx
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
push eax
mov dword [esp + 0x14], eax
call fcn.008325b4
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x6ed80e
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
lea edx, [esp + 0x154]
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x6ed805
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push str.VarFileInfoTranslation
push ebp
mov dword [esp + 0x2c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x6ed805
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov ax, word [edx]
mov word [0x9df6dc], ax
mov edx, dword [0x9df6dc]
mov eax, 0x997ea2
mov di, word [eax + 2]
and edi, edx
cmp di, word [eax]
je 0x6ed7f3
add eax, 6
inc ecx
cmp eax, 0x997f3e
jb 0x6ed7db
jmp 0x6ed805
lea ecx, [ecx + ecx*2]
mov dx, word [ecx*2 + 0x997ea0]
mov word [0x9df6dc], dx
push ebp
call fcn.008325dd
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x360], bl
call fcn.00831eeb
pop edi
cmp esi, ebx
pop ebp
je 0x6ed82b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x350]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x354
ret