Function at 0x47f200
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62b8c8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x6bae70]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xc], eax
dec eax
je 0x47f362
mov edi, dword [ebx + 8]
lea eax, [esp + 0x20]
mov ecx, dword [ebp + 0xc]
add dword [ebx + 0x10], ecx
mov dword [esp + 0x18], ecx
mov esi, dword [edi + 0x30]
mov edx, dword [esi]
mov ecx, edx
cmp ecx, dword [ebp + 0xc]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x18]
cmovae eax, ecx
mov ecx, dword [eax]
sub edx, ecx
mov dword [esi], edx
mov eax, dword [edi + 0x20]
add dword [eax], ecx
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
mov eax, dword [edi + 0x1c]
sub ecx, dword [eax]
mov eax, dword [edi + 0x2c]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x10]
mov al, byte [eax + 4]
mov byte [esp + 0x17], al
test al, al
jne 0x47f2a4
mov eax, dword [ebx]
cmp ecx, eax
jae 0x47f2a4
sub eax, ecx
mov ecx, 0x10000
cmp eax, ecx
cmovb ecx, eax
jmp 0x47f2a6
xor ecx, ecx
mov ebx, dword [ebx + 8]
lea edx, [esp + 0x24]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], 0x200
mov eax, dword [ebx + 0x20]
mov esi, dword [ebx + 0x44]
sub esi, dword [ebx + 0x3c]
mov ecx, dword [eax]
mov eax, dword [ebx + 0x1c]
mov edi, dword [eax]
mov eax, dword [ebx + 0x20]
sub edi, ecx
add edi, dword [ebx + 0x38]
mov dword [esp + 0x24], edi
mov ecx, dword [eax]
sub esi, ecx
mov eax, dword [ebx + 0x1c]
lea ecx, [esp + 0x28]
add esi, dword [eax]
lea eax, [esp + 0x18]
cmp edi, dword [esp + 0x20]
mov dword [esp + 0x28], esi
cmovae edx, eax
cmp esi, 0x200
lea eax, [esp + 0x30]
cmovbe ecx, eax
mov eax, dword [edx]
cmp eax, dword [ecx]
cmovb ecx, edx
cmp byte [esp + 0x17], 0
mov edi, dword [ecx]
jne 0x47f318
cmp dword [ebp + 0xc], 0
je 0x47f320
test edi, edi
jne 0x47f3ea
mov esi, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov byte [esp + 0x30], 0
lea ecx, [esi + 0x18]
lea eax, [esi + 0x10]
push ecx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
push ecx
push dword [esp + 0x3c]
add ecx, 8
call fcn.00481580
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x10]
mov al, byte [eax + 4]
test al, al
jne 0x47f383
mov eax, dword [ebx]
cmp ecx, eax
jae 0x47f383
sub eax, ecx
mov ecx, 0x10000
cmp eax, ecx
cmovb ecx, eax
jmp 0x47f385
xor ecx, ecx
mov ebx, dword [ebx + 8]
lea edx, [esp + 0x30]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x200
mov eax, dword [ebx + 0x20]
mov esi, dword [ebx + 0x44]
mov ecx, dword [eax]
mov eax, dword [ebx + 0x1c]
mov edi, dword [eax]
mov eax, dword [ebx + 0x20]
sub edi, ecx
add edi, dword [ebx + 0x38]
mov dword [esp + 0x30], edi
mov ecx, dword [eax]
sub esi, ecx
mov eax, dword [ebx + 0x1c]
lea ecx, [esp + 0x28]
sub esi, dword [ebx + 0x3c]
add esi, dword [eax]
lea eax, [esp + 0x18]
cmp edi, dword [esp + 0x20]
mov dword [esp + 0x28], esi
cmovae edx, eax
cmp esi, 0x200
lea eax, [esp + 0x24]
cmovbe ecx, eax
mov eax, dword [edx]
cmp eax, dword [ecx]
cmovb ecx, edx
mov edi, dword [ecx]
mov esi, dword [esp + 0x1c]
sub esp, 0x48
mov ecx, esp
mov dword [esp + 0x78], esp
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
lea eax, [esi + 0x18]
push eax
add ecx, 0x18
call fcn.0046ffc0
push edi
lea eax, [esp + 0x80]
mov dword [esp + 0x94], 0
mov ecx, dword [esi + 8]
push eax
call fcn.004442c0
lea eax, [esp + 0x7c]
mov dword [esp + 0x90], 0xffffffff
mov ecx, dword [esi + 4]
push eax
call fcn.00480a70
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc