Function at 0x412fe4
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x412fec
push ecx
push ebx
push esi
test dl, dl
je 0x413002
add esp, 0xfffffff0
call fcn.004029d0
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
push ebp
push 0x413af4
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.004028b8
mov dword [0x415598], esi
xor ecx, ecx
mov dl, 1
mov eax, dword [0x40bc28]
call fcn.0040bd18
mov ebx, eax
mov dword [esi + 4], ebx
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0xa0], 0x14
mov dword [ebx + 0xa4], 0x69
mov dword [ebx + 0xa8], 0x166
mov dword [ebx + 0xac], 0x176
mov byte [ebx + 0xec], 0
mov byte [ebx + 0xb0], 1
mov byte [ebx + 0xb1], 1
mov byte [ebx + 0xb2], 0
mov byte [ebx + 0xb3], 0
xor eax, eax
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0xcc], eax
xor eax, eax
mov dword [ebx + 0xd0], eax
xor eax, eax
mov dword [ebx + 0xd4], eax
xor eax, eax
mov dword [ebx + 0xd8], eax
xor eax, eax
mov dword [ebx + 0xe0], eax
xor eax, eax
mov dword [ebx + 0xdc], eax
xor eax, eax
mov dword [ebx + 0xe8], eax
xor eax, eax
mov dword [ebx + 0xe4], eax
xor eax, eax
mov dword [ebx + 0xf4], eax
push 0
push 1
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov dl, 8
mov eax, 0x413b24
call fcn.0040a698
lea edx, [ebp - 0x14]
lea eax, [ebx + 0x100]
mov ecx, dword [0x40a080]
call fcn.00403838
mov byte [ebx + 0x110], 0
mov byte [ebx + 0x112], 1
mov byte [ebx + 0x113], 1
xor eax, eax
mov dword [ebx + 0x114], eax
xor eax, eax
mov dword [ebx + 0xf0], eax
mov byte [ebx + 0xf8], 1
mov byte [ebx + 0x130], 0
lea eax, [ebx + 0x9c]
xor edx, edx
call fcn.00403258
lea eax, [ebx + 0xfc]
xor edx, edx
call fcn.00403258
lea eax, [ebx + 0x138]
xor edx, edx
call fcn.00403258
xor eax, eax
mov dword [ebx + 0x13c], eax
xor eax, eax
mov dword [ebx + 0x140], eax
mov byte [ebx + 0x225], 0xff
lea eax, [ebp - 0x18]
mov edx, 0x413b34
call fcn.00403258
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.0040c1d0
mov dl, 2
mov eax, ebx
call fcn.0040c208
mov byte [ebx + 0x226], 0
push 0x413b3c
mov eax, dword [0x4143d4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, ebx
call fcn.0040c2b4
xor edx, edx
mov eax, ebx
call fcn.0040c288
mov byte [ebx + 0x224], 0
mov byte [ebx + 0x11a], 1
mov dword [ebx + 0x240], 0xffffff
lea eax, [ebx + 0x230]
xor edx, edx
call fcn.00403258
mov byte [ebx + 0x118], 0
mov byte [ebx + 0x235], 0
mov dword [ebx + 0x23c], ebx
mov dword [ebx + 0x238], 0x40c95c
xor eax, eax
mov dword [ebx + 0x21c], eax
xor eax, eax
mov dword [ebx + 0x220], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x3c]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x98]
mov dl, 1
mov eax, dword [0x40ca5c]
call fcn.0040afe0
mov ebx, eax
mov dword [esi + 8], ebx
xor eax, eax
mov dword [ebx + 0x94], eax
xor eax, eax
mov dword [ebx + 0xa0], eax
xor eax, eax
mov dword [ebx + 0xa4], eax
mov dword [ebx + 0xa8], 0x15e
mov dword [ebx + 0xac], 0x138
mov byte [ebx + 0xec], 5
mov byte [ebx + 0xb0], 1
mov byte [ebx + 0xb1], 1
mov byte [ebx + 0xb2], 0
mov byte [ebx + 0xb3], 0
xor eax, eax
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0xcc], eax
xor eax, eax
mov dword [ebx + 0xd0], eax
xor eax, eax
mov dword [ebx + 0xd4], eax
xor eax, eax
mov dword [ebx + 0xd8], eax
xor eax, eax
mov dword [ebx + 0xe0], eax
xor eax, eax
mov dword [ebx + 0xdc], eax
xor eax, eax
mov dword [ebx + 0xe8], eax
xor eax, eax
mov dword [ebx + 0xe4], eax
xor eax, eax
mov dword [ebx + 0xf4], eax
push 0xffff00
push 0xcc
lea eax, [ebp - 0x14]
push eax
mov cl, 1
mov dl, 8
mov eax, 0x413b4c
call fcn.0040a698
lea edx, [ebp - 0x14]
lea eax, [ebx + 0x100]
mov ecx, dword [0x40a080]
call fcn.00403838
mov byte [ebx + 0x110], 0
mov byte [ebx + 0x112], 1
mov byte [ebx + 0x113], 1
xor eax, eax
mov dword [ebx + 0x114], eax
xor eax, eax
mov dword [ebx + 0xf0], eax
mov byte [ebx + 0xf8], 1
mov byte [ebx + 0x130], 0
lea eax, [ebx + 0x9c]
xor edx, edx
call fcn.00403258
lea eax, [ebx + 0xfc]
xor edx, edx
call fcn.00403258
lea eax, [ebx + 0x138]
xor edx, edx
call fcn.00403258
xor eax, eax
mov dword [ebx + 0x13c], eax
xor eax, eax
mov dword [ebx + 0x140], eax
mov eax, dword [0x4143d0]
mov eax, dword [eax]
mov dword [ebx + 0x11c], eax
mov dword [ebx + 0x120], 4
mov dword [ebx + 0x124], 0xff00000f
xor eax, eax
mov dword [ebx + 0x128], eax
xor eax, eax
mov dword [ebx + 0x12c], eax
mov byte [ebx + 0x284], 1
xor eax, eax
mov dword [ebx + 0x288], eax
mov dword [ebx + 0x290], 0xffff00
mov dword [ebx + 0x294], 0x80ff
mov dword [ebx + 0x298], 0x808000
mov dword [ebx + 0x29c], 0xffff00
mov dword [ebx + 0x2a0], 0x808000
mov dword [ebx + 0x2a4], 0xa
mov dword [ebx + 0x2ac], 0xa
xor eax, eax
mov dword [ebx + 0x2a8], eax
mov dword [ebx + 0x2c4], 5
mov dword [ebx + 0x2cc], 3
mov dword [ebx + 0x2c8], 0xa
lea eax, [ebx + 0x2b0]
mov edx, 0x413b5c
call fcn.00403258
lea eax, [ebx + 0x2b4]
mov edx, 0x413b64
call fcn.00403258
mov byte [ebx + 0x2b8], 1
mov dword [ebx + 0x2bc], 0x40600000
mov dword [ebx + 0x2c0], 0x40b00000
mov eax, ebx
call fcn.0040cdb8
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x98]
mov dl, 1
mov eax, dword [0x40de20]
call fcn.0040afe0
mov ebx, eax
mov dword [esi + 0xc], ebx
xor eax, eax
mov dword [ebx + 0x94], eax
xor eax, eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], 0x138
mov dword [ebx + 0xa8], 0x15e
mov dword [ebx + 0xac], 0x1e
mov byte [ebx + 0xec], 4
mov byte [ebx + 0xb0], 1
mov byte [ebx + 0xb1], 1
mov byte [ebx + 0xb2], 0
mov byte [ebx + 0xb3], 0
xor eax, eax
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0xcc], eax
xor eax, eax
mov dword [ebx + 0xd0], eax
xor eax, eax
mov dword [ebx + 0xd4], eax
xor eax, eax
mov dword [ebx + 0xd8], eax
xor eax, eax
mov dword [ebx + 0xe0], eax
xor eax, eax
mov dword [ebx + 0xdc], eax
xor eax, eax
mov dword [ebx + 0xe8], eax
xor eax, eax
mov dword [ebx + 0xe4], eax
xor eax, eax
mov dword [ebx + 0xf4], eax
push 0
push 1
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov dl, 8
mov eax, 0x413b24
call fcn.0040a698
lea edx, [ebp - 0x14]
lea eax, [ebx + 0x100]
mov ecx, dword [0x40a080]
call fcn.00403838
mov byte [ebx + 0x110], 0
mov byte [ebx + 0x112], 1
mov byte [ebx + 0x113], 1
mov dword [ebx + 0x114], 0x7f89
mov dword [ebx + 0xf0], 0xffffffff
mov byte [ebx + 0xf8], 1
mov byte [ebx + 0x130], 0
lea eax, [ebx + 0x9c]
xor edx, edx
call fcn.00403258
lea eax, [ebx + 0xfc]
xor edx, edx
call fcn.00403258
lea eax, [ebx + 0x138]
xor edx, edx
call fcn.00403258
xor eax, eax
mov dword [ebx + 0x13c], eax
xor eax, eax
mov dword [ebx + 0x140], eax
mov byte [ebx + 0x206], 0
mov dword [ebx + 0x20c], 0x64
xor eax, eax
mov dword [ebx + 0x210], eax
mov dword [ebx + 0x208], 5
xor eax, eax
mov dword [ebx + 0x214], eax
mov byte [ebx + 0x204], 0
mov byte [ebx + 0x205], 3
mov dword [ebx + 0x218], 0x10
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x3c]
mov dl, 1
mov eax, dword [0x40e198]
call fcn.0040e1f0
mov ebx, eax
mov dword [esi + 0x10], ebx
mov edx, 0x3e8
mov eax, ebx
call fcn.0040e284
mov dl, 1
mov eax, ebx
call fcn.0040e290
xor edx, edx
mov eax, ebx
call fcn.0040e29c
mov byte [ebx + 0x14], 0
mov dl, 1
mov eax, dword [0x40e348]
call fcn.004028b8
mov ebx, eax
mov dword [esi + 0x14], ebx
mov eax, ebx
xor edx, edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], 0x40518000
mov byte [eax + 0x1c], 0
mov dl, 1
mov eax, dword [0x40f044]
call fcn.004028b8
mov ebx, eax
mov dword [esi + 0x18], ebx
mov byte [ebx + 0x20], 2
xor eax, eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], 0x9999999a
mov dword [ebx + 0x30], 0x3fb99999
mov byte [ebx + 0x34], 1
push 0
push 0
mov eax, ebx
call fcn.0040f098
xor edx, edx
mov eax, ebx
call fcn.0040f0bc
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x98]
mov dl, 1
mov eax, dword [0x40f180]
call fcn.0040afe0
mov ebx, eax
mov dword [esi + 0x1c], ebx
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0xa0], 0x69
mov dword [ebx + 0xa4], 0xeb
mov dword [ebx + 0xa8], 0x87
mov dword [ebx + 0xac], 0x32
mov byte [ebx + 0xec], 0
mov byte [ebx + 0xb0], 1
mov byte [ebx + 0xb1], 1
mov byte [ebx + 0xb2], 0
mov byte [ebx + 0xb3], 0
xor eax, eax
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0xcc], eax
xor eax, eax
mov dword [ebx + 0xd0], eax
xor eax, eax
mov dword [ebx + 0xd4], eax
xor eax, eax
mov dword [ebx + 0xd8], eax
xor eax, eax
mov dword [ebx + 0xe0], eax
xor eax, eax
mov dword [ebx + 0xdc], eax
xor eax, eax
mov dword [ebx + 0xe8], eax
xor eax, eax
mov dword [ebx + 0xe4], eax
xor eax, eax
mov dword [ebx + 0xf4], eax
push 0
push 1
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov dl, 8
mov eax, 0x413b24
call fcn.0040a698
lea edx, [ebp - 0x14]
lea eax, [ebx + 0x100]
mov ecx, dword [0x40a080]
call fcn.00403838
mov byte [ebx + 0x110], 0
mov byte [ebx + 0x112], 1
mov byte [ebx + 0x113], 1
xor eax, eax
mov dword [ebx + 0x114], eax
xor eax, eax
mov dword [ebx + 0xf0], eax
mov byte [ebx + 0xf8], 1
mov byte [ebx + 0x130], 0
lea eax, [ebx + 0x9c]
xor edx, edx
call fcn.00403258
lea eax, [ebx + 0xfc]
xor edx, edx
call fcn.00403258
lea eax, [ebx + 0x138]
xor edx, edx
call fcn.00403258
xor eax, eax
mov dword [ebx + 0x13c], eax
xor eax, eax
mov dword [ebx + 0x140], eax
mov edx, 1
mov eax, ebx
call fcn.0040f69c
push 0
push 0
mov eax, ebx
call fcn.0040f6c8
mov dl, 1
mov eax, ebx
call fcn.0040f738
mov dword [ebx + 0x250], 4
mov byte [ebx + 0x254], 1
mov dword [ebx + 0x258], 5
mov dword [ebx + 0x25c], 0xff00
mov dword [ebx + 0x260], 0x8000
mov byte [ebx + 0x264], 1
mov dword [ebx + 0x268], 1
mov dword [ebx + 0x26c], 2
mov byte [ebx + 0x270], 1
mov byte [ebx + 0x271], 0
mov byte [ebx + 0x272], 0
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x3c]
mov dl, 1
mov eax, dword [0x4123e8]
call fcn.004028b8
mov ebx, eax
mov dword [esi + 0x20], ebx
mov eax, ebx
mov byte [eax + 5], 1
mov dx, 2
call fcn.00412450
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x98]
mov dl, 1
mov eax, dword [0x412508]
call fcn.00412580
mov ebx, eax
mov dword [esi + 0x24], ebx
mov byte [ebx + 0x10], 0
mov eax, ebx
call fcn.004125f4
mov dword [ebx + 0x1c], esi
push 0
lea eax, [ebx + 0x14]
mov ecx, 1
mov edx, dword [0x4124e0]
call fcn.00403cf8
add esp, 4
push 0
lea eax, [ebx + 0x18]
mov ecx, 1
mov edx, dword [0x4124f4]
call fcn.00403cf8
add esp, 4
mov dl, 1
mov eax, dword [0x4123e8]
call fcn.004028b8
mov ebx, eax
mov dword [esi + 0x28], ebx
mov eax, ebx
mov byte [eax + 5], 1
mov dx, 2
call fcn.00412450
mov eax, dword [esi + 0x20]
push eax
push 0x412478
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0040a184
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x21c], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x220], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x224], edx
mov eax, dword [esi + 0x28]
push eax
push 0x412478
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0040a184
mov eax, dword [esi + 0x14]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x38], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x3c], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x40], edx
mov eax, dword [esi + 0x28]
push eax
push 0x412478
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0040a184
mov ebx, dword [esi + 0x18]
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x40], eax
push ebx
push 0x40f0dc
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0040a184
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 8], edx
mov eax, dword [esi + 0x1c]
push eax
push 0x40f2b0
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0040a184
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x14], edx
mov eax, dword [esi + 8]
push eax
push 0x40cd4c
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0040a184
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 8], edx
mov eax, dword [esi + 0x24]
push eax
push 0x4125f8
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0040a184
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x14], edx
xor edx, edx
mov eax, dword [esi + 4]
call fcn.0040b644
mov eax, dword [esi + 4]
xor edx, edx
mov dword [eax + 0x134], edx
xor edx, edx
call fcn.0040b618
xor edx, edx
mov eax, dword [esi + 4]
call fcn.0040bcd8
mov eax, dword [esi + 4]
xor edx, edx
mov dword [eax + 0x218], edx
xor edx, edx
mov eax, dword [esi + 8]
call fcn.0040b644
mov eax, dword [esi + 8]
xor edx, edx
mov dword [eax + 0x134], edx
xor edx, edx
call fcn.0040b618
xor edx, edx
mov eax, dword [esi + 0xc]
call fcn.0040b644
mov eax, dword [esi + 0xc]
xor edx, edx
mov dword [eax + 0x134], edx
xor edx, edx
call fcn.0040b618
xor edx, edx
mov eax, dword [esi + 0x1c]
call fcn.0040b644
mov eax, dword [esi + 0x1c]
xor edx, edx
mov dword [eax + 0x134], edx
xor edx, edx
call fcn.0040b618
mov edx, 0x4128e0
mov eax, dword [esi + 0x24]
call fcn.00412624
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x98]
call fcn.00408ac8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413afb
lea eax, [ebp - 0x18]
call fcn.00403134
lea eax, [ebp - 0x14]
mov edx, dword [0x40a080]
call fcn.00403720
ret