Function at 0x405370
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 0x526645
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x368
mov eax, dword [0x57254c]
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.004fb730
add esp, 0xc
call fcn.00405a90
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x405404
movaps xmm0, xmmword [0x55b370]
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 0x405931
movaps xmm0, xmmword [0x55b300]
lea eax, [ebp - 0x68]
movups xmmword [ebp - 0x68], xmm0
push eax
movaps xmm0, xmmword [0x55b520]
lea eax, [ebp - 0x170]
movups xmmword [ebp - 0x58], xmm0
push 0x105
movaps xmm0, xmmword [0x55b480]
push eax
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0x736563
call fcn.004ff77b
add esp, 0xc
call fcn.00405960
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x405482
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 0x405931
xorps xmm0, xmm0
lea ecx, [ebp - 0x1d8]
push 0
movups xmmword [ebp - 0x1d8], xmm0
movq qword [ebp - 0x1c8], xmm0
call fcn.004546b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x320]
push 0x78
push 0
push eax
call fcn.004fb730
add esp, 0xc
lea ecx, [ebp - 0x320]
call fcn.0045bba0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2a8]
push 0xb8
push 0
push eax
call fcn.004fb730
add esp, 8
lea ecx, [ebp - 0x2a8]
call fcn.00406730
mov byte [ebp - 4], 2
lea eax, [ebp - 0x170]
push ecx
push 0x21
push eax
lea ecx, [ebp - 0x298]
call fcn.00408070
test eax, eax
lea ecx, [ebp - 0x2a8]
mov eax, dword [ebp - 0x2a8]
push 0
mov eax, dword [eax + 4]
jne 0x405543
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
jmp 0x405552
add ecx, eax
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.00402bf0
push 1
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x320]
call fcn.0045bd30
test al, al
je 0x4058f6
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x73736573
push eax
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x18], 0x6e6f69
call fcn.00455db0
mov ecx, eax
call fcn.00456320
test al, al
jne 0x4058f6
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.00455db0
push eax
lea ecx, [ebp - 0x1f0]
call fcn.00454970
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.00455db0
mov ecx, eax
call fcn.00456320
test al, al
jne 0x4058e7
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.00455db0
push eax
lea ecx, [ebp - 0x188]
call fcn.00454970
mov byte [ebp - 4], 4
xor esi, esi
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x324], esi
call fcn.00455660
test eax, eax
je 0x4058d8
nop dword [eax + eax]
lea eax, [ebp - 0x344]
push eax
push esi
lea ecx, [ebp - 0x188]
call fcn.004557c0
mov ecx, eax
call fcn.00455020
mov byte [ebp - 4], 5
mov edi, dword [eax + 0x10]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x330]
cmp edx, 0x10
jb 0x4056bf
mov ecx, dword [ebp - 0x344]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4056b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40594f
push edx
push ecx
call fcn.004f8ec4
add esp, 8
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x330], 0xf
mov byte [ebp - 0x344], 0
test edi, edi
je 0x4058be
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.004557c0
mov ecx, eax
call fcn.00455020
mov byte [ebp - 4], 9
mov edx, eax
push 0xfde9
lea ecx, [ebp - 0x35c]
call fcn.00469000
add esp, 4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1b8]
push eax
call fcn.004061d0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x348]
cmp edx, 8
jb 0x4057cf
mov ecx, dword [ebp - 0x35c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4057c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40594f
push edx
push ecx
call fcn.004f8ec4
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 0x40582a
mov ecx, dword [ebp - 0x374]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405820
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40594f
push edx
push ecx
call fcn.004f8ec4
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 0x405896
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.00409750
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [esi + 0x1c]
call fcn.00409750
mov byte [ebp - 4], 8
add dword [edi + 0x258], 0x34
jmp 0x4058a9
lea eax, [ebp - 0x1bc]
push eax
push esi
lea ecx, [edi + 0x254]
call fcn.00408cf0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1bc]
call fcn.004047b0
mov esi, dword [ebp - 0x324]
inc esi
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x324], esi
call fcn.00455660
cmp esi, eax
jb 0x405660
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x188]
call fcn.00454cc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1f0]
call fcn.00454cc0
lea ecx, [ebp - 0x2a8]
call fcn.004065a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a8]
call fcn.00404690
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x320]
call fcn.004044d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1d8]
call fcn.00454cc0
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.004f8955
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00500017
int3