Function at 0x415f60
Capabilities:
Check if file exists
Create process on windows
Create thread
Delete file
Get common file path
Get number of processors
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x484d4b
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [esp + 0x140]
mov ebp, dword [esp + 0x13c]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 9
push 2
lea edx, [edi + 0x23c]
push 0xcb
push edx
mov dword [esp + 0x34], eax
call fcn.00422376
mov eax, dword [esp + 0x30]
add esp, 0x18
mov esi, eax
mov dword [esp + 0x14], esi
test eax, eax
je 0x415fe3
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea ecx, [edi + 0x230]
mov dword [esp + 0x134], 0
call fcn.00401190
test al, al
jne 0x41602d
push 0
push 0
push str.js.SetDocument___failed.
call fcn.00419dc3
mov dword [esp + 0x134], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x416026
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
jmp 0x41625c
lea ecx, [edi + 0x20c]
push ebp
mov dword [edi + 0x204], 1
mov dword [edi + 0x208], ebx
call fcn.00402190
lea eax, [ebx - 2]
cmp eax, 2
ja 0x416098
mov eax, dword [edi + 0x228]
xor esi, esi
cmp eax, esi
je 0x416098
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
jne 0x416085
mov edx, dword [edi + 0x228]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x228], esi
cmp ebx, 2
jne 0x4160bd
cmp dword [0x4c88b4], 0
je 0x416211
push 0
push 0
mov ecx, 0x4c88a4
call fcn.0042c003
jmp 0x416211
cmp ebx, 3
je 0x4160de
cmp ebx, 4
je 0x4160de
mov ecx, dword [esp + 0x1c]
push str.PARM_ERR
push ecx
call fcn.004020e0
add esp, 8
jmp 0x416211
push 0x30
push 0x497b28
push 0x497b38
mov ecx, edi
call fcn.0041dcf0
push 0x103
lea edx, [esp + 0x29]
push 0
push edx
mov byte [esp + 0x30], 0
call fcn.0043abe0
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push 0x104
call ebp
lea eax, [esp + 0x24]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x416121
mov ecx, dword [str.taskkill.exe]
mov edx, dword [0x497b70]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [eax], ecx
mov ecx, dword [0x497b74]
mov dword [eax + 4], edx
mov dl, byte [0x497b78]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x24]
push eax
call esi
test eax, eax
je 0x416168
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x24]
push edx
push 0xd3
call fcn.00417070
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0043abe0
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push 0x104
call ebp
lea eax, [esp + 0x24]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4161a4
mov edx, dword [str.killie.bat]
mov ecx, dword [0x497b80]
mov dword [eax], edx
mov dx, word [0x497b84]
mov dword [eax + 4], ecx
mov cl, byte [0x497b86]
mov word [eax + 8], dx
lea edx, [esp + 0x24]
push edx
mov byte [eax + 0xa], cl
call esi
test eax, eax
je 0x4161e7
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x24]
push ecx
push 0xd2
call fcn.00417070
push 0
push 0x49500b
push 0x49500b
lea edx, [esp + 0x30]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [esp + 0x20]
push eax
push 0
push edi
push 0x415de0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
add ebx, 0xfffffffe
cmp ebx, 2
ja 0x416238
mov dword [edi + 0x228], eax
jmp 0x41623f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x134], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41625a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0043675a
add esp, 0x128
ret 8