Function at 0x42c700
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d5c51
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x54d158]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54d158]
xor eax, esp
push eax
lea eax, [esp + 0x838]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x848]
mov esi, ecx
xor edi, edi
push 0x51cd44
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
call fcn.00410140
mov dword [esp + 0x840], edi
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], edi
jne 0x42ca1b
call fcn.0042f480
test eax, eax
je 0x42c8dc
push 0x51d1c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
jne 0x42c79b
push edi
mov ecx, esi
call fcn.00410140
jmp 0x42ca30
push str.SHGetKnownFolderPath
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x42c8d5
mov ecx, dword [esp + 0x84c]
sub ecx, edi
mov dword [esp + 0x18], edi
je 0x42c862
sub ecx, 1
je 0x42c813
sub ecx, 1
jne 0x42c8b5
mov dword [esp + 0x24], 0xf1b32785
mov word [esp + 0x28], 0x6fba
mov word [esp + 0x2a], 0x4fcf
mov byte [esp + 0x2c], 0x9d
mov byte [esp + 0x2d], 0x55
mov byte [esp + 0x2e], 0x7b
mov byte [esp + 0x2f], 0x8e
mov byte [esp + 0x30], 0x7f
mov byte [esp + 0x31], 0x15
mov byte [esp + 0x32], 0x70
mov byte [esp + 0x33], 0x91
jmp 0x42c8a0
mov ecx, dword [ebp + 0x38]
lea edx, [esp + 0x18]
push edx
push ecx
push edi
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0x62ab5d82
mov word [esp + 0x34], 0xfdc1
mov word [esp + 0x36], 0x4dc3
mov byte [esp + 0x38], 0xa9
mov byte [esp + 0x39], 0xdd
mov byte [esp + 0x3a], 7
mov byte [esp + 0x3b], 0xd
mov byte [esp + 0x3c], 0x1d
mov byte [esp + 0x3d], 0x49
mov byte [esp + 0x3e], 0x5d
mov byte [esp + 0x3f], 0x97
push edx
jmp 0x42c8af
mov cl, 0x16
mov dword [esp + 0x24], 0xa520a1a4
mov word [esp + 0x28], 0x1780
mov word [esp + 0x2a], 0x4ff6
mov byte [esp + 0x2c], 0xbd
mov byte [esp + 0x2d], 0x18
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], 0x73
mov byte [esp + 0x30], 0x43
mov byte [esp + 0x31], 0xc5
mov byte [esp + 0x32], 0xaf
mov byte [esp + 0x33], cl
mov edx, dword [ebp + 0x38]
lea ecx, [esp + 0x18]
push ecx
push edx
push edi
lea ecx, [esp + 0x30]
push ecx
call eax
cmp eax, edi
jl 0x42c8d5
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call fcn.00410090
push 0x52075c
lea esi, [esp + 0x18]
call fcn.0040da40
mov esi, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], edi
jne 0x42ca0f
cmp dword [esp + 0x84c], 1
mov edi, 0x1c
jne 0x42c8fd
mov edi, 0x23
lea ebx, [esp + 0x14]
mov ecx, ebp
call fcn.0042dbd0
test eax, eax
je 0x42ca0f
call fcn.0042f480
test eax, eax
je 0x42c992
lea ecx, [esp + 0x18]
call fcn.00410110
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x844], 1
call fcn.0040fdf0
mov ecx, 0x51cb10
lea esi, [esp + 0x18]
call fcn.004314d0
test eax, eax
jle 0x42c97f
push eax
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004315e0
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
mov byte [esp + 0x844], 2
call fcn.0040fdf0
push str.ProgramData
mov esi, ebx
call fcn.0040da40
lea ecx, [esp + 0x20]
call fcn.00410230
lea ecx, [esp + 0x18]
mov byte [esp + 0x840], 0
call fcn.00410230
jmp 0x42ca0b
xor ebx, ebx
mov word [esp + 0x34], bx
call fcn.0042f480
test eax, eax
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x42c9d2
mov edx, dword [ebp + 0x38]
lea ecx, [esp + 0x34]
push ecx
push ebx
push edx
push 0x28
push ebx
call edi
test eax, eax
jne 0x42c9d2
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
call fcn.00410090
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jne 0x42c9fd
mov eax, dword [ebp + 0x38]
lea edx, [esp + 0x34]
push edx
push ebx
push eax
push 0x28
push ebx
mov word [esp + 0x48], bx
call edi
test eax, eax
je 0x42ca87
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80080000
cmp eax, ebx
jne 0x42ca0f
push str.Local_SettingsApplication_Data_
lea esi, [esp + 0x18]
call fcn.0040da40
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
call fcn.0042ddf0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.0040ff10
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x840], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ca5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x838]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.004ac89d
add esp, 0x830
ret 8
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x18]
call fcn.00410090
jmp 0x42c9fd