Function at 0x63586590
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
mov ebx, dword [ecx + 8]
test esi, esi
mov dword [ebp - 0x2c], eax
setne al
test ebx, ebx
mov edi, eax
sete dl
and edx, edi
test byte [0x6359d028], 8
jne 0x635865e0
test dl, dl
je 0x63586662
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov byte [ebp - 0x30], dl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], str._lu__p__u_n
mov dword [esp + 8], str.GetRoleTextA
mov dword [esp + 4], 0x6359d028
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.63584970
movzx edx, byte [ebp - 0x30]
test dl, dl
jne 0x635865ce
test byte [0x6359d028], 8
je 0x63586662
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], str._lu__p__u_n
mov dword [esp + 8], str.GetRoleTextW
mov dword [esp + 4], 0x6359d028
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.63584970
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [section..bss]
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
test eax, eax
jne 0x635866b0
test ebx, ebx
je 0x635865ce
mov eax, edi
test al, al
je 0x635865ce
mov byte [esi], 0
jmp 0x635865ce
lea edx, [eax + 1]
lea eax, [edx + edx]
mov dword [ebp - 0x34], edx
mov edi, dword fs:[0x18]
mov dword [ebp - 0x30], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x635865ce
mov edx, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym.oleacc.dll_GetRoleTextW
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0xc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x2c], ecx
call ecx
mov ecx, dword [ebp - 0x2c]
sub esp, 0x20
test esi, esi
je 0x63586800
cmp ebx, eax
jb 0x635867d0
mov dword [ebp - 0x2c], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea eax, [edx - 1]
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov byte [esi], 0
sub esp, 0xc
jmp 0x635865ce
mov dword [ebp - 0x2c], eax
jmp 0x63586797