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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ef65
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x368
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x328], ecx
push 0x105
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.00503920
add esp, 0xc
call fcn.00407620
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x405cf4
movaps xmm0, xmmword [0x5648a0]
lea ecx, [ebp - 0x34]
push ecx
push eax
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0x61507265
mov dword [ebp - 0x20], 0x416874
call edi
mov dword [esi + 0x28], eax
push 0
push 0x1c
lea eax, [ebp - 0x170]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x406221
movaps xmm0, xmmword [0x564830]
lea eax, [ebp - 0x68]
movups xmmword [ebp - 0x68], xmm0
push eax
movaps xmm0, xmmword [0x564a70]
lea eax, [ebp - 0x170]
movups xmmword [ebp - 0x58], xmm0
push 0x105
movaps xmm0, xmmword [0x5649c0]
push eax
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0x736563
call fcn.00507fcc
add esp, 0xc
call fcn.004074f0
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x405d72
movaps xmm0, xmmword [str.PathFileExistsA]
lea ecx, [ebp - 0x2c]
push ecx
push eax
movups xmmword [ebp - 0x2c], xmm0
call edi
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x170]
push eax
mov eax, dword [esi + 0x18]
call eax
test eax, eax
je 0x406221
xorps xmm0, xmm0
lea ecx, [ebp - 0x1d8]
push 0
movups xmmword [ebp - 0x1d8], xmm0
movq qword [ebp - 0x1c8], xmm0
call fcn.0045a9f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x320]
push 0x78
push 0
push eax
call fcn.00503920
add esp, 0xc
lea ecx, [ebp - 0x320]
call fcn.00461e30
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2a8]
push 0xb8
push 0
push eax
call fcn.00503920
add esp, 8
lea ecx, [ebp - 0x2a8]
call fcn.00409630
mov byte [ebp - 4], 2
lea eax, [ebp - 0x170]
push ecx
push 0x21
push eax
lea ecx, [ebp - 0x298]
call fcn.0040b350
test eax, eax
lea ecx, [ebp - 0x2a8]
mov eax, dword [ebp - 0x2a8]
push 0
mov eax, dword [eax + 4]
jne 0x405e33
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
jmp 0x405e42
add ecx, eax
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.00403440
push 1
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x320]
call fcn.00461fc0
test al, al
je 0x4061e6
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x73736573
push eax
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x18], 0x6e6f69
call fcn.0045c0f0
mov ecx, eax
call fcn.0045c660
test al, al
jne 0x4061e6
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1d8]
movq qword [ebp - 0x1e0], xmm0
movups xmmword [ebp - 0x1f0], xmm0
call fcn.0045c0f0
push eax
lea ecx, [ebp - 0x1f0]
call fcn.0045acb0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1f0]
mov dword [ebp - 0x2c], 0x72617473
mov dword [ebp - 0x28], 0x5f707574
mov dword [ebp - 0x24], 0x736c7275
mov byte [ebp - 0x20], 0
call fcn.0045c0f0
mov ecx, eax
call fcn.0045c660
test al, al
jne 0x4061d7
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1f0]
movq qword [ebp - 0x178], xmm0
movups xmmword [ebp - 0x188], xmm0
call fcn.0045c0f0
push eax
lea ecx, [ebp - 0x188]
call fcn.0045acb0
mov byte [ebp - 4], 4
xor esi, esi
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x324], esi
call fcn.0045b9a0
test eax, eax
je 0x4061c8
nop dword [eax + eax]
lea eax, [ebp - 0x344]
push eax
push esi
lea ecx, [ebp - 0x188]
call fcn.0045bb00
mov ecx, eax
call fcn.0045b360
mov byte [ebp - 4], 5
mov edi, dword [eax + 0x10]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x330]
cmp edx, 0x10
jb 0x405faf
mov ecx, dword [ebp - 0x344]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405fa5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40623f
push edx
push ecx
call fcn.005010b4
add esp, 8
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x330], 0xf
mov byte [ebp - 0x344], 0
test edi, edi
je 0x4061ae
xor eax, eax
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 7
mov word [ebp - 0x1b8], ax
mov byte [ebp - 4], 6
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], 7
mov word [ebp - 0x1a0], ax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x374]
push eax
push esi
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x1bc], 1
call fcn.0045bb00
mov ecx, eax
call fcn.0045b360
mov byte [ebp - 4], 9
mov edx, eax
push 0xfde9
lea ecx, [ebp - 0x35c]
call fcn.0046f170
add esp, 4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1b8]
push eax
call fcn.00408010
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x348]
cmp edx, 8
jb 0x4060bf
mov ecx, dword [ebp - 0x35c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4060b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40623f
push edx
push ecx
call fcn.005010b4
add esp, 8
xor eax, eax
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x348], 7
mov word [ebp - 0x35c], ax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x360]
cmp edx, 0x10
jb 0x40611a
mov ecx, dword [ebp - 0x374]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406110
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40623f
push edx
push ecx
call fcn.005010b4
add esp, 8
mov edi, dword [ebp - 0x328]
mov dword [ebp - 0x364], 0
mov dword [ebp - 0x360], 0xf
mov byte [ebp - 0x374], 0
mov esi, dword [edi + 0x258]
cmp dword [edi + 0x25c], esi
je 0x406186
mov eax, dword [ebp - 0x1bc]
lea ecx, [esi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x1b8]
push eax
mov dword [ebp - 0x32c], esi
call fcn.0040d350
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [esi + 0x1c]
call fcn.0040d350
mov byte [ebp - 4], 8
add dword [edi + 0x258], 0x34
jmp 0x406199
lea eax, [ebp - 0x1bc]
push eax
push esi
lea ecx, [edi + 0x254]
call fcn.0040c030
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1bc]
call fcn.004050a0
mov esi, dword [ebp - 0x324]
inc esi
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x324], esi
call fcn.0045b9a0
cmp esi, eax
jb 0x405f50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x188]
call fcn.0045b000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1f0]
call fcn.0045b000
lea ecx, [ebp - 0x2a8]
call fcn.004094a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a8]
call fcn.00404f80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x320]
call fcn.00404dc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1d8]
call fcn.0045b000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00500b45
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00508868
int3