Function at 0x5097e0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b84e
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x608514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c4], 0
lea edx, [ecx + 2]
xorps xmm0, xmm0
mov dword [ebp - 0x290], 0
movlpd qword [ebp - 0x2fc], xmm0
xor eax, eax
movups xmm0, xmmword [0x5bb60c]
mov dword [ebp - 0x28c], 0
mov esi, 1
mov dword [ebp - 0x300], edi
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 7
mov word [ebp - 0x2a0], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x509872
sub ecx, edx
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2a0]
call fcn.004047a0
mov dword [ebp - 4], 0
xor eax, eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 7
mov word [ebp - 0x288], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5098d0
sub ecx, edx
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x288]
call fcn.004047a0
mov byte [ebp - 4], 1
xor eax, eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 7
mov word [ebp - 0x270], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x509930
sub ecx, edx
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x270]
call fcn.004047a0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2a0]
push eax
call fcn.00517b80
lea eax, [ebp - 0x288]
push eax
call fcn.00517930
lea eax, [ebp - 0x270]
push eax
call fcn.00517dd0
xorps xmm0, xmm0
lea ecx, [ebp - 0x13c]
movups xmmword [ebp - 0x238], xmm0
movups xmmword [ebp - 0x2ec], xmm0
movups xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [0x5c6160]
movups xmmword [ebp - 0x2d4], xmm0
call fcn.00431a50
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x2ec]
call fcn.004735c0
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x238]
call fcn.004735c0
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x20]
call fcn.004735c0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x238]
push eax
lea edx, [ebp - 0x2ec]
lea ecx, [ebp - 0x2d4]
call fcn.00509700
xor ecx, ecx
add esp, 8
test al, al
mov dword [ebp - 0x2bc], ecx
cmovne esi, ecx
test esi, esi
je 0x509c7c
movaps xmm0, xmmword [0x5c61a0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x238]
push eax
lea edx, [ebp - 0x2ec]
lea ecx, [ebp - 0x2d4]
movups xmmword [ebp - 0x2d4], xmm0
call fcn.00509700
add esp, 8
test al, al
je 0x509aa7
lea eax, [ebp - 0x2fc]
push eax
call fcn.005181d0
test al, al
je 0x509aa0
cmp dword [ebp - 0x2f8], 0
ja 0x509aa0
jb 0x509a99
cmp dword [ebp - 0x2fc], 0x100000
jae 0x509aa0
xor esi, esi
jmp 0x509c7c
mov esi, 1
jmp 0x509ae6
lea eax, [ebp - 0x2bd]
mov byte [ebp - 0x2bd], 0
push eax
lea eax, [ebp - 0x2bc]
push eax
call fcn.00518420
test al, al
je 0x509acc
mov esi, 2
jmp 0x509ae6
xor eax, eax
cmp byte [ebp - 0x2bd], al
setne al
lea eax, [eax*2 + 1]
mov dword [ebp - 0x2f8], eax
mov esi, eax
push 0x208
lea eax, [ebp - 0x228]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, str.MacromedFlashFlashHelperService.exe
mov dword [ebp - 0x2e4], 0
xor eax, eax
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 7
mov word [ebp - 0x2f4], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x509b50
sub ecx, edx
sar ecx, 1
push ecx
push str.MacromedFlashFlashHelperService.exe
lea ecx, [ebp - 0x2f4]
call fcn.004047a0
mov byte [ebp - 4], 4
xor eax, eax
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 7
mov word [ebp - 0x2dc], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x509bb0
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2dc]
call fcn.004047a0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2f4]
push eax
lea edx, [ebp - 0x2dc]
lea ecx, [ebp - 0x240]
call fcn.00433480
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2dc]
call fcn.004046e0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2f4]
call fcn.004046e0
lea ecx, [ebp - 0x240]
call fcn.00432270
test al, al
je 0x509c6d
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x2b8]
call fcn.0044bbb0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2a8]
test ecx, ecx
je 0x509c5e
cmp dword [ebp - 0x2a4], 8
lea eax, [ebp - 0x2b8]
push ecx
cmovae eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x258]
push eax
call fcn.004047a0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2b8]
call fcn.004046e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x240]
call fcn.004046e0
mov byte [ebp - 0x2d4], 1
and dword [ebp - 0x2d4], 0xfffffeff
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2dc], esi
mov dword [ebp - 0x2d8], 0
mov byte [ebp - 4], 0xa
mov ecx, edi
push 0x5c4f20
push str.hurt
call fcn.004bdde0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2dc]
push ecx
mov ecx, eax
call fcn.004bc750
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2dc]
call fcn.004bc4e0
mov eax, dword [ebp - 0x2bc]
mov byte [ebp - 0x2ec], 2
and dword [ebp - 0x2ec], 0xfffffeff
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2f0], 0
mov byte [ebp - 4], 0xc
mov ecx, edi
push 0x5c50dd
push str.f_version
call fcn.004bdde0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2f4]
push ecx
mov ecx, eax
call fcn.004bc750
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2f4]
call fcn.004bc4e0
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x258]
cmp dword [ebp - 0x244], 8
lea ecx, [ebp - 0x2dc]
push 0xfde9
push dword [ebp - 0x248]
cmovae edx, dword [ebp - 0x258]
call fcn.0043e340
mov edi, 2
mov dword [ebp - 0x2c4], 2
mov dword [ebp - 0x2c4], edi
add esp, 8
and edi, 0xfffffffd
mov dword [ebp - 0x2c4], edi
mov dword [ebp - 4], 0xe
or edi, 1
mov dword [ebp - 0x2c4], edi
lea esi, [ebp - 0x2dc]
mov byte [ebp - 0x238], 4
lea ecx, [ebp - 0x2dc]
or dword [ebp - 0x238], 0x100
cmp dword [ebp - 0x2c8], 0x10
mov dword [ebp - 0x234], 0
cmovae esi, dword [ebp - 0x2dc]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
call fcn.004a2d70
mov edx, eax
mov ecx, esi
call fcn.004bb390
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 0x10
push 0x5c50e9
mov ecx, dword [ebp - 0x300]
push str.s_version
call fcn.004bdde0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x240]
push ecx
mov ecx, eax
call fcn.004bc750
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x240]
call fcn.004bc4e0
and edi, 0xfffffffe
mov dword [ebp - 0x2c4], edi
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c8]
cmp edx, 0x10
jb 0x509eab
mov ecx, dword [ebp - 0x2dc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x509ea1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x509ea1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0054bf14
add esp, 8
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0xf
mov byte [ebp - 0x2dc], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x258]
call fcn.004046e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x270]
call fcn.004046e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x288]
call fcn.004046e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a0]
call fcn.004046e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bed3
mov esp, ebp
pop ebp
ret 4