Function at 0x10003470
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 0x100034b1
jmp 0x100036d8
mov eax, dword [ebx + 4]
cmovns eax, dword [ebx + 8]
mov ebx, eax
test eax, eax
je 0x100036d8
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [edi + 0x60]
test eax, eax
jne 0x100034a0
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x18], eax
mov edx, dword [ebx + 8]
mov dword [ebp - 0x10], ecx
test edx, edx
je 0x10003520
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100035a0
mov eax, dword [ebp - 0x18]
lea esi, [esi]
mov ecx, edx
mov edx, dword [edx + 4]
test edx, edx
jne 0x100034e0
mov edx, dword [ecx]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x10], eax
test edx, edx
je 0x10003969
mov eax, dword [ebp - 0x10]
cmp ecx, dword [edx + 4]
je 0x100039d7
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x10]
mov esi, dword [ecx]
test eax, eax
je 0x100035c2
jmp 0x100035bb
mov eax, dword [ebp - 0x10]
mov edx, dword [ebx]
test eax, eax
je 0x100039ef
mov eax, dword [ebp - 0x10]
test edx, edx
je 0x10003878
cmp ebx, dword [edx + 4]
je 0x100038b0
mov dword [edx + 8], eax
mov esi, dword [ebx]
mov eax, dword [ebp - 0x10]
mov dword [eax], esi
test byte [ebx + 0xc], 1
je 0x1000361e
mov eax, dword [edi + 0x64]
test eax, eax
je 0x10003560
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 0x1000397c
cmp ebx, dword [ecx + 4]
je 0x100039a5
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 0x10003860
cmp ebx, ecx
je 0x1000361e
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 0x10003880
cmp ebx, dword [edx + 4]
je 0x100038a8
mov dword [edx + 8], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x10003603
mov dword [edx], ecx
mov edx, dword [ecx + 4]
test edx, edx
je 0x1000360c
mov dword [edx], ecx
cmp ebx, esi
je 0x10003890
cmp dword [ebp - 0x18], 1
je 0x10003555
test esi, esi
je 0x100038b8
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x10003648
mov eax, dword [ebp - 0x10]
test byte [eax + 0xc], 1
je 0x10003648
mov eax, dword [ebp - 0x10]
and dword [eax + 0xc], 0xfffffffe
jmp 0x10003555
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
je 0x100037c8
test eax, eax
je 0x100039f6
mov edx, dword [eax + 0xc]
test dl, 1
jne 0x10003720
mov edx, dword [eax + 4]
test edx, edx
je 0x10003760
test byte [edx + 0xc], 1
je 0x10003760
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 0x1000369f
and dword [eax + 0xc], 0xfffffffe
mov edx, dword [esi]
mov eax, dword [esi + 4]
test edx, edx
je 0x10003974
cmp dword [edx + 4], esi
je 0x10003995
mov dword [edx + 8], eax
mov edx, dword [eax + 8]
mov dword [esi + 4], edx
test edx, edx
je 0x100036c4
mov dword [edx], esi
mov dword [eax + 8], esi
mov edx, dword [esi]
mov dword [eax], edx
mov dword [esi], eax
jmp 0x10003555
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
test byte [0x1002b01c], 4
je 0x10003593
mov dword [esp + 0xc], str.cannot_find_key_in_wrapper_lookup_n
mov dword [esp + 8], str.wrapper_remove_entry
mov dword [esp + 4], 0x1002b01c
mov dword [esp], 2
call fcn.10001220
jmp 0x10003593
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 0x100039ad
cmp dword [edx + 4], esi
je 0x10003961
mov dword [edx + 8], eax
mov edx, dword [eax + 8]
mov dword [esi + 4], edx
test edx, edx
je 0x1000374f
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 0x1000366a
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10003840
test byte [ecx + 0xc], 1
je 0x10003840
test edx, edx
jne 0x100037b7
and dword [ecx + 0xc], 0xfffffffe
mov ecx, dword [eax]
or dword [eax + 0xc], 1
mov edx, dword [eax + 8]
test ecx, ecx
je 0x1000399d
cmp eax, dword [ecx + 4]
je 0x100039b5
mov dword [ecx + 8], edx
mov ecx, dword [edx + 4]
mov dword [eax + 8], ecx
test ecx, ecx
je 0x100037a6
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 0x1000367f
test byte [edx + 0xc], 1
je 0x10003779
jmp 0x1000367f
mov eax, dword [esi + 8]
test eax, eax
je 0x100039f6
mov edx, dword [eax + 0xc]
test dl, 1
je 0x10003816
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 0x100039cf
cmp dword [edx + 4], esi
je 0x100039e7
mov dword [edx + 8], eax
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
test edx, edx
je 0x1000380a
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 0x10003827
test byte [edx + 0xc], 1
jne 0x100038d0
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10003840
test byte [ecx + 0xc], 1
jne 0x100038d7
lea esi, cs:[esi]
or dword [eax + 0xc], 1
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
test eax, eax
je 0x10003636
mov esi, eax
jmp 0x1000362d
mov dword [ebp - 0x18], 1
cmp ebx, ecx
jne 0x100035d0
jmp 0x10003555
mov dword [edi + 0x64], eax
jmp 0x10003544
mov dword [edi + 0x64], ecx
jmp 0x100035fa
cmp dword [ebp - 0x18], 1
mov esi, ecx
jne 0x10003626
jmp 0x10003555
mov dword [edx + 4], ecx
jmp 0x100035fa
mov dword [edx + 4], eax
jmp 0x10003544
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10003555
jmp 0x10003636
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100038dd
test byte [ecx + 0xc], 1
jne 0x10003916
and dword [edx + 0xc], 0xfffffffe
mov edx, dword [eax]
or dword [eax + 0xc], 1
mov ecx, dword [eax + 4]
test edx, edx
je 0x100039c7
cmp eax, dword [edx + 4]
je 0x100039df
mov dword [edx + 8], ecx
mov edx, dword [ecx + 8]
mov dword [eax + 4], edx
test edx, edx
je 0x1000390a
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 0x10003936
and dword [eax + 0xc], 0xfffffffe
mov edx, dword [esi]
mov eax, dword [esi + 8]
test edx, edx
je 0x100039bd
cmp dword [edx + 4], esi
je 0x100039c2
mov dword [edx + 8], eax
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
test edx, edx
je 0x10003953
mov dword [edx], esi
mov dword [eax + 4], esi
mov edx, dword [esi]
mov dword [eax], edx
mov dword [esi], eax
jmp 0x10003555
mov dword [edx + 4], eax
jmp 0x10003743
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x64], eax
jmp 0x1000350b
mov dword [edi + 0x64], eax
jmp 0x100036b8
mov dword [edi + 0x64], edx
mov esi, dword [ebx]
mov dword [edx], esi
test byte [ebx + 0xc], 1
jne 0x10003555
mov dword [ebp - 0x10], edx
jmp 0x1000361e
mov dword [edx + 4], eax
jmp 0x100036b8
mov dword [edi + 0x64], edx
jmp 0x1000379a
mov dword [ecx + 4], edx
jmp 0x100035b6
mov dword [edi + 0x64], eax
jmp 0x10003743
mov dword [ecx + 4], edx
jmp 0x1000379a
mov dword [edi + 0x64], eax
jmp 0x10003947
mov dword [edx + 4], eax
jmp 0x10003947
mov dword [edi + 0x64], ecx
jmp 0x100038fe
mov dword [edi + 0x64], eax
jmp 0x100037fe
mov dword [edx + 4], eax
jmp 0x1000350b
mov dword [edx + 4], ecx
jmp 0x100038fe
mov dword [edx + 4], eax
jmp 0x100037fe
mov ecx, ebx
jmp 0x100034ee
mov eax, dword [4]
ud2