Function at 0x406df0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x424]
push ebx
sub esp, 0x44c
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x104
mov dword [esp + 8], eax
lea eax, [ebp - 0x214]
mov dword [esp + 4], eax
mov dword [esp], 2
call dword [0x449020]
sub esp, 0xc
mov ebx, eax
call fcn.004107b0
mov dword [eax], 0x4163f5
mov dword [eax + 4], 0x135
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x41c]
mov dword [esp], eax
mov dword [esp + 4], 0x4163ff
call fcn.004069b0
mov esi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x214]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x438], esi
call esi
sub esp, 0x20
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, ebx
mov dword [ebp + eax - 0x41c], 0x32335f
lea eax, [ebp - 0x424]
call fcn.004060b0
lea eax, [ebp - 0x214]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0x20
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, ebx
mov dword [ebp + eax - 0x41c], 0x34365f
lea eax, [ebp - 0x424]
call fcn.004060b0
lea eax, [ebp - 0x214]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0x20
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, 0x4c
add eax, ebx
mov word [eax + 4], dx
mov edx, ebx
mov dword [eax], 0x49534d5f
lea eax, [ebp - 0x424]
call fcn.004060b0
lea eax, [ebp - 0x214]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
mov edx, ebx
lea eax, [ebp - 0x424]
sub esp, 0x20
call fcn.004060b0
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [0x449028]
sub esp, 0x14
mov ebx, eax
call fcn.004107b0
mov dword [eax], 0x4163f5
mov dword [eax + 4], 0x148
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x4163ff
call fcn.004069b0
call fcn.004107b0
mov dword [eax], 0x4163f5
mov dword [eax + 4], 0x149
xor eax, eax
mov dword [esp + 4], str.Expected_non_NULL_asmenum_n
mov ecx, dword [ebp - 0x430]
test ecx, ecx
setne al
mov dword [esp], eax
call fcn.004069b0
lea esi, [esi]
mov eax, dword [ebp - 0x430]
lea ebx, [ebp - 0x42c]
mov edx, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0xc]
mov dword [ebp - 0x434], eax
sub esp, 0x10
test eax, eax
jne 0x407218
mov eax, dword [ebp - 0x42c]
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x428], 0x104
lea ebx, [ebp - 0x214]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x318]
mov dword [esp + 0xc], 0
mov dword [esp], eax
call dword [edx + 0x18]
lea eax, [ebp - 0x214]
sub esp, 0x10
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [ebp - 0x438]
call eax
mov edi, dword [ebp - 0x424]
lea eax, [ebp - 0x424]
sub esp, 0x20
mov esi, dword [edi]
cmp edi, eax
jne 0x407180
jmp 0x4071d1
lea ecx, [ebp - 0x424]
mov eax, dword [esi]
mov edi, esi
cmp esi, ecx
je 0x4071d1
mov esi, eax
lea eax, [edi + 8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpA]
sub esp, 8
test eax, eax
jne 0x407170
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [edi]
mov dword [eax], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x434], 1
sub esp, 0xc
call fcn.004107b0
mov dword [eax], 0x4163f5
mov dword [eax + 4], 0x160
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Extra_assembly_enumerated:__s_n
mov eax, dword [ebp - 0x434]
mov dword [esp], eax
call fcn.004069b0
mov eax, dword [ebp - 0x42c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x407098
mov dword [ebp - 0x42c], 0xdeadbeef
mov eax, dword [ebp - 0x430]
mov edx, dword [eax]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
mov ebx, eax
call fcn.004107b0
mov dword [eax], 0x4163f5
mov dword [eax + 4], 0x167
xor eax, eax
cmp ebx, 1
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_S_FALSE__got__08lx_n
call fcn.004069b0
call fcn.004107b0
mov dword [eax], 0x4163f5
mov dword [eax + 4], 0x168
mov eax, dword [ebp - 0x42c]
mov dword [esp + 4], str.Expected_next_to_be_unchanged__got__p_n
cmp eax, 0xdeadbeef
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004069b0
mov ebx, dword [ebp - 0x424]
lea eax, [ebp - 0x424]
mov edi, dword [ebx]
cmp ebx, eax
je 0x40733f
mov eax, dword fs:[0x18]
mov dword [ebp - 0x434], eax
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
lea esi, [esi]
call fcn.004107b0
mov dword [eax], 0x4163f5
mov dword [eax + 4], 0x16f
lea eax, [ebx + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Assembly_not_enumerated:__s_n
mov dword [esp], 0
call fcn.004069b0
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebx]
mov dword [eax], ecx
mov dword [esp + 8], ebx
mov ebx, edi
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x434]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
lea eax, [ebp - 0x424]
mov edi, dword [edi]
sub esp, 0xc
cmp ebx, eax
jne 0x4072d8
mov eax, dword [ebp - 0x430]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret