Function at 0x418640
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4305cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x30], ebx
mov al, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x258], ebx
mov byte [esp + 0x24], 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 + 0x28]
call fcn.0040ad80
mov edi, 0x43e7b0
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x254], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x26c]
push 0x43e7b0
push ecx
push ebx
lea ecx, [esp + 0x270]
call fcn.0040c0c0
cmp eax, ebx
jne 0x418734
mov dl, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], dl
call fcn.0040aae0
mov edi, 0x438b40
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x438b40
lea ecx, [esp + 0x18]
call fcn.0040ad80
mov eax, dword [0x4313b0]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x26c]
mov byte [esp + 0x260], 2
call fcn.0040a8e0
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x258], 1
call fcn.0040aae0
mov dl, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], dl
call fcn.0040aae0
mov edi, 0x438b34
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x438b34
lea ecx, [esp + 0x18]
call fcn.0040ad80
lea eax, [esp + 0x10]
lea ecx, [esp + 0x260]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov byte [esp + 0x260], 3
call fcn.0040baa0
add esp, 0xc
mov ecx, dword [0x4313b0]
mov byte [esp + 0x254], 4
push ecx
push ebx
push eax
lea ecx, [esp + 0x26c]
call fcn.0040a8e0
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x258], 3
call fcn.0040aae0
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x258], 1
call fcn.0040aae0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x149]
mov byte [esp + 0x148], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x148]
push edx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov eax, dword [esp + 0x264]
cmp eax, ebx
jne 0x41881a
mov eax, 0x4313b4
lea ecx, [esp + 0x44]
push ebp
push ecx
push ebx
lea edx, [esp + 0x154]
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.0040aae0
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 + 0x18]
push ebp
call fcn.0040af60
test al, al
je 0x418884
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x48]
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
mov eax, dword [0x4313b0]
lea ecx, [esp + 0x14]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x264], 5
call fcn.0040a8e0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], 1
call fcn.0040aae0
mov esi, dword [esp + 0x260]
mov dl, byte [esp + 0x24]
lea ecx, [esp + 0x24]
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x4313b0]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.0040a8e0
mov ecx, dword [esp + 0x28]
pop ebp
cmp ecx, ebx
je 0x418902
mov al, byte [ecx - 1]
cmp al, bl
je 0x4188f8
cmp al, 0xff
je 0x4188f8
dec al
mov byte [ecx - 1], al
jmp 0x418902
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0x264]
mov dword [esp + 0x24], ebx
cmp ecx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
je 0x418935
mov al, byte [ecx - 1]
cmp al, bl
je 0x41892b
cmp al, 0xff
je 0x41892b
dec al
mov byte [ecx - 1], al
jmp 0x418935
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0x24c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24c
ret