Function at 0x4104e0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502eaf
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x5473d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x27c], ecx
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004c5380
add esp, 0xc
lea eax, [ebp - 0x21c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x264], 0x6e0041
mov dword [ebp - 0x260], 0x740079
mov dword [ebp - 0x25c], 0x690068
mov dword [ebp - 0x258], 0x67006e
mov word [ebp - 0x254], ax
call fcn.00405dc0
push eax
push 8
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x250]
call fcn.00404e60
mov esi, dword [ebp - 0x250]
lea eax, [ebp - 0x21c]
push esi
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4105b7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x238], 0
movq qword [ebp - 0x240], xmm0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 0
movq qword [ebp - 0x24c], xmm0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov byte [ebp - 4], 1
call fcn.00405dc0
mov ecx, eax
test ecx, ecx
je 0x410c61
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x250]
call fcn.00404d20
test al, al
jne 0x410687
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410665
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x250]
call fcn.004051c0
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00411e80
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4106c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x284]
call fcn.00418e90
mov byte [ebp - 4], 4
mov edi, dword [eax]
xor eax, eax
mov dword [ebp - 0x274], 0x650072
mov dword [ebp - 0x270], 0x6f006d
mov dword [ebp - 0x26c], 0x650076
mov dword [ebp - 0x268], 0x610020
mov dword [ebp - 0x264], 0x700070
mov dword [ebp - 0x260], 0x610064
mov dword [ebp - 0x25c], 0x610074
mov dword [ebp - 0x258], 0x20003a
mov word [ebp - 0x254], ax
call fcn.00405dc0
push eax
push 0x10
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x250]
call fcn.00404e60
sub esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x32c]
call fcn.0040b430
mov byte [ebp - 4], 6
mov eax, 0x531ef4
mov esi, dword [ebp - 0x250]
test esi, esi
cmovne eax, esi
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.00409e50
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.00409e50
mov eax, dword [edi]
lea ecx, [ebp - 0x32c]
add esp, 0x10
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [ebp - 0x32c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x32c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x330], eax
lea ecx, [ebp - 0x328]
call fcn.0040c1d0
mov eax, dword [ebp - 0x32c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x32c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x330], eax
lea eax, [ebp - 0x2dc]
mov byte [ebp - 4], 7
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041c00c
add esp, 4
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410832
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x41085e
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x41085e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x41085e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
movq qword [ebp - 0x228], xmm0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov ebx, dword [ebp - 0x27c]
mov byte [ebp - 4], 9
test byte [ebx + 0x10], 1
je 0x410bd0
xor eax, eax
movq qword [ebp - 0x234], xmm0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x270], 0x730075
mov dword [ebp - 0x26c], 0x720065
mov dword [ebp - 0x268], 0x650063
mov dword [ebp - 0x264], 0x74006e
mov dword [ebp - 0x260], 0x720065
mov dword [ebp - 0x25c], 0x73002e
mov dword [ebp - 0x258], 0x740065
mov word [ebp - 0x254], ax
call fcn.00405dc0
push eax
push 0xe
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x294]
call fcn.00404e60
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x26c], 0x730075
mov dword [ebp - 0x268], 0x720065
mov dword [ebp - 0x264], 0x65006b
mov dword [ebp - 0x260], 0x2e0079
mov dword [ebp - 0x25c], 0x650073
mov dword [ebp - 0x258], 0x74
call fcn.00405dc0
push eax
push 0xb
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x290]
call fcn.00404e60
mov byte [ebp - 4], 0xb
xor eax, eax
mov dword [ebp - 0x278], 0x730075
mov dword [ebp - 0x274], 0x720065
mov dword [ebp - 0x270], 0x65006b
mov dword [ebp - 0x26c], 0x5f0079
mov dword [ebp - 0x268], 0x6e0075
mov dword [ebp - 0x264], 0x690062
mov dword [ebp - 0x260], 0x64006e
mov dword [ebp - 0x25c], 0x73002e
mov dword [ebp - 0x258], 0x740065
mov word [ebp - 0x254], ax
call fcn.00405dc0
push eax
push 0x12
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x28c]
call fcn.00404e60
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x288]
push dword [ebp - 0x280]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push eax
lea eax, [ebp - 0x294]
mov dword [ebp - 0x230], 0
push eax
mov dword [ebp - 0x22c], 0
call fcn.00412d40
push fcn.00404bd0
push 3
push 4
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 0xe
push eax
call fcn.00499a2f
mov ebx, dword [ebp - 0x23c]
mov esi, dword [ebp - 0x240]
mov dword [ebp - 0x288], ebx
cmp esi, ebx
je 0x410bb9
mov edi, 0xffff
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
test ecx, ecx
je 0x410aa9
mov edx, dword [esi]
cmp dword [edx - 0xc], 0
jl 0x410aa9
push ecx
push edx
call fcn.004c4a77
add esp, 8
test eax, eax
je 0x410aa3
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x410bae
mov eax, dword [ebp - 0x234]
mov edx, dword [eax + 4]
test edx, edx
je 0x410ad9
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jl 0x410ad9
push edx
push ecx
call fcn.004c4a77
add esp, 8
test eax, eax
je 0x410ad3
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x410bae
mov eax, dword [ebp - 0x234]
mov eax, dword [eax + 8]
cmp dword [eax - 0xc], 1
jne 0x410af1
movzx eax, word [eax]
cmp ax, di
jne 0x410af1
mov eax, 1
jmp 0x410af3
xor eax, eax
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jle 0x410b13
push eax
push ecx
call fcn.004c4cf3
add esp, 8
test eax, eax
je 0x410b13
sub eax, dword [esi]
sar eax, 1
je 0x410bae
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x280], eax
cmp dword [ebp - 0x220], eax
je 0x410b9c
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
lea edi, [eax - 0x10]
mov dword [ebp - 0x250], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x410b4e
cmp ecx, dword [edi]
jne 0x410b4e
lock inc dword [eax]
jmp 0x410b83
mov eax, dword [ecx]
lea ebx, [edi + 4]
push 2
push dword [ebx]
call dword [eax]
mov edi, eax
test edi, edi
je 0x410c6b
mov ecx, dword [ebx]
mov dword [edi + 4], ecx
lea ecx, [edi + 0x10]
mov edx, dword [ebx]
inc edx
push edx
push dword [ebp - 0x250]
call fcn.004050d0
mov ebx, dword [ebp - 0x288]
add esp, 8
mov ecx, dword [ebp - 0x280]
lea eax, [edi + 0x10]
mov edi, 0xffff
mov dword [ecx], eax
add dword [ebp - 0x224], 4
jmp 0x410bae
push esi
push dword [ebp - 0x224]
lea ecx, [ebp - 0x228]
call fcn.00412b40
add esi, 4
cmp esi, ebx
jne 0x410a74
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 9
call fcn.00412580
mov ebx, dword [ebp - 0x27c]
jmp 0x410be2
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x228]
call fcn.00412260
mov edi, dword [ebp - 0x224]
mov esi, dword [ebp - 0x228]
cmp esi, edi
je 0x410c00
mov ecx, dword [esi]
call fcn.0041afb0
add esi, 4
cmp esi, edi
jne 0x410bf2
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00410c80
test byte [ebx + 0x10], 1
jne 0x410c24
lea ecx, [ebp - 0x21c]
call fcn.0041b290
lea ecx, [ebp - 0x228]
call fcn.00412580
lea ecx, [ebp - 0x24c]
call fcn.00412580
lea ecx, [ebp - 0x240]
call fcn.00412580
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499723
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405ba0
call fcn.004050c0
int3