Function at 0x405310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe54
mov eax, dword [0x42fc20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push 0x400
push 0
lea eax, [ebp - 0x630]
push eax
call fcn.00411d40
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x1ff
lea edx, [ebp - 0x630]
push edx
call fcn.0040fccf
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe38], eax
mov ecx, dword [ebp - 0xe38]
add ecx, 2
mov dword [ebp - 0xe3c], ecx
mov edx, dword [ebp - 0xe38]
mov ax, word [edx]
mov word [ebp - 0xe3e], ax
add dword [ebp - 0xe38], 2
cmp word [ebp - 0xe3e], 0
jne 0x40536b
mov ecx, dword [ebp - 0xe38]
sub ecx, dword [ebp - 0xe3c]
sar ecx, 1
mov dword [ebp - 0xe44], ecx
mov edx, dword [ebp - 0xe44]
lea edi, [ebp + edx*2 - 0x62e]
mov ecx, 0x80
mov esi, 0x434870
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe48], eax
mov ecx, dword [ebp - 0xe48]
add ecx, 2
mov dword [ebp - 0xe4c], ecx
mov edx, dword [ebp - 0xe48]
mov ax, word [edx]
mov word [ebp - 0xe4e], ax
add dword [ebp - 0xe48], 2
cmp word [ebp - 0xe4e], 0
jne 0x4053d1
mov ecx, dword [ebp - 0xe48]
sub ecx, dword [ebp - 0xe4c]
sar ecx, 1
mov dword [ebp - 0xe54], ecx
mov edx, dword [ebp - 0xe54]
lea eax, [edx + edx + 0x202]
mov dword [ebp - 0x220], eax
push 0x10000
call fcn.004109dc
add esp, 4
mov dword [ebp - 0x21c], eax
push 0x10000
push 0
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.00411d40
add esp, 0xc
mov dword [ebp - 0xe34], 0x10000
mov edx, 0xbba
mov word [ebp - 0xc], dx
xor eax, eax
mov word [ebp - 0xe30], ax
push 0x7fe
push 0
lea ecx, [ebp - 0xe2e]
push ecx
call fcn.00411d40
add esp, 0xc
lea edx, [ebp - 0xe30]
mov dword [ebp - 4], edx
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
xor eax, eax
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.00411d40
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x4054d0
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
jmp 0x4054f8
lea ecx, [ebp - 0x218]
push ecx
call fcn.00405640
add esp, 4
push 0x42ae68
push 0x103
lea edx, [ebp - 0x218]
push edx
call fcn.0040fd3e
add esp, 0xc
lea eax, [ebp - 0xe30]
push eax
lea ecx, [ebp - 0x22c]
push ecx
movzx edx, word [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00404940
add esp, 0x10
test eax, eax
jne 0x405525
jmp 0x4055fb
lea ecx, [ebp - 0xe30]
push ecx
mov edx, dword [ebp - 0x220]
push edx
lea eax, [ebp - 0x630]
push eax
movzx ecx, word [ebp - 0xc]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.00404b10
add esp, 0x14
test eax, eax
jne 0x40555c
jmp 0x4055fb
lea eax, [ebp - 0xe30]
push eax
lea ecx, [ebp - 0xe34]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00404e20
add esp, 0x14
test eax, eax
jne 0x40558c
jmp 0x4055fb
movzx edx, word [ebp - 8]
movzx eax, word [ebp - 0xc]
cmp edx, eax
jne 0x4055a1
cmp dword [ebp - 0xe34], 0
jne 0x4055a5
jmp 0x4055fb
mov ecx, dword [ebp - 0x21c]
mov dl, byte [ecx]
mov byte [ebp - 0x221], dl
movzx eax, byte [ebp - 0x221]
test eax, eax
je 0x4055c2
jmp 0x4055fb
push 0x434a70
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.0040fd3e
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x22c]
push eax
call fcn.004056b0
add esp, 8
mov dword [ebp - 0x228], 1
cmp dword [ebp - 0x21c], 0
je 0x405613
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.00410aa6
add esp, 4
lea edx, [ebp - 0x22c]
push edx
call fcn.00404ae0
add esp, 4
mov eax, dword [ebp - 0x228]
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fcc0
mov esp, ebp
pop ebp
ret