Function at 0x406550
Capabilities:
Extract resource via kernel32 functions
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x41f670
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 0
call esi
or eax, 0x8001
push eax
call esi
mov ecx, dword [0x42909c]
lea eax, [esp + 0x30]
push eax
call fcn.00408f90
mov eax, dword [esp + 0x38]
mov dword [esp + 0x68], 0
test eax, eax
je 0x4065ba
mov edx, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x34]
call dword [edx + 4]
mov eax, dword [esp + 0x34]
mov ecx, dword [0x4290a0]
push eax
call fcn.00401180
mov edi, dword [esp + 0x70]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [edi + 4]
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x406727
push edi
lea ecx, [esp + 0x24]
call fcn.00407a30
mov dword [esp + 0x20], 0x421208
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x68], 1
lea esi, [ecx - 1]
test esi, esi
jl 0x406612
mov edx, dword [esp + 0x24]
mov al, byte [edx + esi]
push eax
push 0x425088
call fcn.00402cb0
add esp, 8
test al, al
jne 0x406615
dec esi
jns 0x4065f6
or esi, 0xffffffff
inc esi
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x24]
call fcn.00402580
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x54]
push 0x425060
mov byte [edx + esi], 0
push ecx
mov dword [esp + 0x34], esi
call fcn.00402e50
add esp, 0xc
mov bl, 2
push eax
push str.PATH
mov byte [esp + 0x70], bl
call fcn.00412055
add esp, 4
lea edx, [esp + 0x44]
push eax
push edx
call fcn.00402e50
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 3
call dword [eax + 4]
push esi
lea ecx, [esp + 0x24]
call fcn.004025d0
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], bl
call fcn.0040d840
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 1
call fcn.0040d840
lea ecx, [esp + 0x20]
lea edx, [esp + 0x50]
push ecx
push 0x425050
push edx
call fcn.00402e50
add esp, 0xc
mov esi, eax
mov ecx, dword [esi + 8]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov byte [esp + 0x6c], 4
call dword [eax + 4]
mov esi, dword [esi + 4]
push esi
call fcn.0041e1a0
add esp, 4
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 1
call fcn.0040d840
mov eax, dword [edi + 4]
push eax
call ebp
mov esi, eax
mov byte [esp + 0x68], 0
test esi, esi
lea ecx, [esp + 0x20]
jne 0x406722
call fcn.0040d840
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], 0xffffffff
call fcn.0040d840
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
call fcn.0040d840
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SplashInit
push esi
call edi
push str.SplashLoadMemory
push esi
mov ebp, eax
call edi
push str.SplashLoadFile
push esi
mov ebx, eax
call edi
test ebp, ebp
mov esi, eax
jne 0x406773
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], 0xffffffff
call fcn.0040d840
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
mov ecx, dword [0x42909c]
lea edx, [esp + 0x10]
push edx
call fcn.00406c00
mov eax, dword [esp + 0x18]
mov byte [esp + 0x68], 5
test eax, eax
je 0x40681e
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040be70
add esp, 4
test eax, eax
je 0x40681e
mov dword [0x4290a8], 1
call ebp
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x14]
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov esi, 0x4211f8
add esp, 4
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 6
call fcn.00407c80
mov dword [esp + 0x10], 0x421224
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], 7
call fcn.00407c80
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
push 0xa
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x406877
mov esi, 0x4211f8
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 8
call fcn.00407c80
mov dword [esp + 0x10], 0x421224
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], 9
call fcn.00407c80
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test esi, esi
mov edi, eax
jbe 0x4068a7
mov dword [0x4290a8], esi
call ebp
push esi
push edi
call ebx
add esp, 8
mov esi, 0x4211f8
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 0xa
call fcn.00407c80
mov dword [esp + 0x10], 0x421224
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], 0xb
call fcn.00410df0
test eax, eax
je 0x4068e8
push eax
call fcn.004120fe
add esp, 4
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret