Function at 0x408b20
Capabilities:
Get process heap flags

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebp, dword fs:[0x18]
sub esp, 0x2c
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov eax, dword [esp + 0x40]
add eax, 0x14
call sym._clear_identity
mov eax, dword [esp + 0x40]
mov esi, dword [eax + 0x28]
add eax, 0x28
mov dword [esp + 0x1c], eax
mov edi, dword [esi]
cmp eax, esi
je 0x408c61
lea esi, [esi]
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov dword [eax], edi
mov eax, dword [esi + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [esi + 0xc]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [esi + 0x10]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [esi + 0x14]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [esi + 0x18]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov dword [esp + 8], esi
mov esi, edi
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edi, dword [edi]
sub esp, 0xc
cmp esi, dword [esp + 0x1c]
jne 0x408ba0
mov eax, dword [esp + 0x40]
mov ebp, dword fs:[0x18]
mov esi, dword [eax + 0x30]
add eax, 0x30
mov dword [esp + 0x1c], eax
mov edi, dword [esi]
cmp eax, esi
je 0x408ce6
lea esi, [esi]
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov dword [eax], edi
mov eax, dword [esi + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [esi + 0xc]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov dword [esp + 8], esi
mov esi, edi
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edi, dword [edi]
sub esp, 0xc
cmp esi, dword [esp + 0x1c]
jne 0x408c80
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 0x38]
lea ebp, [ecx + 0x38]
mov esi, dword [eax]
cmp ebp, eax
je 0x408d15
lea esi, [esi]
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov dword [edx], esi
call dbg.free_registryop
mov eax, esi
mov esi, dword [esi]
cmp eax, ebp
jne 0x408d00
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret