Function at 0x10004800
Capabilities:
Delete file
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100edb78
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1012d034]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x1012d034]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
cmp byte [esi + 0x70], 0
mov ebx, dword [ebp + 8]
mov dword [esp + 0x30], ebx
jne 0x1000488b
mov edx, dword [esi]
sub esp, 0x18
push esp
call dword [edx + 0x14]
mov ecx, esi
call fcn.10004640
mov edi, eax
test edi, edi
je 0x10004b10
push ebx
push edi
call fcn.10004e80
xor edx, edx
mov ecx, edi
call fcn.100b3690
add esi, 0x1c
cmp dword [esi + 0x14], 8
jb 0x1000487f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10004b10
mov edi, dword [esi + 0x74]
mov ebx, dword [esi + 0x78]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
cmp edi, ebx
je 0x10004b10
lea eax, [esi + 0x64]
mov dword [esp + 0x14], eax
jmp 0x100048b0
xor eax, eax
mov dword [esp + 0x4c], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
call fcn.10001a70
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0
lea eax, [esi + 0x34]
cmp eax, ecx
je 0x100048f3
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.10001a70
mov eax, dword [esi]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
mov dword [esp + 0x10], ecx
lea edx, [esi + 0x64]
cmp edx, ecx
je 0x1000499f
mov esi, dword [edx]
test esi, esi
je 0x1000497b
mov eax, dword [edx + 4]
mov dword [esp + 0x34], eax
cmp esi, eax
je 0x10004954
cmp dword [esi + 0x14], 8
jb 0x10004936
push dword [esi]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x38]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x18
cmp esi, eax
jne 0x10004921
mov edx, dword [esp + 0x14]
push dword [edx]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov edx, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [esp + 0x78], 0
mov esi, dword [esp + 0x24]
test esi, esi
je 0x10004a11
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
cmp esi, eax
je 0x100049eb
cmp dword [esi + 0x14], 8
jb 0x100049cd
push dword [esi]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x14]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x18
cmp esi, eax
jne 0x100049b8
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x18]
mov esi, dword [edx]
cmp esi, dword [eax + 0x68]
je 0x10004ae1
mov edi, dword [esp + 0x30]
mov ebx, eax
jmp 0x10004a30
xor eax, eax
mov dword [esp + 0x64], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
call fcn.10001a70
sub esp, 0x18
mov byte [esp + 0x90], 2
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0x70]
push eax
call fcn.10001a70
mov ecx, ebx
call fcn.10004640
mov dword [esp + 0x10], eax
test eax, eax
je 0x10004ab4
push edi
push eax
call fcn.10004e80
mov ecx, dword [esp + 0x10]
xor edx, edx
call fcn.100b3690
cmp dword [ebx + 0x30], 8
lea eax, [ebx + 0x1c]
jb 0x10004aad
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x78], 0
cmp dword [esp + 0x64], 8
jb 0x10004acd
push dword [esp + 0x50]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
add esi, 0x18
cmp esi, dword [ebx + 0x68]
jne 0x10004a30
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x4c], 8
jb 0x10004afd
push dword [esp + 0x38]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [esp + 0x18]
add edi, 0x18
mov dword [esp + 0x1c], edi
cmp edi, ebx
jne 0x100048b0
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.100ebd7b
mov esp, ebp
pop ebp
ret 4