Function at 0x1004a38b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1004a3f9
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x1004a3d8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x1004a3d6
push 0
push 0x2537
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x1004a3f4
push 0x5fe
push 0x1e86
push 0x26be
push 0x1a91
push 0
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
jmp 0x1004a547
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x1004a51c
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffff
jge 0x1004a46d
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x1004a46d
and dword [ebp - 0x10], 0
jmp 0x1004a474
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0xfff6
jbe 0x1004a486
mov dword [ebp - 0x14], 1
jmp 0x1004a48a
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x14]
jle 0x1004a49d
mov dword [ebp - 0x18], 1
jmp 0x1004a4a1
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
dec eax
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
jge 0x1004a4bd
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x1004a4bd
mov dword [ebp - 0x1c], 1
jmp 0x1004a4c1
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x1c]
jg 0x1004a4de
mov dword [ebp - 8], 1
jmp 0x1004a4e2
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
neg eax
cmp eax, 1
ja 0x1004a505
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x1004a505
mov dword [ebp - 0x54], 1
jmp 0x1004a509
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 4]
mov dword [eax], 6
jmp 0x1004a547
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x68]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret