Function at 0x401280
Capabilities:
Create thread
Get common file path

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
cmp eax, 2
mov dword [esp + 0x14], ebx
je 0x4012c4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x210
ret 4
mov ecx, ebp
call fcn.00402270
lea eax, [esp + 0x18]
push 0x104
push eax
push ebx
mov dword [ebp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401512
lea ecx, [esp + 0x18]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x401512
mov byte [eax], bl
mov edi, 0x4170e4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 1
and ecx, 3
push 0x23
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x419208
mov eax, ecx
mov esi, edi
mov edi, dword [0x417ed4]
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x401399
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x11c]
push 0x4170d0
push edx
push 0x4170c8
push 0x419208
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov edi, 0x4170bc
or ecx, 0xffffffff
xor eax, eax
push 0x419208
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x419208
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x417ed4]
mov ecx, edx
and ecx, 3
push eax
push 0x417090
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.00403030
add esp, 0x10
call fcn.0040e111
call fcn.004102fc
test eax, eax
je 0x4014e8
push 0x401da0
mov edi, 1
call fcn.0040e190
mov eax, dword [ebp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add esp, 4
cmp eax, ebx
jne 0x401421
push 0x54
push 0x40
call esi
cmp eax, ebx
mov dword [ebp + 4], eax
je 0x4014ec
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 8], ebx
cmp eax, ebx
mov dword [ebp + 0x30], ebx
jne 0x401442
push 0x310
push 0x40
call esi
cmp eax, ebx
mov dword [ebp + 0x2c], eax
je 0x4014ec
push 0x41706c
push ebp
mov dword [ebp + 0xc], ebx
call fcn.00403030
add esp, 8
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebx
mov dword [ebp + 0x28], eax
je 0x4014ec
mov ecx, ebp
mov dword [ebp + 0x10], 1
call fcn.004021b0
test eax, eax
je 0x401497
mov ecx, ebp
call fcn.00401870
test eax, eax
jne 0x401497
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
call fcn.00401870
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push 0x401e30
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x4014ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x41705c
push ebp
call fcn.00403030
add esp, 8
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x210
ret 4
mov edi, dword [esp + 0x10]
cmp edi, ebx
mov dword [ebp + 0x10], ebx
je 0x4014f8
call fcn.004103d4
call fcn.0040e11b
push 0x41703c
push ebp
mov dword [ebp + 0xc], 2
call fcn.00403030
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret 4