Function at 0x4a5910
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9d3e
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x57af80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x38], ebx
mov edi, dword [ebp + 8]
push 0xa001003
push edi
mov dword [ebp - 0x48], ebx
call dword [0x503850]
lea ecx, [ebx + 0x4c]
mov dword [ebp - 4], 0
mov dword [ebx], vtable.VHostProperties.0
mov dword [ebx + 8], vtable.VHostProperties.1.0
call fcn.0041a160
mov byte [ebp - 4], 1
call fcn.0040aac0
mov esi, dword [0x5031f0]
lea ecx, [ebx + 0x58]
mov dword [ebx + 0x54], eax
call esi
mov ecx, ebx
mov byte [ebp - 4], 2
add ecx, 0x60
call esi
mov esi, ebx
mov byte [ebp - 4], 3
push esi
lea ecx, [esi + 0x18]
call fcn.004a6fa0
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x48], edi
mov edi, dword [0x504050]
call edi
mov esi, dword [0x5031f4]
lea ecx, [ebx + 0x58]
push eax
call esi
mov ecx, dword [ebx + 0x30]
call edi
push eax
lea ecx, [ebx + 0x60]
call esi
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movq qword [ebp - 0x18], xmm0
call fcn.0041a160
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.004a61d0
mov esi, dword [0x503888]
lea eax, [ebp - 0x34]
push 0
push 0
push fcn.004a6630
push ebx
push 0
push esi
push dword [ebx + 0x40]
push eax
call fcn.004a57b0
add esp, 0x20
mov ecx, eax
mov byte [ebp - 4], 5
call dword [0x5024dc]
mov edi, dword [0x502e24]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call edi
push 0
push 0
push fcn.004a64f0
push ebx
push 0
push esi
push dword [ebx + 0x44]
lea eax, [ebp - 0x34]
push eax
call fcn.004a57b0
add esp, 0x20
mov ecx, eax
mov byte [ebp - 4], 6
call dword [0x5024dc]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call edi
mov esi, dword [0x50384c]
lea eax, [ebp - 0x34]
push 0
push 0
push fcn.004a65c0
push ebx
push 0
push esi
push dword [ebx + 0x28]
push eax
call fcn.004a5860
add esp, 0x20
mov ecx, eax
mov byte [ebp - 4], 7
call dword [0x5024dc]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call edi
push 0
push 0
push fcn.004a6600
push ebx
push 0
push esi
push dword [ebx + 0x30]
lea eax, [ebp - 0x34]
push eax
call fcn.004a5860
add esp, 0x20
mov ecx, eax
mov byte [ebp - 4], 8
call dword [0x5024dc]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call edi
push str._d1_3._0_4
lea ecx, [ebp - 0x3c]
call dword [0x502f0c]
mov ebx, dword [0x502490]
lea eax, [ebp - 0x3c]
push 0
push 1
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 9
call ebx
mov edi, dword [0x5031fc]
lea ecx, [ebp - 0x24]
push 0
push eax
mov byte [ebp - 4], 0xa
call edi
mov esi, dword [0x502494]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
call esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xd
call dword [0x502f10]
push str._0_9A_Fa_f:_
lea ecx, [ebp - 0x34]
call dword [0x502f0c]
mov byte [ebp - 4], 0xe
push 0
push 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x40]
call ebx
push 0
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xf
call edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x11
call esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x12
call dword [0x502f10]
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x24]
mov esi, dword [0x503848]
push eax
mov ecx, dword [ebx + 0x28]
call esi
mov ecx, dword [ebx + 0x30]
lea eax, [ebp - 0x30]
push eax
call esi
mov esi, dword [0x503174]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xd
call esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call esi
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4a5bab
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x4a5bab
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4a5bab
mov ecx, esi
call fcn.0041a8d0
push esi
call fcn.004df15c
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004df262
mov esp, ebp
pop ebp
ret 4