Function at 0x419350
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43064d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], ebx
mov byte [esp + 0x28], al
call fcn.0040aae0
mov edi, 0x43e7b0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x43e7b0
lea ecx, [esp + 0x2c]
call fcn.0040ad80
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
mov dword [esp + 0x158], ebx
call fcn.0040aae0
mov edi, str.LocalAppData
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.LocalAppData
lea ecx, [esp + 0x1c]
call fcn.0040ad80
lea edx, [esp + 0x14]
lea eax, [esp + 0x34]
push edx
push eax
mov byte [esp + 0x15c], 1
call fcn.00418bb0
add esp, 8
mov ecx, dword [0x4313b0]
mov byte [esp + 0x154], 2
push ecx
push ebx
push eax
lea ecx, [esp + 0x30]
call fcn.0040a8e0
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x158], 1
call fcn.0040aae0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x158], bl
call fcn.0040aae0
cmp dword [esp + 0x2c], ebx
jg 0x4195e7
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call fcn.0040aae0
mov edi, str.RoamingAppData
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.RoamingAppData
lea ecx, [esp + 0x1c]
call fcn.0040ad80
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x15c], 3
call fcn.00418bb0
add esp, 8
mov edx, dword [0x4313b0]
lea ecx, [esp + 0x24]
push edx
push ebx
push eax
mov byte [esp + 0x160], 4
call fcn.0040a8e0
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x158], 3
call fcn.0040aae0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x158], bl
call fcn.0040aae0
cmp dword [esp + 0x2c], ebx
jg 0x4195e7
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.0040aae0
mov edi, str.LocalAppDataLow
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.0040af60
test al, al
je 0x419528
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.LocalAppDataLow
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.0040af40
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x15c], 5
call fcn.00418bb0
add esp, 8
mov edx, dword [0x4313b0]
lea ecx, [esp + 0x24]
push edx
push ebx
push eax
mov byte [esp + 0x160], 6
call fcn.0040a8e0
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x158], 5
call fcn.0040aae0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x158], bl
call fcn.0040aae0
cmp dword [esp + 0x2c], ebx
jg 0x4195e7
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.0040af60
test al, al
je 0x4195e7
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov byte [eax + ebp], bl
mov esi, dword [esp + 0x15c]
mov cl, byte [esp + 0x24]
lea eax, [esp + 0x24]
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x4313b0]
mov ecx, esi
push edx
push ebx
push eax
call fcn.0040a8e0
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x419635
mov al, byte [ecx - 1]
cmp al, bl
je 0x41962b
cmp al, 0xff
je 0x41962b
dec al
mov byte [ecx - 1], al
jmp 0x419635
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0x14c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret