Function at 0x408840
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5052
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x534090]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1c]
push ebx
mov byte [ebp - 0x24], bl
call fcn.004159f0
sub esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x198]
push esi
call fcn.004112d0
sub esp, 0x28
mov byte [ebp - 4], 3
mov eax, esp
lea ecx, [ebp - 0xdc]
lea edx, [ebp - 0x198]
push ebx
push 1
mov dword [eax + 0x24], ebx
call fcn.00417530
mov cl, byte [ebp - 0x24]
add esp, 0x30
mov al, byte [ebp - 0xdc]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov byte [ebp - 0xc8], cl
mov byte [ebp - 0x24], al
mov eax, dword [ebp - 0xd4]
mov byte [ebp - 0xdc], cl
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xd4], edx
mov dword [ebp - 0xd0], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd4]
push dword [ebp - 0xc8]
call fcn.00414c70
push edi
mov edx, str.stable
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00404e70
add esp, 4
lea eax, [edi + 0x18]
mov edx, str.intest
lea ecx, [ebp - 0x24]
push eax
call fcn.00404e70
add esp, 4
push ebx
call fcn.004d68f0
mov dword [ebp - 0xd4], eax
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd0], edx
push eax
call fcn.00417670
add esp, 8
mov dword [edi + 0x30], eax
lea ecx, [ebp - 0x198]
mov dword [edi + 0x34], edx
call fcn.004092d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.00414c70
mov dword [ebp - 4], 0xffffffff
call fcn.00433fc0
mov eax, dword [eax]
cmp dword [eax], ebx
je 0x408a64
lea edx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x806f804c
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x60], 0x80648061
mov dword [ebp - 0x5c], 0x80648065
mov dword [ebp - 0x58], 0x80738020
mov dword [ebp - 0x54], 0x80678069
mov dword [ebp - 0x50], 0x806e8069
mov dword [ebp - 0x4c], 0x806f8066
mov dword [ebp - 0x48], 0x8000
call fcn.00416fb0
mov dword [ebp - 4], 0xb
lea eax, [ebp - 0x7c]
cmp dword [ebp - 0x68], 8
lea edx, [ebp - 0xd0]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0xc8], 0x401
cmovae eax, dword [ebp - 0x7c]
mov dword [ebp - 0xd0], eax
call fcn.00417750
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0xc8], 0x403
call fcn.0043a3c0
mov dword [ebp - 4], 0xd
lea esi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov ebx, 0x1407
mov dword [ebp - 0xc8], ebx
cmovae esi, dword [ebp - 0x2c]
call fcn.00433fc0
push esi
push 0
push str._BDREINIT__::_cst::update_engines::UpdateEngines::LoadSigInfo____
push 0
push eax
call fcn.00436d10
add esp, 0x14
mov dword [ebp - 4], 0xc
test bl, 4
je 0x408ac1
mov edx, dword [ebp - 0x18]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x408aad
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408aa3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409134
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xb
test bl, 2
je 0x408b1e
mov edx, dword [ebp - 0x30]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x408b0a
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408b00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409134
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x408b67
mov edx, dword [ebp - 0x68]
and ebx, 0xfffffffe
cmp edx, 8
jb 0x408b67
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408b5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409134
push edx
push ecx
call fcn.004cb66f
add esp, 8
call fcn.00433fc0
mov eax, dword [eax]
cmp dword [eax], 0
je 0x408c5a
cmp dword [edi + 0x10], 0
jne 0x408b84
mov eax, str.No_Stable
jmp 0x408b8e
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x408b8e
mov eax, dword [edi]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0xd0], eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x2c], 0x80748053
mov dword [ebp - 0x28], 0x80628061
mov dword [ebp - 0x24], 0x8065806c
mov dword [ebp - 0x20], 0x8020803a
mov dword [ebp - 0x1c], 0x807d807b
mov dword [ebp - 0x18], 0x8000
call fcn.00416fb0
or ebx, 0x2000
mov dword [ebp - 4], 0xe
lea eax, [ebp - 0x5c]
or ebx, 8
lea edx, [ebp - 0xcc]
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0xc8], ebx
cmovae eax, dword [ebp - 0x5c]
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xd0]
push eax
call fcn.004177d0
add esp, 4
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0x44]
or ebx, 0x10
push eax
mov dword [ebp - 0xc8], ebx
call fcn.0043a3c0
or ebx, 0x8000
mov dword [ebp - 4], 0x10
lea esi, [ebp - 0x44]
or ebx, 0x20
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0xc8], ebx
cmovae esi, dword [ebp - 0x44]
call fcn.00433fc0
push esi
push 0
push str._BDREINIT__::_cst::update_engines::UpdateEngines::LoadSigInfo____
push 0
push eax
call fcn.00436d10
add esp, 0x14
mov dword [ebp - 4], 0xf
test bl, 0x20
je 0x408cb7
mov edx, dword [ebp - 0x30]
and ebx, 0xffffffdf
cmp edx, 8
jb 0x408ca3
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408c99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409139
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 0xe
test bl, 0x10
je 0x408d14
mov edx, dword [ebp - 0x68]
and ebx, 0xffffffef
cmp edx, 8
jb 0x408d00
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408cf6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409139
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
mov dword [ebp - 4], 0xffffffff
test bl, 8
je 0x408d5d
mov edx, dword [ebp - 0x48]
and ebx, 0xfffffff7
cmp edx, 8
jb 0x408d5d
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408d53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409139
push edx
push ecx
call fcn.004cb66f
add esp, 8
call fcn.00433fc0
mov eax, dword [eax]
cmp dword [eax], 0
je 0x408e35
cmp dword [edi + 0x28], 0
jne 0x408d7a
mov eax, str.No_Intest
jmp 0x408d85
cmp dword [edi + 0x2c], 8
lea eax, [edi + 0x18]
jb 0x408d85
mov eax, dword [eax]
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00409220
mov dword [ebp - 4], 0x11
or ebx, 0x40
cmp dword [eax + 0x14], 8
mov dword [ebp - 0xc8], ebx
jb 0x408daf
mov eax, dword [eax]
mov dword [ebp - 0xd0], eax
lea edx, [ebp - 0xd0]
lea eax, [edi + 0x30]
push eax
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xac]
call fcn.00417860
add esp, 8
mov dword [ebp - 4], 0x12
lea ecx, [ebp - 0x94]
or ebx, 0x80
push eax
mov dword [ebp - 0xc8], ebx
call fcn.0043a3c0
or ebx, 0x40000
mov dword [ebp - 4], 0x13
lea esi, [ebp - 0x94]
or ebx, 0x100
cmp dword [ebp - 0x80], 8
mov dword [ebp - 0xc8], ebx
cmovae esi, dword [ebp - 0x94]
call fcn.00433fc0
push esi
push 0
push str._BDREINIT__::_cst::update_engines::UpdateEngines::LoadSigInfo____
push 0
push eax
call fcn.00436d10
add esp, 0x14
test ebx, 0x100
je 0x408e9a
mov edx, dword [ebp - 0x80]
and ebx, 0xfffffeff
cmp edx, 8
jb 0x408e80
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408e76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40913e
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
test bl, bl
jns 0x408f01
mov edx, dword [ebp - 0x98]
and ebx, 0xffffff7f
cmp edx, 8
jb 0x408ee4
mov ecx, dword [ebp - 0xac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408eda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40913e
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 7
mov word [ebp - 0xac], ax
test bl, 0x40
je 0x408f46
mov edx, dword [ebp - 0xb0]
cmp edx, 8
jb 0x408f46
mov ecx, dword [ebp - 0xc4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408f3c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40913e
push edx
push ecx
call fcn.004cb66f
add esp, 8
mov al, 1
jmp 0x409116
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004cb63e
mov esp, ebp
pop ebp
ret 8
call fcn.004d05ef
call fcn.004d05ef
call fcn.004d05ef
int3