Function at 0x422610
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x46c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x422646
lea eax, [ebp - 0x440]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00421100
test eax, eax
jne 0x422660
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov dword [esp], str.__invalid____lxh___
call fcn.004242a0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x444]
mov dword [esp], ebx
mov edi, str.__none__
mov dword [esp + 8], eax
mov dword [esp + 4], 1
call fcn.00421100
test eax, eax
jne 0x4226a0
mov edx, dword [ebp - 0x440]
lea eax, [edx - 0xb]
cmp eax, 6
ja case.default.0x422695
jmp dword [eax*4 + 0x439d3c]
mov edi, dword [ebp - 0x444]
mov eax, str.__none__
test edi, edi
cmove edi, eax
jmp 0x422683
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edi
test edx, edx
je 0x422714
mov dword [esp], str.Basic__ls_
call fcn.004242a0
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x444]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, 1
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edi
mov dword [esp], 0x439c91
call fcn.004242a0
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x4226d5
lea eax, [ebp - 0x43c]
mov dword [esp + 4], 0x18
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00421100
mov eax, dword [ebp - 0x43c]
cmp eax, 1
je 0x422af8
cmp eax, 2
je 0x422ae0
test eax, eax
je 0x422ac8
test byte [0x42c844], 2
jne 0x422ba9
lea esi, [esi]
nop
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x422720
lea eax, [ebp - 0x438]
mov dword [esp + 4], 0xd
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00421100
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
test eax, eax
je 0x4226d5
mov dword [esp], 0x439cdc
call fcn.004242a0
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x420], 0
lea ecx, [ebp - 0x424]
test eax, eax
je 0x422837
mov dword [ebp - 0x450], esi
mov esi, ecx
mov edx, 0x100
cmp eax, edx
cmova eax, edx
mov dword [ebp - 0x424], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 7
mov dword [esp], ebx
call fcn.00421100
mov edx, eax
mov eax, dword [ebp - 0x438]
test edx, edx
jne 0x422bda
mov edx, 0x100
cmp eax, edx
cmovbe edx, eax
add dword [ebp - 0x420], 0x100
sub eax, edx
mov dword [ebp - 0x438], eax
test eax, eax
jne 0x4227dd
mov esi, dword [ebp - 0x450]
mov dword [esp], 0x439cdf
call fcn.004242a0
jmp 0x4226d5
mov dword [esp + 4], edi
mov dword [esp], str.enum__ls
call fcn.004242a0
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x4226d5
lea esi, [ebp - 0x430]
mov dword [esp + 4], 3
mov dword [esp + 8], esi
mov dword [esp], ebx
call fcn.00421100
mov eax, dword [ebx + 4]
mov dword [ebp - 0x42c], eax
mov dword [esp], esi
mov dword [esp + 4], 0
call fcn.00422610
mov dword [esp], 0x439c95
call fcn.004242a0
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x4226d5
lea esi, [ebp - 0x430]
mov dword [esp + 4], 3
mov dword [esp + 8], esi
mov dword [esp], ebx
call fcn.00421100
mov eax, dword [ebx + 4]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00422610
lea eax, [ebp - 0x438]
mov dword [esp + 4], 0xc
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00421100
test eax, eax
je 0x422a88
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], edi
mov dword [esp], str.__ls__ld_
mov dword [esp + 8], eax
call fcn.004242a0
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x4226d5
lea esi, [ebp - 0x430]
mov dword [esp + 4], 3
mov dword [esp + 8], esi
mov dword [esp], ebx
call fcn.00421100
mov eax, dword [ebx]
cmp dword [ebp - 0x430], eax
je 0x422aa8
mov eax, dword [ebx + 4]
mov dword [ebp - 0x42c], eax
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00422610
mov dword [esp + 4], edi
mov dword [esp], str.___ls__
call fcn.004242a0
lea eax, [ebp - 0x438]
mov dword [esp + 4], 0xd
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00421100
test eax, eax
je 0x422a29
mov eax, dword [ebp - 0x438]
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x420], 0
test eax, eax
je 0x422b98
mov dword [ebp + 8], ebx
mov ebx, ecx
mov edx, 0x100
cmp eax, edx
cmova eax, edx
mov dword [ebp - 0x424], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 7
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00421100
mov edx, eax
mov eax, dword [ebp - 0x438]
test edx, edx
jne 0x422b0d
mov edx, 0x100
cmp eax, edx
cmovbe edx, eax
add dword [ebp - 0x420], 0x100
sub eax, edx
mov dword [ebp - 0x438], eax
test eax, eax
jne 0x4229d2
mov dword [esp], 0x439d1e
call fcn.004242a0
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x4226d5
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
test byte [0x42c844], 2
je 0x4226d5
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Unknown_type__lu_for__ls_n
mov dword [esp + 8], str.types_print_type
mov dword [esp + 4], 0x42c844
mov dword [esp], 1
call fcn.00420f60
jmp 0x4226d5
mov dword [esp + 4], edi
mov dword [esp], str.__ls__
call fcn.004242a0
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x4226d5
mov dword [ebp - 0x42c], 0
mov dword [esp], str._ret_typeself_
call fcn.004242a0
jmp 0x422981
mov dword [esp + 4], edi
mov dword [esp], str.struct__ls
call fcn.004242a0
jmp 0x422780
mov dword [esp + 4], edi
mov dword [esp], str.union__ls
call fcn.004242a0
jmp 0x422780
mov dword [esp + 4], edi
mov dword [esp], str.class__ls
call fcn.004242a0
jmp 0x422780
mov edx, dword [ebp - 0x424]
cmp eax, edx
cmovbe edx, eax
test edx, edx
je 0x422a09
xor edi, edi
mov eax, dword [ebx + edi*4 + 8]
mov dword [ebp - 0x430], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 3
mov dword [esp], esi
call fcn.00421100
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00422610
mov eax, dword [ebp - 0x438]
mov edx, dword [ebp - 0x424]
cmp eax, edx
cmovbe edx, eax
lea ecx, [edx - 1]
cmp edi, ecx
jb 0x422b6f
cmp eax, 0x100
jbe 0x422b8c
mov dword [esp], 0x439ce3
call fcn.004242a0
mov eax, dword [ebp - 0x438]
mov edx, dword [ebp - 0x424]
cmp eax, edx
cmovbe edx, eax
add edi, 1
cmp edi, edx
jb 0x422b22
jmp 0x422a09
mov dword [esp], str.void
call fcn.004242a0
jmp 0x422a29
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unsupported_UDT_type___ld__for__ls_n
mov dword [esp + 8], str.types_print_type
mov dword [esp + 4], 0x42c844
mov dword [esp], 1
call fcn.00420f60
jmp 0x422780
mov edx, dword [ebp - 0x424]
cmp eax, edx
cmovbe edx, eax
test edx, edx
je 0x422811
lea eax, [ebp - 0x430]
mov dword [ebp - 0x44c], esi
xor edi, edi
mov ecx, dword fs:[0x18]
mov esi, eax
mov dword [ebp - 0x454], ecx
mov eax, dword [ebp - 0x44c]
movd xmm1, dword [ebx + 4]
movd xmm0, dword [eax + edi*4 + 8]
lea eax, [ebp - 0x434]
punpckldq xmm0, xmm1
movq qword [ebp - 0x430], xmm0
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call fcn.00421100
test eax, eax
je 0x422cd2
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x422cd2
mov dword [esp + 4], eax
mov dword [esp], 0x439c91
call fcn.004242a0
mov eax, dword [ebp - 0x434]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x454]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x450]
call eax
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 3
mov dword [esp], esi
call fcn.00421100
test eax, eax
jne 0x422cf9
mov eax, dword [ebp - 0x438]
mov edx, dword [ebp - 0x424]
cmp eax, edx
cmovbe edx, eax
lea ecx, [edx - 1]
cmp edi, ecx
jb 0x422cc6
cmp eax, 0x100
jbe 0x422ce3
mov dword [esp], 0x439ce3
call fcn.004242a0
mov eax, dword [ebp - 0x438]
mov edx, dword [ebp - 0x424]
cmp eax, edx
cmovbe edx, eax
add edi, 1
cmp edi, edx
jb 0x422c0a
mov esi, dword [ebp - 0x44c]
jmp 0x422811
mov dword [esp], 0x439ce1
call fcn.004242a0
mov eax, dword [ebp + 0xc]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00422610
jmp 0x422ca7