Function at 0x1004dc60
Capabilities:
Get common file path
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10094e7f
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x100b0380]
xor eax, esp
mov dword [esp + 0x450], eax
push esi
push edi
mov eax, dword [0x100b0380]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
imul esi, esi, 0x64
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, esi
push eax
call fcn.10079c3c
lea eax, [esp + 0x1c]
add esp, 4
push eax
mov edi, str.Head
mov ecx, str.ExternName
call fcn.1004a5a0
add esp, 4
mov dword [esp + 0x468], 0
lea ecx, [esp + 0x20]
push ecx
call fcn.1001d080
mov byte [esp + 0x468], 1
lea edx, [esp + 0x14]
push edx
mov ecx, 0x1009f430
call fcn.10013050
mov byte [esp + 0x468], 2
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x1009f434
call fcn.10013050
mov byte [esp + 0x468], 3
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x1009ed34
call fcn.10013050
mov byte [esp + 0x468], 4
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x30]
push eax
call fcn.1001d320
mov byte [esp + 0x468], 3
lea ecx, [esp + 0x10]
call fcn.10013100
mov byte [esp + 0x468], 2
lea ecx, [esp + 0x1c]
call fcn.10013100
mov byte [esp + 0x468], 1
lea ecx, [esp + 0x14]
call fcn.10013100
cmp dword [esp + 0x28], 1
jne 0x1004dfee
lea ecx, [esp + 0x14]
push ecx
call fcn.1001a210
mov byte [esp + 0x468], 5
lea edx, [esp + 0x10]
push edx
call fcn.1001a210
mov byte [esp + 0x468], 6
cmp dword [esp + 0x28], 0
jbe 0x1004ddd0
mov eax, dword [esp + 0x24]
lea edi, [esp + 0x14]
mov esi, eax
call fcn.1006cca0
lea eax, [esi + 4]
lea edi, [esp + 0x10]
call fcn.1006cca0
push 0x40
push 0
push 0x100dd180
call fcn.1007dcf0
add esp, 0xc
push 0x208
push 0
push 0x100dd1c0
call fcn.1007dcf0
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x56]
push ecx
mov word [esp + 0x58], ax
call fcn.1007dcf0
mov ecx, dword [0x100dee34]
xor eax, eax
add esp, 0xc
push 0xa
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov word [esp + 0x4e], ax
push 0xa
lea eax, [esp + 0x40]
push eax
xor edx, edx
push ecx
mov word [esp + 0x48], dx
call fcn.1007a74b
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp dword [eax - 4], 1
jle 0x1004de61
mov edx, dword [eax - 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.1006d3a0
mov eax, dword [esp + 0x10]
mov edx, 0x100dd180
sub edx, eax
jmp 0x1004de70
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1004de70
mov esi, 8
lea edi, [esp + 0x4c]
call fcn.100484d0
mov eax, edi
mov edx, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004de91
mov edi, 0x100dd180
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1004dea6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x38]
rep movsb byte es:[edi], byte [esi]
mov edx, eax
jmp 0x1004ded0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004ded0
mov edi, 0x100dd180
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1004dee5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, 0x100dd180
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x1004df10
mov ecx, dword [str..exe]
mov edx, dword [0x1009ede0]
mov dword [eax], ecx
mov cx, word [0x1009ede4]
mov dword [eax + 4], edx
xor edx, edx
push 0x206
mov word [eax + 8], cx
push edx
lea eax, [esp + 0x25e]
push eax
mov word [esp + 0x260], dx
call fcn.1007dcf0
add esp, 0xc
lea ecx, [esp + 0x254]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [esp + eax + 0x254]
mov word [eax + 0x100dd1c0], cx
add eax, 2
test cx, cx
jne 0x1004df70
mov esi, 0x10
lea edi, [esp + 0x4c]
call fcn.100484d0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, edi
push edx
push 0x100dd1c0
call esi
push 0x100dd1c0
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1004dfc0
push 0x100dd1c0
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x100dd180
push 0x100dd1c0
call esi
mov byte [esp + 0x468], 5
lea ecx, [esp + 0x10]
call fcn.10013100
mov byte [esp + 0x468], 1
lea ecx, [esp + 0x14]
call fcn.10013100
mov byte [esp + 0x468], 0
lea eax, [esp + 0x20]
push eax
call fcn.100185d0
mov dword [esp + 0x468], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.10013100
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.10079a05
add esp, 0x460
ret