Function at 0x405330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe54
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push 0x400
push 0
lea eax, [ebp - 0x630]
push eax
call fcn.00409380
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x1ff
lea edx, [ebp - 0x630]
push edx
call fcn.00405873
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 0x40538b
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, 0x41ca40
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 0x4053f1
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.0040652c
add esp, 4
mov dword [ebp - 0x21c], eax
push 0x10000
push 0
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.00409380
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.00409380
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.00409380
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x4054f0
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x405518
lea ecx, [ebp - 0x218]
push ecx
call fcn.00405660
add esp, 4
push 0x417f18
push 0x103
lea edx, [ebp - 0x218]
push edx
call fcn.004058e2
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.00404960
add esp, 0x10
test eax, eax
jne 0x405545
jmp 0x40561b
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.00404b30
add esp, 0x14
test eax, eax
jne 0x40557c
jmp 0x40561b
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.00404e40
add esp, 0x14
test eax, eax
jne 0x4055ac
jmp 0x40561b
movzx edx, word [ebp - 8]
movzx eax, word [ebp - 0xc]
cmp edx, eax
jne 0x4055c1
cmp dword [ebp - 0xe34], 0
jne 0x4055c5
jmp 0x40561b
mov ecx, dword [ebp - 0x21c]
mov dl, byte [ecx]
mov byte [ebp - 0x221], dl
movzx eax, byte [ebp - 0x221]
test eax, eax
je 0x4055e2
jmp 0x40561b
push 0x41cc40
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.004058e2
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x22c]
push eax
call fcn.004056d0
add esp, 8
mov dword [ebp - 0x228], 1
cmp dword [ebp - 0x21c], 0
je 0x405633
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.004065f6
add esp, 4
lea edx, [ebp - 0x22c]
push edx
call fcn.00404b00
add esp, 4
mov eax, dword [ebp - 0x228]
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405864
mov esp, ebp
pop ebp
ret