Function at 0x1004c5b0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101aca6c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101bf2c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0x10001558
lea ecx, [edi + 8]
mov dword [edi + 4], 0x10001d24
call fcn.100b6020
mov dword [ebp - 4], 0
mov dword [edi], 0x10001d40
mov dword [edi + 4], 0x1000173c
mov dword [edi + 8], 0x10001d2c
mov eax, dword [0x101c0a60]
mov eax, dword [eax + 0xc]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0x10001f44
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov word [edi + 0x34], 0
mov dword [edi + 0x38], edi
lea ecx, [edi + 0x64]
call fcn.10048910
lea ecx, [edi + 0xa4]
call fcn.10048910
mov byte [edi + 0xe8], 0
mov dword [edi + 0xec], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 0
mov byte [edi + 0xfc], 0
mov dword [edi + 0x110], 0
mov word [edi + 0x114], 1
mov dword [edi + 0x118], 0
mov dword [edi + 0x11c], 0
mov dword [edi + 0x120], 0
mov dword [edi + 0x124], 0
mov byte [edi + 0x12c], 0
mov dword [edi + 0x130], 0
mov byte [ebp - 4], 6
mov edx, dword [0x101c0a60]
mov eax, dword [edi + 0x10]
cmp byte [edx + 0x18], 0
jne 0x1004c722
cmp eax, 0xffffffff
je 0x1004c722
mov ecx, dword [edx + 4]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*4 + 8]
cmp eax, 0xffffffff
je 0x1004c722
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*4 + 4]
test eax, eax
jne 0x1004c725
mov eax, dword [edx + 0x14]
mov eax, dword [eax]
lea ecx, [edi + 0x64]
fldz
mov eax, dword [eax + 8]
mov dword [edi + 0x128], eax
mov dword [edi + 0x100], 0
mov dword [edi + 0x104], 1
mov dword [edi + 0x108], 2
mov dword [edi + 0x10c], 0
fst dword [edi + 0x3c]
fst dword [edi + 0x40]
fst dword [edi + 0x44]
fst dword [edi + 0x48]
fst dword [edi + 0x4c]
fst dword [edi + 0x50]
fst dword [edi + 0x54]
fstp dword [edi + 0x58]
mov dword [edi + 0x60], 0
mov dword [edi + 0x5c], 0
call fcn.10048910
lea ecx, [edi + 0xa4]
call fcn.10048910
push 1
push 0x40
mov dword [edi + 0xe4], 0
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
mov ebx, eax
add esp, 8
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x1004c852
fld dword [0x10035984]
lea ecx, [ebx + 4]
mov dword [ebx], 0x10001fb4
fstp dword [ecx + 0xc]
fld dword [0x100358dc]
fstp dword [ecx + 0x10]
fld dword [0x10035d84]
fstp dword [ecx + 0x14]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0x11
mov dword [ecx + 0x18], 0xffffffff
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
call fcn.1003dae0
mov dword [ebx + 0x34], 0x100015a8
mov dword [ebx + 0x38], 0
mov dword [ebx], 0x10001f8c
mov eax, dword [ebx]
push ebx
mov dword [ebx + 0x34], 0x10001f88
mov dword [ebx + 0x3c], 0
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101c43b0]
call esi
jmp 0x1004c854
xor ebx, ebx
mov dword [edi + 0x130], ebx
test ebx, ebx
je 0x1004c89e
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101c43b0]
call esi
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x101c43b0]
call esi
mov eax, dword [edi + 0x130]
mov dword [edi + 0xe4], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0xe4], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret