Function at 0x10004fa6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060b57
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x130
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x60], 0x1254
mov dword [ebp - 0xf0], str.lflwvtbky_fkrsprsve_gstes_okcoxdsf_iptcds
cmp dword [ebp - 0x60], 0x14aa
jle 0x10005086
push 0
push 0x1358
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
and dword [ebp - 0x18], 0
jmp 0x10005003
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x32b5
jge 0x10005075
and dword [ebp - 0x28], 0
jmp 0x10005019
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x10fa
jge 0x10005073
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x28]
cdq
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], edx
push dword [ebp - 0xf8]
push dword [ebp - 0xfc]
lea ecx, [ebp - 0x128]
call fcn.10002b6b
pop ecx
pop ecx
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
call fcn.1001661e
push eax
call fcn.10049d9f
pop ecx
lea ecx, [ebp - 0x128]
call fcn.10016614
jmp 0x10005012
jmp 0x10004ffc
push 0
push 0x1e76
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10005289
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x8c], eax
lea eax, [ebp + 0x40]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x6c]
movzx eax, byte [eax]
test eax, eax
je 0x1000526d
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
imul eax, dword [ecx]
cmp eax, 0xfffffffe
jge 0x100051c7
mov dword [ebp - 0x38], 1
jmp 0x100051cb
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x38]
jl 0x100051fc
mov eax, 0xdac8
test eax, eax
je 0x100051fc
mov dword [ebp - 0x44], 1
jmp 0x10005200
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 1
ja 0x1000520f
mov dword [ebp - 0x54], 1
jmp 0x10005213
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
imul eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x4c]
cmp dword [eax], 0
jne 0x10005235
mov eax, 0x3049
test eax, eax
je 0x10005246
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0
je 0x10005246
mov dword [ebp - 0x40], 1
jmp 0x1000524a
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x40]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x20]
add ecx, dword [eax]
mov eax, dword [ebp - 0x48]
mov dword [eax], ecx
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x68]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x70]
mov dword [ecx], eax
jmp 0x10005284
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x50]
mov dword [ecx], eax
jmp 0x100054ab
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x90], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
test eax, eax
je 0x1000541c
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x58], 0x4687
mov dword [ebp - 0xa8], str.ejvliyp_nnnsgj_qftbnldgj_rbxwbr_qyyrsn_ntklxfyo_egogjpch_mifo_vmor_micfhak
cmp dword [ebp - 0x58], 0x4791
jle 0x100053b9
and dword [ebp - 0x1c], 0
jmp 0x100052fe
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x18b4
jge 0x100053b9
and dword [ebp - 0x30], 0
jmp 0x10005318
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x31ee
jge 0x100053b4
and dword [ebp - 0x14], 0
jmp 0x10005332
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x41bd
jge 0x100053af
and dword [ebp - 0x24], 0
jmp 0x10005348
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x508c
jge 0x100053aa
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
shl eax, cl
or eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], edx
push dword [ebp - 0x104]
push dword [ebp - 0x108]
lea ecx, [ebp - 0x140]
call fcn.10002b6b
pop ecx
pop ecx
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
call fcn.1001661e
push eax
call fcn.10049d9f
pop ecx
lea ecx, [ebp - 0x140]
call fcn.10016614
jmp 0x10005341
jmp 0x1000532b
jmp 0x10005311
jmp 0x100052f7
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xb0], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x58], 0x43f7
jge 0x100053de
push dword [ebp - 0xa8]
call fcn.10049d9f
pop ecx
jmp 0x100053fa
or dword [ebp - 4], 0xffffffff
jmp 0x10005404
mov eax, dword [ebp - 0xb0]
movzx eax, byte [eax]
test eax, eax
je 0x10005417
call dword [sym.imp.USER32.dll_GetCapture]
jmp 0x100054ab
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0
jmp 0x10005474
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 2
jg 0x100054ab
mov eax, dword [ebp - 0x34]
mov dword [eax], 2
jmp 0x10005492
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
jl 0x100054a9
mov eax, dword [ebp - 0xe8]
cmp dword [eax], 0
je 0x100054a7
jmp 0x100054a9
jmp 0x10005487
jmp 0x10005469
mov dword [ebp - 4], 2
cmp dword [ebp - 0x60], 0x1188
jge 0x100054c7
push dword [ebp - 0xf0]
call fcn.10049d9f
pop ecx
jmp 0x100054e3
or dword [ebp - 4], 0xffffffff
jmp 0x100054ed
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret