Function at 0x462850
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55adfe
mov eax, dword fs:[0]
push eax
sub esp, 0x538
mov eax, dword [0x58605c]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x540], ecx
mov eax, dword [ebp - 0x540]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x44], ecx
mov edx, dword [ebp - 0x540]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp - 0x540]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x540]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x540]
mov dword [eax + 0x28], 0x10
mov ecx, dword [ebp - 0x540]
mov dword [ecx + 0x2c], 0x10
mov edx, dword [ebp - 0x540]
mov dword [edx + 0x1c], 1
mov eax, dword [ebp - 0x540]
mov dword [eax + 0x20], 1
mov ecx, dword [ebp - 0x540]
mov dword [ecx + 0x18], 1
mov edx, dword [ebp - 0x540]
mov dword [edx + 0x30], 1
mov eax, dword [ebp - 0x540]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x540]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x540]
mov dword [edx + 0x3c], 0x589b40
mov eax, dword [ebp + 8]
push eax
push 0x5645d4
lea ecx, [ebp - 0x12c]
push ecx
call dword [0x55e2d0]
add esp, 0xc
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x540]
add eax, 0x3c
push eax
mov ecx, dword [ebp - 0x540]
call fcn.00463280
mov ecx, dword [ebp + 8]
push ecx
push 0x5645e0
lea edx, [ebp - 0x12c]
push edx
call dword [0x55e2d0]
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x540]
add ecx, 0x1c
push ecx
mov ecx, dword [ebp - 0x540]
call fcn.004631f0
mov edx, dword [ebp + 8]
push edx
push 0x5645ec
lea eax, [ebp - 0x12c]
push eax
call dword [0x55e2d0]
add esp, 0xc
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x540]
add edx, 0x20
push edx
mov ecx, dword [ebp - 0x540]
call fcn.004631f0
mov eax, dword [ebp + 8]
push eax
push 0x5645f4
lea ecx, [ebp - 0x12c]
push ecx
call dword [0x55e2d0]
add esp, 0xc
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x540]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x540]
call fcn.004631f0
mov ecx, dword [ebp - 0x540]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 8]
push eax
push 0x5645fc
lea ecx, [ebp - 0x12c]
push ecx
call dword [0x55e2d0]
add esp, 0xc
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x540]
call fcn.004631f0
mov ecx, dword [ebp - 0x540]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x134], edx
mov eax, dword [ebp + 8]
push eax
push 0x564604
lea ecx, [ebp - 0x12c]
push ecx
call dword [0x55e2d0]
add esp, 0xc
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x540]
call fcn.004631f0
mov ecx, dword [ebp - 0x540]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x28], edx
mov eax, dword [ebp - 0x540]
mov ecx, dword [ebp - 0x134]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp - 0x540]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x540]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
push eax
push 0x56460c
lea ecx, [ebp - 0x12c]
push ecx
call dword [0x55e2d0]
add esp, 0xc
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x540]
call fcn.004631f0
mov ecx, dword [ebp + 8]
push ecx
push 0x564618
lea edx, [ebp - 0x12c]
push edx
call dword [0x55e2d0]
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x540]
call fcn.004631f0
mov edx, dword [ebp - 0x540]
mov eax, dword [ebp - 0x130]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x540]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x540]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x540]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x540]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x1c], 3
je 0x462b73
cmp dword [ebp - 0x1c], 4
je 0x462b73
cmp dword [ebp - 0x1c], 7
je 0x462b73
cmp dword [ebp - 0x1c], 8
jne 0x462b91
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + ecx - 2]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 1
jge 0x462b8a
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x540]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x540]
mov dword [eax + 0x24], 0
cmp dword [ebp - 0x1c], 2
je 0x462bcc
cmp dword [ebp - 0x1c], 4
je 0x462bcc
cmp dword [ebp - 0x1c], 6
je 0x462bcc
cmp dword [ebp - 0x1c], 8
jne 0x462bd9
mov ecx, dword [ebp - 0x540]
mov dword [ecx + 0x24], 1
mov edx, dword [ebp - 0x540]
cmp dword [edx + 0x44], 0
je 0x462c90
mov eax, dword [ebp - 0x540]
mov ecx, dword [eax + 0x3c]
push ecx
push 0x564624
push 0x400
lea edx, [ebp - 0x534]
push edx
call fcn.0041d527
add esp, 0x10
push 0x2f0
call fcn.004134e0
add esp, 4
mov dword [ebp - 0x53c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x53c], 0
je 0x462c4f
push 0
push 1
push 1
lea eax, [ebp - 0x534]
push eax
mov ecx, dword [ebp - 0x53c]
call fcn.004e0ca0
mov dword [ebp - 0x544], eax
jmp 0x462c59
mov dword [ebp - 0x544], 0
mov ecx, dword [ebp - 0x544]
mov dword [ebp - 0x538], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x540]
mov eax, dword [ebp - 0x538]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x540]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x540]
call fcn.00462d70
mov ecx, dword [ebp - 0x540]
call fcn.00462dd0
mov eax, dword [ebp - 0x540]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00413201
mov esp, ebp
pop ebp
ret 0xc