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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x720468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
call fcn.005e9e10
xor edi, edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x54], edi
call fcn.005b3190
mov ebx, 1
push str.StrRef
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], bl
call fcn.005e5a90
mov eax, dword [0x7a3a28]
mov eax, dword [eax + 0xb8]
mov eax, dword [eax + 0x2c]
lea ecx, [esp + 0x14]
push ecx
movzx ecx, byte [ebp + 8]
lea edx, [esp + 0x24]
push edx
push ecx
mov ecx, eax
mov byte [esp + 0x60], 2
call fcn.00413660
neg eax
sbb al, al
inc al
lea ecx, [esp + 0x20]
mov byte [esp + 0x13], al
mov byte [esp + 0x54], bl
call fcn.005e5c20
mov al, byte [esp + 0x13]
test al, al
je 0x58654e
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x14]
push 0x73d71c
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], edx
call fcn.00406d80
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esi + 0x378]
call fcn.00406120
push str.Body_Bag
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea edx, [esp + 0x20]
push edx
mov ecx, esi
mov byte [esp + 0x58], 3
call fcn.00553040
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x228]
call fcn.005e9e70
push 0x73d71c
lea ecx, [esp + 0x24]
mov dword [esi + 0x270], edi
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x280], ebx
mov dword [esi + 0x284], ebx
mov byte [esi + 0x27c], 0xf
mov byte [esi + 0x276], 0
mov dword [esi + 0x278], edi
mov dword [esi + 0x288], ebx
mov byte [esi + 0x290], 0
mov dword [esi + 0xf8], edi
mov byte [esi + 0x274], 0x12
call fcn.005e5a90
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x264]
mov byte [esp + 0x58], 4
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
mov dl, byte [ebp + 8]
push 0xf
mov ecx, esi
mov byte [esi + 0x230], dl
mov dword [esi + 0xe0], 0xf
call fcn.004cc280
cmp byte [ebp + 8], 0xd9
setne al
push str.PO_PLC_B04_
lea ecx, [esp + 0x24]
mov byte [esi + 0x314], 0x10
mov byte [esi + 0x315], 0
mov byte [esi + 0x316], 0
mov dword [esi + 0x330], edi
lea eax, [eax*4 + 1]
mov byte [esi + 0x258], al
mov dword [esi + 0x260], edi
mov dword [esi + 0x328], ebx
mov dword [esi + 0x324], ebx
mov dword [esi + 0x26c], edi
mov byte [esi + 0x275], 0
call fcn.00406d80
mov edx, dword [esi]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call dword [edx + 0xcc]
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.00406d80
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esi + 0x240]
call fcn.00406120
lea ecx, [esp + 0x18]
call fcn.005e9ea0
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x234]
mov dword [esp + 0x20], 0x96d4
call fcn.005e9e70
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x2e4]
mov byte [esp + 0x58], 5
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x294]
mov byte [esp + 0x58], 6
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 0x29c]
mov byte [esp + 0x58], 7
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x2a4]
mov byte [esp + 0x58], 8
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x2ac]
mov byte [esp + 0x58], 9
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea eax, [esp + 0x20]
mov byte [esp + 0x54], 0xa
push eax
lea ecx, [esi + 0x2b4]
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x2bc]
mov byte [esp + 0x58], 0xb
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x2c4]
mov byte [esp + 0x58], 0xc
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 0x2cc]
mov byte [esp + 0x58], 0xd
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x2d4]
mov byte [esp + 0x58], 0xe
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x2dc]
mov byte [esp + 0x58], 0xf
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 0x2ec]
mov byte [esp + 0x58], 0x10
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.005e5a90
mov byte [esp + 0x54], 0x11
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x2f4]
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x2fc]
mov byte [esp + 0x58], 0x12
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 0x304]
mov byte [esp + 0x58], 0x13
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
push 0x73d71c
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x30c]
mov byte [esp + 0x58], 0x14
call fcn.005e5c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.005e5c20
mov edx, dword [esi]
push 0x2710
mov ecx, esi
mov dword [esi + 0x398], edi
call dword [edx + 0x7c]
mov eax, dword [esi + 4]
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
push eax
lea edx, [esi + 0x18]
push edx
call fcn.004ae6b0
mov ecx, eax
call fcn.004c7de0
mov ecx, esi
call fcn.00584870
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 0
call fcn.005e5c20
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 0xffffffff
call fcn.005ea000
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4