Function at 0x482c20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a9a90
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d9114]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, 0x400
push 0x800
mov dword [esp + 0x20], 0x54f
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
mov byte [esp + 0x3c], 1
call fcn.00488f5f
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
cmp edi, ebx
je 0x482c89
push 0x800
push ebx
push edi
call fcn.00489de0
add esp, 0xc
mov dword [esp + 0x30], edi
mov dword [esp + 0x68], ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x800
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], esi
mov byte [esp + 0x60], 1
call fcn.00488f5f
mov ebp, eax
add esp, 4
mov dword [esp + 0x24], ebp
cmp ebp, ebx
je 0x482ccc
push 0x800
push ebx
push ebp
call fcn.00489de0
add esp, 0xc
mov dword [esp + 0x54], ebp
mov byte [esp + 0x68], 1
push 0x800
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], esi
mov byte [esp + 0x54], 1
call fcn.00488f5f
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x482d04
push 0x800
push ebx
push edi
call fcn.00489de0
add esp, 0xc
mov dword [esp + 0x48], edi
mov byte [esp + 0x68], 2
push 0x800
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], esi
mov byte [esp + 0x48], 1
call fcn.00488f5f
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x482d3c
push 0x800
push ebx
push esi
call fcn.00489de0
add esp, 0xc
mov dword [esp + 0x3c], esi
mov byte [esp + 0x68], 3
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x20]
push ebp
push eax
push ecx
call fcn.004825a0
mov edx, dword [esp + 0x84]
push esi
push edx
call fcn.00482670
mov eax, dword [esp + 0x8c]
push edi
push eax
call fcn.004826f0
add esp, 0x1c
lea ecx, [esp + 0x28]
call fcn.0041ccc7
mov byte [esp + 0x68], 4
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push ecx
push edx
push ebp
call fcn.00485170
add esp, 0xc
test al, al
je 0x482f63
mov dword [esp + 0x14], ebx
mov byte [esp + 0x68], 5
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x482db9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x482f3a
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push edi
push str.ImagePath
push ecx
call fcn.00485240
mov edx, dword [esp + 0x28]
push ebx
push ebx
push 1
push 0x4bcb80
push edx
call fcn.00485350
mov eax, dword [esp + 0x3c]
push ebx
push ebx
push 1
push str.Start
push eax
call fcn.00485350
mov ecx, dword [esp + 0x50]
push ebx
push ebx
push 1
push str.ErrorControl
push ecx
call fcn.00485350
mov edx, dword [esp + 0x64]
add esp, 0x50
push ebx
push ebx
push str.FSFilter_Content_Screener
push str.Group
push edx
call fcn.00485240
mov eax, dword [esp + 0x28]
push str.FltMgr
push str.DependOnService
push eax
call fcn.00485500
add esp, 0x20
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x68], 6
mov edx, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.Instances
push edx
call ebp
test eax, eax
jne 0x482f1b
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push eax
push str.DefaultInstance
push ecx
call fcn.00485240
add esp, 0x14
mov dword [esp + 0x18], ebx
mov byte [esp + 0x68], 7
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push ecx
call ebp
test eax, eax
jne 0x482efc
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x18]
push ebx
push ebx
push edx
push str.Altitude
push eax
call fcn.00485240
mov ecx, dword [esp + 0x2c]
push ebx
push ebx
push ebx
push str.Flags
push ecx
call fcn.00485350
mov edx, dword [esp + 0x40]
add esp, 0x28
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov byte [esp + 0x68], 6
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x482f1b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov byte [esp + 0x68], 5
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x482f3a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x68], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x482f4e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x78]
push edx
call fcn.00482ab0
mov ebp, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x68], 3
lea ecx, [esp + 0x28]
call fcn.0041ccf6
mov byte [esp + 0x68], 2
cmp esi, ebx
je 0x482f87
push esi
call fcn.00488e42
add esp, 4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x68], 1
cmp edi, ebx
je 0x482fa1
push edi
call fcn.00488e42
add esp, 4
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x68], bl
cmp ebp, ebx
je 0x482fba
push ebp
call fcn.00488e42
add esp, 4
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x482fdb
push eax
call fcn.00488e42
add esp, 4
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret