Function at 0x405260
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe54
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push 0x400
push 0
lea eax, [ebp - 0x630]
push eax
call fcn.004092b0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x1ff
lea edx, [ebp - 0x630]
push edx
call fcn.00405820
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 0x4052bb
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, 0x41a9c0
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 0x405321
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.0040645c
add esp, 4
mov dword [ebp - 0x21c], eax
push 0x10000
push 0
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.004092b0
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.004092b0
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.004092b0
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x405420
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x405448
lea ecx, [ebp - 0x218]
push ecx
call fcn.00405590
add esp, 4
push 0x416180
push 0x103
lea edx, [ebp - 0x218]
push edx
call fcn.004057a3
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.00404890
add esp, 0x10
test eax, eax
jne 0x405475
jmp 0x40554b
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.00404a60
add esp, 0x14
test eax, eax
jne 0x4054ac
jmp 0x40554b
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.00404d70
add esp, 0x14
test eax, eax
jne 0x4054dc
jmp 0x40554b
movzx edx, word [ebp - 8]
movzx eax, word [ebp - 0xc]
cmp edx, eax
jne 0x4054f1
cmp dword [ebp - 0xe34], 0
jne 0x4054f5
jmp 0x40554b
mov ecx, dword [ebp - 0x21c]
mov dl, byte [ecx]
mov byte [ebp - 0x221], dl
movzx eax, byte [ebp - 0x221]
test eax, eax
je 0x405512
jmp 0x40554b
push 0x41abc0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.004057a3
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x22c]
push eax
call fcn.00405600
add esp, 8
mov dword [ebp - 0x228], 1
cmp dword [ebp - 0x21c], 0
je 0x405563
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.00406526
add esp, 4
lea edx, [ebp - 0x22c]
push edx
call fcn.00404a30
add esp, 4
mov eax, dword [ebp - 0x228]
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405794
mov esp, ebp
pop ebp
ret