Function at 0x100046e0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
add eax, 0x68
push esi
mov esi, edx
push ebx
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ebx, dword [edi + 0x64]
sub esp, 4
test ebx, ebx
jne 0x10004721
jmp 0x10004948
mov eax, dword [ebx + 4]
cmovns eax, dword [ebx + 8]
mov ebx, eax
test eax, eax
je 0x10004948
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [edi + 0x60]
test eax, eax
jne 0x10004710
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x18], eax
mov edx, dword [ebx + 8]
mov dword [ebp - 0x10], ecx
test edx, edx
je 0x10004790
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10004810
mov eax, dword [ebp - 0x18]
lea esi, [esi]
mov ecx, edx
mov edx, dword [edx + 4]
test edx, edx
jne 0x10004750
mov edx, dword [ecx]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x10], eax
test edx, edx
je 0x10004bd9
mov eax, dword [ebp - 0x10]
cmp ecx, dword [edx + 4]
je 0x10004c47
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x10]
mov esi, dword [ecx]
test eax, eax
je 0x10004832
jmp 0x1000482b
mov eax, dword [ebp - 0x10]
mov edx, dword [ebx]
test eax, eax
je 0x10004c5f
mov eax, dword [ebp - 0x10]
test edx, edx
je 0x10004ae8
cmp ebx, dword [edx + 4]
je 0x10004b20
mov dword [edx + 8], eax
mov esi, dword [ebx]
mov eax, dword [ebp - 0x10]
mov dword [eax], esi
test byte [ebx + 0xc], 1
je 0x1000488e
mov eax, dword [edi + 0x64]
test eax, eax
je 0x100047d0
and dword [eax + 0xc], 0xfffffffe
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
mov dword [esp + 8], ebx
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]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebx]
test ecx, ecx
je 0x10004bec
cmp ebx, dword [ecx + 4]
je 0x10004c15
mov dword [ecx + 8], edx
mov ecx, ebx
mov dword [ebp - 0x10], edx
mov esi, dword [ecx]
mov eax, dword [ebp - 0x10]
mov dword [eax], esi
test byte [ecx + 0xc], 1
jne 0x10004ad0
cmp ebx, ecx
je 0x1000488e
mov edx, dword [ebx]
mov dword [ecx], edx
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx + 0xc], eax
test edx, edx
je 0x10004af0
cmp ebx, dword [edx + 4]
je 0x10004b18
mov dword [edx + 8], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x10004873
mov dword [edx], ecx
mov edx, dword [ecx + 4]
test edx, edx
je 0x1000487c
mov dword [edx], ecx
cmp ebx, esi
je 0x10004b00
cmp dword [ebp - 0x18], 1
je 0x100047c5
test esi, esi
je 0x10004b28
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x100048b8
mov eax, dword [ebp - 0x10]
test byte [eax + 0xc], 1
je 0x100048b8
mov eax, dword [ebp - 0x10]
and dword [eax + 0xc], 0xfffffffe
jmp 0x100047c5
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
je 0x10004a38
test eax, eax
je 0x10004c66
mov edx, dword [eax + 0xc]
test dl, 1
jne 0x10004990
mov edx, dword [eax + 4]
test edx, edx
je 0x100049d0
test byte [edx + 0xc], 1
je 0x100049d0
mov edx, dword [eax + 0xc]
mov ecx, dword [esi + 0xc]
and edx, 0xfffffffe
and ecx, 1
or edx, ecx
mov dword [eax + 0xc], edx
and dword [esi + 0xc], 0xfffffffe
mov eax, dword [eax + 4]
test eax, eax
je 0x1000490f
and dword [eax + 0xc], 0xfffffffe
mov edx, dword [esi]
mov eax, dword [esi + 4]
test edx, edx
je 0x10004be4
cmp dword [edx + 4], esi
je 0x10004c05
mov dword [edx + 8], eax
mov edx, dword [eax + 8]
mov dword [esi + 4], edx
test edx, edx
je 0x10004934
mov dword [edx], esi
mov dword [eax + 8], esi
mov edx, dword [esi]
mov dword [eax], edx
mov dword [esi], eax
jmp 0x100047c5
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
test byte [0x1002d01c], 4
je 0x10004803
mov dword [esp + 0xc], str.cannot_find_key_in_wrapper_lookup_n
mov dword [esp + 8], str.wrapper_remove_entry
mov dword [esp + 4], 0x1002d01c
mov dword [esp], 2
call fcn.10001420
jmp 0x10004803
and edx, 0xfffffffe
mov dword [eax + 0xc], edx
mov edx, dword [esi]
or dword [esi + 0xc], 1
mov eax, dword [esi + 4]
test edx, edx
je 0x10004c1d
cmp dword [edx + 4], esi
je 0x10004bd1
mov dword [edx + 8], eax
mov edx, dword [eax + 8]
mov dword [esi + 4], edx
test edx, edx
je 0x100049bf
mov dword [edx], esi
mov dword [eax + 8], esi
mov edx, dword [esi]
mov dword [eax], edx
mov dword [esi], eax
mov eax, dword [esi + 4]
jmp 0x100048da
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10004ab0
test byte [ecx + 0xc], 1
je 0x10004ab0
test edx, edx
jne 0x10004a27
and dword [ecx + 0xc], 0xfffffffe
mov ecx, dword [eax]
or dword [eax + 0xc], 1
mov edx, dword [eax + 8]
test ecx, ecx
je 0x10004c0d
cmp eax, dword [ecx + 4]
je 0x10004c25
mov dword [ecx + 8], edx
mov ecx, dword [edx + 4]
mov dword [eax + 8], ecx
test ecx, ecx
je 0x10004a16
mov dword [ecx], eax
mov dword [edx + 4], eax
mov ecx, dword [eax]
mov dword [edx], ecx
mov dword [eax], edx
mov eax, dword [esi + 4]
jmp 0x100048ef
test byte [edx + 0xc], 1
je 0x100049e9
jmp 0x100048ef
mov eax, dword [esi + 8]
test eax, eax
je 0x10004c66
mov edx, dword [eax + 0xc]
test dl, 1
je 0x10004a86
and edx, 0xfffffffe
mov dword [eax + 0xc], edx
mov edx, dword [esi]
or dword [esi + 0xc], 1
mov eax, dword [esi + 8]
test edx, edx
je 0x10004c3f
cmp dword [edx + 4], esi
je 0x10004c57
mov dword [edx + 8], eax
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
test edx, edx
je 0x10004a7a
mov dword [edx], esi
mov dword [eax + 4], esi
mov edx, dword [esi]
mov dword [eax], edx
mov dword [esi], eax
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
test edx, edx
je 0x10004a97
test byte [edx + 0xc], 1
jne 0x10004b40
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10004ab0
test byte [ecx + 0xc], 1
jne 0x10004b47
lea esi, cs:[esi]
or dword [eax + 0xc], 1
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
test eax, eax
je 0x100048a6
mov esi, eax
jmp 0x1000489d
mov dword [ebp - 0x18], 1
cmp ebx, ecx
jne 0x10004840
jmp 0x100047c5
mov dword [edi + 0x64], eax
jmp 0x100047b4
mov dword [edi + 0x64], ecx
jmp 0x1000486a
cmp dword [ebp - 0x18], 1
mov esi, ecx
jne 0x10004896
jmp 0x100047c5
mov dword [edx + 4], ecx
jmp 0x1000486a
mov dword [edx + 4], eax
jmp 0x100047b4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100047c5
jmp 0x100048a6
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10004b4d
test byte [ecx + 0xc], 1
jne 0x10004b86
and dword [edx + 0xc], 0xfffffffe
mov edx, dword [eax]
or dword [eax + 0xc], 1
mov ecx, dword [eax + 4]
test edx, edx
je 0x10004c37
cmp eax, dword [edx + 4]
je 0x10004c4f
mov dword [edx + 8], ecx
mov edx, dword [ecx + 8]
mov dword [eax + 4], edx
test edx, edx
je 0x10004b7a
mov dword [edx], eax
mov dword [ecx + 8], eax
mov edx, dword [eax]
mov dword [ecx], edx
mov dword [eax], ecx
mov eax, dword [esi + 8]
mov edx, dword [eax + 0xc]
mov ecx, dword [esi + 0xc]
and edx, 0xfffffffe
and ecx, 1
or edx, ecx
mov dword [eax + 0xc], edx
and dword [esi + 0xc], 0xfffffffe
mov eax, dword [eax + 8]
test eax, eax
je 0x10004ba6
and dword [eax + 0xc], 0xfffffffe
mov edx, dword [esi]
mov eax, dword [esi + 8]
test edx, edx
je 0x10004c2d
cmp dword [edx + 4], esi
je 0x10004c32
mov dword [edx + 8], eax
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
test edx, edx
je 0x10004bc3
mov dword [edx], esi
mov dword [eax + 4], esi
mov edx, dword [esi]
mov dword [eax], edx
mov dword [esi], eax
jmp 0x100047c5
mov dword [edx + 4], eax
jmp 0x100049b3
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x64], eax
jmp 0x1000477b
mov dword [edi + 0x64], eax
jmp 0x10004928
mov dword [edi + 0x64], edx
mov esi, dword [ebx]
mov dword [edx], esi
test byte [ebx + 0xc], 1
jne 0x100047c5
mov dword [ebp - 0x10], edx
jmp 0x1000488e
mov dword [edx + 4], eax
jmp 0x10004928
mov dword [edi + 0x64], edx
jmp 0x10004a0a
mov dword [ecx + 4], edx
jmp 0x10004826
mov dword [edi + 0x64], eax
jmp 0x100049b3
mov dword [ecx + 4], edx
jmp 0x10004a0a
mov dword [edi + 0x64], eax
jmp 0x10004bb7
mov dword [edx + 4], eax
jmp 0x10004bb7
mov dword [edi + 0x64], ecx
jmp 0x10004b6e
mov dword [edi + 0x64], eax
jmp 0x10004a6e
mov dword [edx + 4], eax
jmp 0x1000477b
mov dword [edx + 4], ecx
jmp 0x10004b6e
mov dword [edx + 4], eax
jmp 0x10004a6e
mov ecx, ebx
jmp 0x1000475e
mov eax, dword [4]
ud2