Function at 0x5aaf50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0x14]
sub esp, 0xfc
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
test ecx, ecx
push edi
je 0x5aaf6d
mov dword [ecx], eax
cmp dword [ebp + 0xc], 5
jne 0x5ab179
mov esi, dword [ebp + 0x10]
mov edi, 0x955450
add esi, 8
call fcn.005a60b0
mov edi, eax
add edi, 0xbf40
push edi
push str.Ghost_size_Requested_to_Load___d_n
call fcn.00408d10
push 1
lea eax, [edi - 8]
mov ecx, esi
call fcn.00582ed0
add esp, 0xc
cmp eax, dword [esi - 4]
jne 0x5ab1b0
mov esi, dword [ebp + 0x10]
mov ecx, 0x3c
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x100]
and al, 0xf
cmp al, 1
jne 0x5ab1b0
mov edi, dword [ebp + 0x14]
test edi, edi
mov esi, dword [esp + 0x30]
je 0x5ab00b
xor eax, eax
test esi, esi
jbe 0x5ab00b
mov ecx, dword [esp + eax*8 + 0x38]
cmp ecx, dword [eax*8 + 0x954504]
jne 0x5ab182
mov edx, dword [esp + eax*8 + 0x3c]
cmp edx, dword [eax*8 + 0x954508]
jne 0x5ab182
add eax, 1
cmp eax, esi
jb 0x5aafe2
test byte [0xb2dda0], 1
jne 0x5ab02d
or dword [0xb2dda0], 1
call fcn.00590b60
push 0x681770
call fcn.004a9213
add esp, 4
mov eax, dword [esp + 0x20]
push eax
mov ecx, 0xb1763c
call fcn.00591120
push ebx
mov edi, eax
call fcn.005ae130
test byte [0xb2dda0], 1
jne 0x5ab066
or dword [0xb2dda0], 1
call fcn.00590b60
push 0x681770
call fcn.004a9213
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, 0xb1763c
call fcn.00591360
mov edi, ebx
call fcn.005aef10
mov ecx, dword [esp + 0x28]
mov eax, ebx
call fcn.005ae0d0
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x78]
mov dword [ebx + 0xc], edx
xor edx, edx
mov eax, edi
div esi
mov dword [ebx + 0x470], esi
cmp dword [0x9549f4], 4
mov dword [esp + 0x10], 0x9555d0
mov dword [esp + 0x14], eax
je 0x5ab0bc
test byte [ebx + 0x474], 8
je 0x5ab0c4
mov dword [esp + 0x10], 0x954708
xor ecx, ecx
test edi, edi
jbe 0x5ab104
lea esi, [ecx - 0x11]
lea ecx, [ecx]
xor edx, edx
mov eax, ecx
div dword [esp + 0x14]
test edx, edx
jne 0x5ab0df
add esi, 0x11
cmp edx, 0x10
jae 0x5ab0fd
lea eax, [esi + edx]
mov edx, dword [esp + ecx*8 + 0x80]
mov dword [ebx + eax*8 + 0x30], edx
mov edx, dword [esp + ecx*8 + 0x84]
mov dword [ebx + eax*8 + 0x34], edx
add ecx, 1
cmp ecx, edi
jb 0x5ab0d0
mov edi, dword [esp + 0x10]
push 0
add edi, 0xd48
push edi
call fcn.005a8d30
mov esi, dword [ebp + 0x10]
push 1
lea eax, [esi + 0xf0]
push edi
call fcn.005a9870
mov eax, dword [esp + 0x104]
push 0xbe50
lea ecx, [eax + esi + 0xf0]
push ecx
lea edx, [ebx + 0xc2f8]
push edx
call fcn.004ad5c0
mov eax, dword [esp + 0x10c]
shr eax, 4
push eax
push 0x6cc
push str.Load_Ghost_Length___d_Record_Length___d_n
mov dword [ebx + 0xc2e8], 0x6cc
mov dword [ebx + 0xc2ec], eax
call fcn.00408d10
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [eax*8 + 0x954508]
mov edx, dword [eax*8 + 0x954504]
push ecx
mov ecx, dword [esp + eax*8 + 0x40]
push edx
mov edx, dword [esp + eax*8 + 0x40]
push ecx
push edx
push eax
push str.ghost__stats_conflict_lap__d__llu__llu_n
call fcn.00408d10
add esp, 0x18
mov dword [edi], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10