Function at 0x404460
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42e6ab
push eax
mov eax, 0x83ec
mov dword fs:[0], esp
call fcn.0040cc60
mov eax, dword [0x43d4c8]
push ebx
push ebp
mov dword [esp + 8], eax
lea ecx, [esp + 0xe8]
xor ebx, ebx
push ecx
push 0x104
mov dword [esp + 0x8404], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x1ec]
lea eax, [esp + 0xe8]
push edx
push ebx
push 0x43d0ec
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [esp + 0x8404]
push 0x43d10c
push ecx
call fcn.0040cc47
mov ebp, eax
add esp, 8
cmp ebp, ebx
mov dword [esp + 0x10], ebp
jne 0x40450e
lea ecx, [esp + 8]
mov dword [esp + 0x83fc], 0xffffffff
call fcn.00423850
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x83ec]
mov dword fs:[0], ecx
add esp, 0x83f8
ret
push esi
push edi
push ebp
push 0x64
lea edx, [esp + 0x94]
push 1
push edx
call fcn.0040ca46
push ebp
push 1
lea eax, [esp + 0x2c]
push 4
push eax
mov dword [esp + 0x34], ebx
call fcn.0040ca46
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x48]
push ebp
rep stosd dword es:[edi], eax
push 0x60
lea ecx, [esp + 0x50]
push 1
push ecx
call fcn.0040ca46
add esp, 0x30
lea esi, [esp + 0x28]
mov eax, 0x44164c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404581
test cl, cl
je 0x40457d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404581
add eax, 2
add esi, 2
test cl, cl
jne 0x40455d
xor eax, eax
jmp 0x404586
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4045ba
mov eax, dword [esp + 0x8410]
mov esi, dword [esp + 0x8414]
push eax
mov ecx, esi
call fcn.004239d9
push 0x43d1dc
mov ecx, esi
call fcn.00423bb8
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00423bb8
jmp 0x4045cb
mov ecx, dword [esp + 0x8414]
push 0x44164c
call fcn.004239d9
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 2
push edx
call fcn.00423cf0
mov esi, eax
mov eax, dword [esp + 0x18]
mov edi, esi
push ebp
lea eax, [eax + eax*4]
mov dword [esp + 0x2c], esi
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
push 0x64
push esi
call fcn.0040ca46
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, ebx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], ebx
jbe 0x404749
lea ebp, [esi + 0x60]
mov ecx, dword [esp + 0x8410]
push ecx
lea ecx, [esp + 0x14]
call fcn.004239d9
push 0x43d1dc
lea ecx, [esp + 0x14]
call fcn.00423bb8
lea edx, [ebp - 0x60]
lea ecx, [esp + 0x10]
push edx
call fcn.00423bb8
lea eax, [esp + 0x1f4]
push 0x43d0e8
push eax
call fcn.0040cc47
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40473d
mov ecx, dword [esp + 0x18]
xor edi, edi
test byte [ecx + 0xc], 0x10
jne 0x4046e5
mov eax, dword [ebp]
lea edx, [edi + 0x8000]
cmp edx, eax
ja 0x40469a
mov eax, 0x8000
jmp 0x40469c
sub eax, edi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x3fc]
push ecx
push eax
push 1
push edx
call fcn.0040ca46
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x4046e1
push ebx
push esi
lea eax, [esp + 0x404]
push 1
push eax
call fcn.0040c85e
mov eax, dword [ebp]
add edi, esi
add esp, 0x10
cmp edi, eax
jae 0x4046e1
mov ecx, dword [esp + 0x18]
test byte [ecx + 0xc], 0x10
je 0x404686
mov esi, dword [esp + 0x24]
push ebx
call fcn.0040c7e1
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1f8]
push edx
push eax
call fcn.00404010
add esp, 0xc
test eax, eax
je 0x404723
mov ecx, dword [ebp - 8]
lea eax, [ebp - 8]
test ecx, ecx
jne 0x404715
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x404723
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.004030a0
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc eax
add ebp, 0x64
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x40462f
jmp 0x404745
mov dword [esp + 0x20], 0
mov ebp, dword [esp + 0x18]
push esi
call fcn.00423d19
push ebp
call fcn.0040c7e1
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x8404], 0xffffffff
call fcn.00423850
mov ecx, dword [esp + 0x83fc]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x83f8
ret