Function at 0x1004d346
Capabilities:
Get common file path

Disassembly:
mov eax, 0x100833da
call fcn.10081660
sub esp, 0x78
push ebx
mov dword [ebp - 0x14], 8
xor ebx, ebx
push esi
mov dword [ebp - 0x20], 0x1b7e280b
mov esi, ecx
mov dword [ebp - 0x1c], 0xffffffff
push edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x1c], ebx
jmp 0x1004d388
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x84], 0xffffffff
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jl 0x1004d377
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x1004d39f
push ebx
push 0xc
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x14], 0xfffffff9
cmp dword [ebp - 0x14], 0x17
push 1
pop edi
je 0x1004d512
push 9
pop esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
jmp 0x1004d3d0
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x54], 0xea1bca3
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 2
jl 0x1004d3c2
imul ecx, dword [ebp - 0x14], 0x74b6
xor edx, edx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
mov eax, dword [ebp - 0x14]
setg dl
imul ecx, edx, 0xffff
neg ecx
sbb ecx, ecx
xor edx, edx
inc ecx
imul eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0xecf0
mov eax, dword [ebp - 0x20]
setle dl
cmp esi, eax
sbb eax, eax
xor ecx, ecx
inc eax
cmp edx, eax
setle cl
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], ebx
je 0x1004d426
mov eax, edi
cmp dword [ebp - 0x14], ebx
jne 0x1004d428
mov eax, ebx
xor edx, edx
cmp eax, 0x6eab
mov eax, dword [ebp - 0x18]
setg dl
xor ecx, ecx
neg edx
cmp edx, eax
setg cl
imul ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
cmp ecx, 0x97312b94
sbb ecx, ecx
xor edx, edx
inc ecx
cmp ecx, eax
mov eax, dword [ebp - 0x14]
setg dl
xor ebx, ebx
cmp edx, 0x3ae5
setg bl
xor ecx, ecx
cmp ebx, eax
setl cl
xor edx, edx
cmp ecx, 0x2b50
setge dl
sub edx, dword [ebp - 0x18]
neg edx
sbb edx, edx
xor eax, eax
inc edx
cmp edx, 0x2c9cc141
setl al
xor ebx, ebx
imul eax, dword [ebp - 0x18]
test eax, eax
je 0x1004d499
mov ecx, edi
cmp dword [ebp - 0x18], ebx
jne 0x1004d49b
mov ecx, ebx
mov eax, dword [ebp - 0x18]
xor edx, edx
sub ecx, eax
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x20]
cmp ecx, eax
setl dl
cmp esi, edx
sbb eax, eax
neg eax
cmp eax, dword [ebp - 0x20]
jne 0x1004d4c2
mov eax, edi
cmp dword [ebp - 0x18], ebx
jne 0x1004d4c4
mov eax, ebx
mov edx, dword [ebp - 0x14]
sub edx, eax
mov eax, dword [ebp - 0x20]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp eax, edx
mov eax, dword [ebp - 0x14]
setne cl
xor edx, edx
cmp eax, ecx
mov eax, dword [ebp - 0x50]
setne dl
xor ecx, ecx
cmp edx, eax
setge cl
mov dword [ebp - 0x78], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, edi
setg cl
mov dword [ebp - 0x1c], ecx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x17
jne 0x1004d3b6
mov esi, dword [ebp - 0x38]
push esi
push edi
call fcn.100474b1
pop ecx
mov dword [ebp - 0x1c], 0x9c28ade1
pop ecx
mov dword [ebp - 0x20], ebx
jmp 0x1004d535
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x3c], 4
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], edi
jl 0x1004d527
mov edi, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x1004d560
push ebx
push 0xdb8
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov dword [ebp - 0x1c], ebx
jmp 0x1004d56f
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x3c], ebx
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 1
jl 0x1004d565
push esi
call fcn.1002f6fc
pop ecx
mov dword [ebp - 0x1c], 0xb2c21353
lea ecx, [ebp - 0x74]
push 3
mov ebx, eax
call fcn.10015f8b
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x34], 0xe8ef
mov dword [ebp - 0x40], 0xfffffffe
mov dword [ebp - 0x20], edx
jmp 0x1004d5b7
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x74]
mov dword [eax + ecx*4], 0xc34ccbb2
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 3
jl 0x1004d5a7
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], edx
je 0x1004d7d8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], 0x7a73d2d6
mov dword [ebp - 0x28], 0xe81a7ecc
mov dword [ebp - 0x30], 0xffdeabfd
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], edx
jmp 0x1004d5f7
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x5c], edx
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 2
jl 0x1004d5ed
mov eax, dword [ebp - 0x14]
push 6
pop ecx
sub ecx, eax
sub ecx, dword [ebp - 0x14]
neg ecx
push 9
sbb ecx, ecx
inc ecx
pop eax
sub ecx, eax
je 0x1004d61c
cmp dword [ebp - 0x14], edx
je 0x1004d61c
xor edx, edx
inc edx
mov eax, dword [ebp - 0x14]
xor ecx, ecx
sub edx, eax
mov eax, dword [ebp - 0x14]
cmp eax, edx
mov eax, dword [ebp - 0x14]
setle cl
xor edx, edx
cmp ecx, 0x4ce3
setg dl
xor ecx, ecx
sub edx, eax
mov eax, dword [ebp - 0x14]
cmp edx, eax
mov eax, dword [ebp - 0x74]
setle cl
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jg 0x1004d65d
mov eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], 0x5ad33d2a
mov dword [ebp - 0x18], 0x13
jmp 0x1004d7cc
mov dword [ebp - 0x14], 0xc870af03
mov dword [ebp - 0x1c], 0x9da97883
mov dword [ebp - 0x4c], 0xb758c9e4
mov dword [ebp - 0x38], 0xc2329b61
mov dword [ebp - 0x48], 0xffffffff
inc dword [ebp - 0x14]
mov dword [ebp - 0x14], 0xffffffee
cmp dword [ebp - 0x14], 0x19
jle 0x1004d7c9
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x44], 0xa9177c83
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x2c], 0x33618264
push 1
call fcn.10015f8b
xor edx, edx
mov dword [ebp - 0x20], edx
jmp 0x1004d6e2
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x68]
mov dword [eax + ecx*4], 0x12551ad0
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 1
jl 0x1004d6d2
cmp dword [ebp - 0x30], edx
jne 0x1004d6f4
mov eax, dword [ebp - 0x68]
cmp dword [eax], edx
je 0x1004d6f7
xor edx, edx
inc edx
inc dword [ebp - 0x24]
xor ecx, ecx
mov eax, dword [ebp - 0x24]
cmp eax, edx
mov eax, dword [ebp - 0x34]
setl cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x40]
setle dl
xor ecx, ecx
add edx, 0xa093
cmp edx, eax
mov edx, dword [ebp - 0x44]
setl cl
sub edx, ecx
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
sub edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x38]
cmp edx, eax
mov eax, dword [ebp - 0x14]
setg cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x1c]
setne dl
sub edx, eax
je 0x1004d751
cmp dword [ebp - 0x38], 0
je 0x1004d751
xor edx, edx
inc edx
jmp 0x1004d753
xor edx, edx
mov eax, dword [ebp - 0x68]
xor ecx, ecx
cmp edx, dword [eax]
setge cl
mov dword [eax], ecx
test ecx, ecx
jne 0x1004d766
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
cmp dword [esi + 4], 0
jne 0x1004d779
cmp dword [ebp - 0x58], 0
jne 0x1004d779
xor edx, edx
jmp 0x1004d77c
xor edx, edx
inc edx
mov eax, dword [ebp - 0x28]
xor ecx, ecx
cmp edx, eax
setl cl
sub ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
je 0x1004d7b4
push 0
call edi
push eax
call dword [sym.imp.USER32.dll_KillTimer]
lea ecx, [ebp - 0x68]
call fcn.100167e6
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x19
jg 0x1004d6b3
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xfffffff6
jle 0x1004d679
jmp 0x1004d7eb
mov byte [ebp - 0xd], dl
cmp byte [ebp - 0xd], dl
je 0x1004d7eb
push 0x14ed
call dword [sym.imp.USER32.dll_MessageBeep]
lea ecx, [ebp - 0x74]
call fcn.100167e6
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret