Function at 0x412338
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4674aa
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x4921d8]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
and dword [esp + 0x2c], 0
and dword [esp + 0x30], 0
mov eax, dword [eax + 0x10]
push dword [ebx + 0x14]
mov dword [esp + 0x3c], eax
push dword [ebx + 0x10]
mov dword [esp + 0x3c], ecx
lea esi, [esp + 0x34]
lea edi, [esp + 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x44]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 4]
lea esi, [esp + 0x3c]
lea edi, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add eax, ecx
push eax
movsd dword es:[edi], dword [esi]
push eax
lea eax, [esp + 0x54]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_UnionRect]
lea ecx, [esp + 0x5c]
call fcn.004033fa
mov esi, dword [ebp + 8]
and dword [esp + 0xb8], 0
lea eax, [esp + 0x5c]
mov ecx, esi
call fcn.0041255b
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
sub edi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
call fcn.004033b6
test edi, edi
jle 0x412425
mov ecx, dword [esp + 0x10]
push edi
push 0x20
pop eax
mov edx, esi
call fcn.00403922
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
sub edi, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
and dword [esp + 0x18], 0
mov ecx, esi
cmp dword [ecx + 0x10], 0
jle 0x4124db
neg eax
mov dword [esp + 0x10], eax
cmp dword [ecx + 0xc], 0
jle 0x4124c3
mov esi, edi
neg esi
mov dword [esp + 0x14], esi
jmp 0x412460
mov esi, dword [esp + 0x14]
test esi, esi
jl 0x412498
cmp esi, dword [esp + 0x68]
jge 0x412498
mov ecx, dword [esp + 0x10]
test ecx, ecx
jl 0x412498
cmp ecx, dword [esp + 0x6c]
jge 0x412498
lea eax, [esp + 0x5c]
call fcn.0041673a
movzx eax, byte [eax + 3]
imul eax, dword [ebx + 0xc]
push 0x64
cdq
pop ecx
idiv ecx
mov esi, dword [esp + 0x14]
mov byte [ebx + 0xb], al
jmp 0x41249c
mov byte [ebx + 0xb], 0
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 8]
add esi, edi
call fcn.0041673a
mov ecx, dword [ebx + 8]
inc dword [esp + 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
add ecx, edi
cmp ecx, eax
jl 0x41245c
inc dword [esp + 0x18]
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x18]
inc dword [esp + 0x10]
cmp eax, dword [ecx + 0x10]
jl 0x41244c
mov ecx, dword [ebx + 4]
push 2
push 0
lea eax, [esp + 0x8c]
push eax
call fcn.00417d18
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea ebx, [esp + 0x88]
mov byte [esp + 0xbc], 1
call fcn.0040383b
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x20]
lea ebx, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x20]
push eax
push edi
call fcn.004125b2
lea esi, [esp + 0x90]
call fcn.0040e14d
mov ecx, ebx
mov dword [esp + 0x84], vtable.FCImageEffect.0
call fcn.00403360
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8