Function at 0x8102e2
Capabilities:
Get process heap flags
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d7d38
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x30]
cmp eax, 0xc
jne 0x8103f4
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xec]
mov edi, eax
sub edi, 0xd
neg edi
sbb edi, edi
xor ecx, ecx
lea eax, [esp + 0x1c]
lea edx, [esp + 0x18]
inc edi
mov dword [esp + 0x1c], 0x5f91e4
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
mov ebx, dword [esi + 0x68]
mov eax, dword [ebx + 4]
cmp eax, ecx
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
je 0x810377
test edi, edi
mov ecx, esi
jne 0x81035e
mov ecx, eax
push eax
push ecx
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.008102e2
mov ebx, dword [ebx]
mov eax, dword [ebx + 4]
add esp, 0x10
test eax, eax
jne 0x810356
test edi, edi
je 0x8103c0
lea ebx, [esp + 0x18]
lea ecx, [ecx]
mov esi, dword [ebx]
lea ecx, [esp + 0x1c]
cmp esi, ecx
je 0x8103c0
test esi, esi
lea ebx, [esi + 8]
je 0x8103c0
mov edx, dword [esi + 0x10]
mov edi, dword [edx + 0x38]
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x6c]
test eax, eax
jne 0x810382
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov esi, dword [esi + 0xc]
push ecx
push edx
push esi
push esi
lea eax, [esp + 0x28]
push eax
push ebp
call fcn.0080bf32
add esp, 0x18
jmp 0x810382
mov eax, dword [esp + 0x20]
test eax, eax
je 0x8103ce
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x8104e3
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax + 4], edx
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
cmp dword [esp + 0x40], esi
je 0x8104e3
mov al, byte [esi + 0x24]
test al, al
jne 0x8104e3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
cmp eax, 1
jne 0x8104e3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xec]
cmp eax, 1
je 0x81043b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xec]
cmp eax, 2
jne 0x8104e3
mov edi, dword [esi + 0x38]
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 0x6c]
mov ecx, dword [edi + 4]
lea ebx, [edi + 4]
mov ebp, eax
mov eax, dword [ecx]
mov dword [esp + 0x14], ebp
call dword [eax + 0x6c]
test ebp, ebp
mov dword [esp + 0x10], eax
je 0x810466
test eax, eax
jne 0x8104e3
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov ebp, dword [edi]
call dword [edx + 0x24]
mov edx, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x44], eax
call dword [edx + 0x24]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jne 0x8104e3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x8104a9
mov eax, dword [edi]
mov ebp, dword [esp + 0x38]
push eax
push ebx
push ebp
call fcn.007890c2
mov edx, dword [esi]
add esp, 0xc
mov ecx, esi
call dword [edx + 0x78]
mov eax, dword [ebx]
mov ecx, dword [edi]
jmp 0x8104cd
mov eax, dword [esp + 0x14]
test eax, eax
je 0x8104e3
mov eax, dword [ebx]
mov ebp, dword [esp + 0x38]
push eax
push edi
push ebp
call fcn.007890c2
mov edx, dword [esi]
add esp, 0xc
mov ecx, esi
call dword [edx + 0x78]
mov eax, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push ecx
push eax
push eax
push edx
push ebp
call fcn.0080bf32
add esp, 0x18
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret