Function at 0x1004ade0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10078dc3
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x1009e034]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x2f8]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
xor eax, eax
push 0x206
push eax
mov word [esp + 0xec], ax
lea eax, [esp + 0xee]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0xe4]
push eax
push 1
push 0
push 0x14
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1004b2b5
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
push 0x80000002
lea ecx, [esp + 0xb8]
mov dword [esp + 0xb8], 0
call fcn.1005c350
mov dword [esp + 0x300], 0
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
call fcn.1005cdf0
mov byte [esp + 0x300], 1
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
lea ebx, [ebx]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x1004b227
cmp dword [esp + 0x64], 0
jl 0x1004b21c
mov edx, dword [esp + 0x80]
xor eax, eax
cmp edx, dword [esp + 0x84]
mov dword [esp + 0x5c], 7
cmove edx, eax
mov dword [esp + 0x58], eax
mov word [esp + 0x48], ax
cmp word [edx], ax
jne 0x1004af24
xor ecx, ecx
jmp 0x1004af3f
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004af30
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.10003de0
mov byte [esp + 0x300], 2
cmp dword [esp + 0x58], 0
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
jne 0x1004b00f
cmp dword [esp + 0x7c], 8
lea edx, [esp + 0x68]
cmovae edx, dword [esp + 0x68]
xor eax, eax
mov word [esp + 0x18], ax
cmp word [edx], ax
jne 0x1004af8b
xor ecx, ecx
jmp 0x1004af9f
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004af90
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.10003de0
mov byte [esp + 0x300], 3
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0xb0]
push eax
push ecx
mov ecx, ebx
call fcn.1004bcb0
cmp dword [esp + 0x2c], 8
jb 0x1004afe1
push dword [esp + 0x18]
call esi
add esp, 4
mov byte [esp + 0x300], 1
cmp dword [esp + 0x5c], 8
jb 0x1004b074
push dword [esp + 0x48]
call esi
dec dword [esp + 0x68]
add esp, 4
lea ecx, [esp + 0x60]
call fcn.1005cfb0
jmp 0x1004aee0
xor eax, eax
push eax
push 0x1007d0cc
lea ecx, [esp + 0x20]
mov word [esp + 0x20], ax
call fcn.10003de0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x48]
mov byte [esp + 0x300], 4
call fcn.10048b80
mov byte [esp + 0x300], 2
cmp dword [esp + 0x2c], 8
mov bl, al
jb 0x1004b054
push dword [esp + 0x18]
call esi
add esp, 4
test bl, bl
je 0x1004b086
mov byte [esp + 0x300], 1
cmp dword [esp + 0x5c], 8
jb 0x1004b070
push dword [esp + 0x48]
call esi
add esp, 4
mov ebx, dword [esp + 0x14]
dec dword [esp + 0x64]
lea ecx, [esp + 0x60]
call fcn.1005cfb0
jmp 0x1004aee0
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
cmp word [esp + 0xe4], ax
jne 0x1004b0ab
xor ecx, ecx
jmp 0x1004b0c4
lea ecx, [esp + 0xe4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004b0b5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x20]
call fcn.10003de0
mov byte [esp + 0x300], 5
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
cmovae eax, dword [esp + 0x48]
push eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x98]
call fcn.10058b60
add esp, 4
mov byte [esp + 0x300], 7
cmp dword [esp + 0x2c], 8
jb 0x1004b118
push dword [esp + 0x18]
call esi
add esp, 4
xor eax, eax
push eax
push 0x1007d0cc
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
call fcn.10003de0
lea edx, [esp + 0x30]
lea ecx, [esp + 0x94]
mov byte [esp + 0x300], 8
call fcn.10048b80
test al, al
sete bl
mov byte [esp + 0x300], 7
cmp dword [esp + 0x44], 8
jb 0x1004b184
push dword [esp + 0x30]
call esi
add esp, 4
test bl, bl
je 0x1004b1dd
cmp dword [esp + 0x7c], 8
lea eax, [esp + 0x68]
cmovae eax, dword [esp + 0x68]
push eax
lea ecx, [esp + 0x34]
call fcn.10008e70
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x300], 9
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push eax
lea eax, [esp + 0xb0]
push eax
push ecx
mov ecx, ebx
call fcn.1004bcb0
cmp dword [esp + 0x44], 8
jb 0x1004b1e1
push dword [esp + 0x30]
call esi
add esp, 4
jmp 0x1004b1e1
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0xa8], 8
jb 0x1004b1f7
push dword [esp + 0x94]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
jmp 0x1004afe1
test eax, eax
je 0x1004b227
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x1004b259
push eax
call esi
add esp, 4
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
cmp dword [esp + 0x7c], 8
jb 0x1004b269
push dword [esp + 0x68]
call esi
add esp, 4
cmp dword [esp + 0xe0], 8
jb 0x1004b27f
push dword [esp + 0xcc]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0xc4], 8
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], 0
mov word [esp + 0xcc], ax
jb 0x1004b2b5
push dword [esp + 0xb0]
call esi
add esp, 4
mov ecx, dword [esp + 0x2f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret