Function at 0x53f110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x644c39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
xor ebx, ebx
push ebx
push ebp
mov esi, ecx
mov dword [esp + 0x1c], ebx
call fcn.00534620
push eax
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x34], esp
lea eax, [esp + 0x68]
push eax
push str.item_wrong
call fcn.00403db0
mov ecx, 0x16c7860
call fcn.0046b8b0
mov eax, dword [esi + 0x1ba8]
test eax, eax
jle 0x53f1b6
lea ecx, [esp + 0x48]
push ecx
push str.LevelNumber
lea ecx, [esp + 0x20]
call fcn.00403db0
mov dword [esp + 0x38], ebx
lea edx, [esp + 0x18]
mov ebx, 3
push edx
mov dword [esp + 0x18], ebx
call fcn.0047b1b0
add esp, 4
cmp eax, 1
jne 0x53f1b6
fld dword [esi + 0x1f74]
mov byte [esp + 0x13], 1
fcomp dword [0x654e5c]
fnstsw ax
test ah, 0x41
jnp 0x53f1bb
mov byte [esp + 0x13], 0
test bl, 2
mov dword [esp + 0x38], 0xffffffff
je 0x53f1fa
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x53f1fa
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x53f1fa
sub eax, ecx
cmp eax, 0x80
jbe 0x53f1f0
push ecx
call fcn.00611869
add esp, 4
jmp 0x53f1fa
push eax
push ecx
call fcn.005d6970
add esp, 8
mov al, byte [esp + 0x13]
test al, al
je 0x53f244
push 0
push 0
push 0
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x38], esp
lea edx, [esp + 0x6c]
push edx
push 0x662920
call fcn.00403db0
push 0xc8
push 0x12c
lea ecx, [esi + 0x58]
call fcn.00528390
mov byte [esi + 0x1f70], al
mov eax, dword [esi + 0x1f78]
mov dword [esi + 0x1f74], eax
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
push edi
push ecx
push ebx
push ebp
mov ecx, esi
call fcn.00498250
mov edx, dword [esp + 0x48]
push edi
lea ebp, [esi + 0x258]
push edx
mov ecx, ebp
call fcn.0048f820
mov ecx, eax
call fcn.0048f600
mov ecx, dword [esi + 0x1b04]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xf4]
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
add eax, 0xffffffd6
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0xc8]
fild dword [esp + 0x4c]
mov edx, ecx
fild dword [esp + 0x48]
push 0
push 0
sub edx, edi
fstp dword [esp + 0x4c]
dec edx
fild dword [esp + 0x48]
push 0
mov dword [esp + 0x58], edx
push 5
fstp dword [esp + 0x58]
push eax
fild dword [esp + 0x60]
push 0x3f800000
push 0x3f800000
sub esp, 0x10
fmul st(2)
mov eax, dword [esp + 0x40]
sub ecx, ebx
dec ecx
fadd st(1)
mov dword [esp + 0x78], ecx
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
fstp dword [esp + 0xc]
add ecx, eax
fld dword [esp + 0x70]
fmul st(2)
fadd st(1)
fstp dword [esp + 8]
fild dword [esp + 0x78]
fmul st(2)
fadd st(1)
fstp dword [esp + 4]
fld dword [esp + 0x74]
fmul st(2)
fadd st(1)
fstp dword [esp]
fstp st(0)
fstp st(0)
call fcn.0048ea80
mov ecx, eax
call fcn.00497c70
mov edx, dword [esp + 0x40]
push ebx
push edx
mov ecx, ebp
call fcn.0048f820
mov ecx, eax
call fcn.0048f600
mov ebp, eax
mov eax, dword [esi + 0xf4]
mov ecx, dword [esi + 0x1b04]
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
add eax, 0xffffffd6
cdq
sub eax, edx
mov edx, ecx
sar eax, 1
push 0
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0xc8]
fild dword [esp + 0x44]
push 0
sub edx, ebx
dec edx
push 0
mov dword [esp + 0x4c], edx
push 5
fild dword [esp + 0x50]
push eax
push 0x3f800000
push 0x3f800000
fmul st(2)
sub esp, 0x10
mov eax, dword [ebp]
sub ecx, edi
fadd st(1)
dec ecx
fstp dword [esp + 0xc]
fld dword [esp + 0x74]
mov dword [esp + 0x74], ecx
fmul st(2)
mov ecx, dword [eax + 4]
add ecx, ebp
fadd st(1)
fstp dword [esp + 8]
fild dword [esp + 0x74]
fmul st(2)
fadd st(1)
fstp dword [esp + 4]
fld dword [esp + 0x70]
fmul st(2)
fadd st(1)
fstp dword [esp]
fstp st(0)
fstp st(0)
call fcn.0048ea80
mov ecx, eax
call fcn.00497c70
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 0x10