Function at 0x5a8480
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x60dae4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a0630
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi], 0x62ac6c
mov dword [esi + 0xf8], eax
mov eax, dword [esp + 0x38]
xor ebx, ebx
mov dword [esi + 0xfc], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x100], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x104], ebx
mov dword [esi + 0x108], ebx
mov dword [esi + 0x10c], eax
mov dword [esi + 0x110], ecx
mov dword [esi + 0x114], edx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x850], ebx
or edx, 0xffffffff
mov dword [esi + 0x854], ebx
mov dword [esi + 0x858], edx
mov dword [esi + 0x85c], ebx
mov dword [esi + 0x860], 0x1f4
mov byte [esi + 0x864], 1
mov dword [esi + 0x868], ebx
mov word [esi + 0x870], dx
mov dword [esi + 0x874], ebx
mov byte [esi + 0x878], bl
lea edi, [esi + 0x92c]
mov ecx, 9
xor eax, eax
mov dword [esi + 0x87c], ebx
mov dword [esi + 0x88c], ebx
mov word [esi + 0x890], bx
mov word [esi + 0x892], bx
mov word [esi + 0x894], bx
mov dword [esi + 0x898], ebx
mov dword [esi + 0x89c], ebx
mov word [esi + 0x8a0], bx
mov word [esi + 0x8a2], bx
mov word [esi + 0x8a4], bx
mov byte [esi + 0x8a6], bl
mov byte [esi + 0x90a], bl
mov dword [esi + 0x90c], ebx
mov dword [esi + 0x910], ebx
mov dword [esi + 0x914], ebx
mov dword [esi + 0x918], ebx
mov byte [esi + 0x91c], bl
mov dword [esi + 0x920], ebx
mov byte [esi + 0x928], bl
mov dword [esi + 0x950], ebx
mov byte [esi + 0x954], bl
mov byte [esi + 0x955], bl
mov byte [esi + 0x956], bl
mov word [esi + 0x958], dx
mov dword [esi + 0x95c], edx
mov dword [esi + 0x960], ebx
mov word [esi + 0x964], dx
mov dword [esp + 0x18], ebx
rep stosd dword es:[edi], eax
lea eax, [esi + 0x148]
mov ecx, 0x29
mov byte [eax], bl
add eax, 0x2c
dec ecx
jne 0x5a860d
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ecx
mov ecx, esi
mov dword [esi + 0x82c], edx
mov dword [esi + 0x830], ebx
call fcn.004a0820
test eax, eax
jne 0x5a864a
mov dword [esi + 0xdc], 1
jmp 0x5a87be
mov edx, dword [esp + 0x40]
mov ecx, esi
push edx
call fcn.005a88d0
push 0x1c
call fcn.005faa3d
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x18], 1
je 0x5a8682
push 0xc639
push str.health.shp
mov ecx, eax
call fcn.0051ef10
mov edi, eax
jmp 0x5a8684
xor edi, edi
cmp edi, ebx
mov byte [esp + 0x18], bl
mov dword [esi + 0x104], edi
je 0x5a86ad
cmp byte [edi + 0x14], bl
jne 0x5a86ad
mov ecx, edi
call fcn.0051f200
push edi
call fcn.005faa32
add esp, 4
mov dword [esi + 0x104], ebx
push 0x1c
call fcn.005faa3d
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x18], 2
je 0x5a86d9
push 0xc62b
push str.itemicon.shp
mov ecx, eax
call fcn.0051ef10
mov edi, eax
jmp 0x5a86db
xor edi, edi
cmp edi, ebx
mov byte [esp + 0x18], bl
mov dword [esi + 0x108], edi
je 0x5a8704
cmp byte [edi + 0x14], bl
jne 0x5a8704
mov ecx, edi
call fcn.0051f200
push edi
call fcn.005faa32
add esp, 4
mov dword [esi + 0x108], ebx
push 0x1c
call fcn.005faa3d
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x18], 3
je 0x5a8730
push 0xc64c
push str.sundial.shp
mov ecx, eax
call fcn.0051ef10
mov edi, eax
jmp 0x5a8732
xor edi, edi
cmp edi, ebx
mov byte [esp + 0x18], bl
mov dword [esi + 0x118], edi
je 0x5a875b
cmp byte [edi + 0x14], bl
jne 0x5a875b
mov ecx, edi
call fcn.0051f200
push edi
call fcn.005faa32
add esp, 4
mov dword [esi + 0x118], ebx
push 0x1c
call fcn.005faa3d
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x18], 4
je 0x5a8787
push 0xcf0b
push str.unithalo.shp
mov ecx, eax
call fcn.0051ef10
mov edi, eax
jmp 0x5a8789
xor edi, edi
cmp edi, ebx
mov byte [esp + 0x18], bl
mov dword [esi + 0x11c], edi
je 0x5a87b2
cmp byte [edi + 0x14], bl
jne 0x5a87b2
mov ecx, edi
call fcn.0051f200
push edi
call fcn.005faa32
add esp, 4
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x834], ebx
mov dword [esi + 0x84c], ebx
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24