Function at 0x524360
Capabilities:
Check for software breakpoints
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov eax, dword [edi + 8]
cmp dword [eax + 0xcc], ebp
jne 0x52483f
cmp dword [eax + 0xd0], ebp
jne 0x52483f
mov ecx, dword [edi + 0xc]
mov edx, 0xb
cmp ecx, edx
je 0x52483f
mov eax, dword [eax + 0xc8]
xor ecx, ecx
add eax, 0x2c
mov esi, dword [eax]
cmp dword [esi + 0x3c], ebp
jne 0x52483f
inc ecx
add eax, 4
cmp ecx, 8
jl 0x5243a1
mov eax, 0x9c
mov ecx, dword [edi + 8]
add eax, 4
cmp eax, 0xcc
mov ecx, dword [eax + ecx - 4]
mov dword [ecx + 0x84], ebp
jl 0x5243ba
mov eax, dword [edi + 0xc]
mov dword [esp + 0x10], edx
cmp eax, edx
jge 0x524441
mov ebx, 0xc4
mov esi, 0x2c
mov eax, dword [edi + 8]
mov edx, dword [ebx + eax]
mov ecx, dword [edx + esi]
cmp dword [ecx + 0x3c], ebp
je 0x524426
mov edx, dword [ebx + eax]
mov eax, dword [ebx + eax + 4]
mov ecx, dword [edx + esi]
mov edx, dword [ecx + 0x3c]
mov ecx, dword [eax + esi]
push edx
call fcn.00523050
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x118]
dec ecx
mov dword [eax + 0x118], ecx
mov ecx, dword [edi + 8]
mov edx, dword [ebx + ecx]
mov eax, dword [edx + esi]
mov dword [eax + 0x3c], ebp
add esi, 4
cmp esi, 0x4c
jl 0x5243e6
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0xc]
dec eax
sub ebx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jg 0x5243e1
mov ebx, dword [edi + 8]
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], ebx
add ebx, 0x9c
mov esi, dword [ebx]
mov ecx, 8
mov eax, dword [esi + 0x7c]
xor eax, 1
mov dword [esi + 0x7c], eax
lea eax, [esi + 0x2c]
mov edx, dword [eax]
mov ebp, dword [esi + 0x7c]
add eax, 4
dec ecx
mov dword [edx + 0x30], ebp
jne 0x524469
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push ecx
test eax, eax
mov eax, dword [esi]
jne 0x52448c
sub edx, 0xf
jmp 0x52448f
add edx, 0xf
push edx
mov ecx, esi
call dword [eax + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [esp + 0x10]
add ebx, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x524456
mov ecx, dword [esp + 0x14]
call fcn.00520e70
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 0xd4]
test eax, eax
jne 0x5245ca
mov ebx, 0x2c
push 0x64
push 1
mov dword [esp + 0x18], 0
call fcn.004efce0
add esp, 8
cmp eax, 0x19
jg 0x52450f
cmp ebx, 0x2c
jle 0x52450f
mov ecx, dword [edi + 8]
push 1
mov edx, dword [ecx + 0x9c]
mov eax, dword [edx + ebx - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [edx + 0x84]
lea edx, [esp + 0x14]
push eax
push edx
call fcn.005202b0
jmp 0x52459f
mov ecx, dword [esp + 0x10]
mov ebp, dword [edi + 8]
test ecx, ecx
je 0x52452d
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x52452d
mov edx, dword [ecx]
push 1
call dword [edx]
push 0x9c
call fcn.004d8630
mov esi, eax
add esp, 4
test esi, esi
je 0x524555
push ebp
push 8
call fcn.004efcc0
add esp, 4
mov ecx, esi
push eax
call fcn.004db6c0
jmp 0x524557
xor eax, eax
mov dword [esp + 0x10], eax
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
call fcn.004db840
mov ecx, dword [esp + 0x10]
push eax
call fcn.004db810
push eax
call fcn.004efce0
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
call fcn.004b5e40
mov ecx, dword [esp + 0x10]
push 0xbb8
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [ecx + 0x9c]
mov ecx, dword [edx + ebx]
call fcn.00523050
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x18]
add ebx, 4
cmp ebx, 0x4c
jl 0x5244c9
mov ecx, dword [edi + 8]
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
mov ecx, dword [ecx + 0x100]
push 0x138f
call fcn.004b8aa0
mov ecx, dword [edi + 8]
call fcn.00521db0
mov edx, dword [edi + 8]
mov eax, dword [edx + 0xd4]
test eax, eax
je 0x524682
push str.Pushing_ceiling_down_n
call fcn.004f07d0
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 0x14]
add esp, 4
inc edx
mov dword [edi + 0xc], edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x14]
mov esi, eax
mov eax, dword [ecx]
mov ebx, dword [edx]
add esi, 0x1b
push esi
call dword [eax + 0x34]
mov ecx, dword [edi + 0x14]
push eax
call dword [ebx + 0x28]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x18]
push esi
mov eax, dword [ecx]
mov ebx, dword [edx]
call dword [eax + 0x34]
mov ecx, dword [edi + 0x18]
push eax
call dword [ebx + 0x28]
mov ecx, dword [edi + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x34]
mov ecx, dword [edi + 0x14]
mov ebx, eax
mov eax, dword [ecx]
call dword [eax + 0x38]
mov dword [esp + 0x14], eax
lea esi, [edi + 0x1c]
mov ebp, 5
mov ecx, dword [esi]
mov eax, dword [esp + 0x14]
push eax
push ebx
mov edx, dword [ecx]
call dword [edx + 0x28]
add esi, 4
add ebx, 0x3c
dec ebp
jne 0x524665
mov eax, dword [edi + 8]
add dword [eax + 0x7c], 0x1b
mov esi, dword [edi + 8]
mov eax, dword [esi + 0xcc]
test eax, eax
jne 0x52473f
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x52473f
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x98]
add edx, 0x16e
mov eax, dword [ecx]
push edx
mov edx, dword [esi + 0x10]
add edx, 0x81
push edx
call dword [eax + 0x28]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, dword [esi + 0x194]
call fcn.004f2700
mov edx, dword [esi + 0x98]
push 0x58
mov dword [edx + 0x98], 0
call fcn.004d8630
add esp, 4
test eax, eax
je 0x524731
push 0
lea ecx, [esi + 0x78]
sub esp, 0x10
mov ebx, dword [ecx]
mov edx, esp
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edx
push ecx
mov ecx, eax
call fcn.004db9a0
jmp 0x524733
xor eax, eax
mov ecx, dword [esi + 0x98]
push eax
call fcn.00485230
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x52483f
mov edx, dword [edi + 8]
xor ecx, ecx
mov eax, dword [edx + 0xc8]
add eax, 0x2c
mov esi, dword [eax]
mov ebx, dword [esi + 0x3c]
test ebx, ebx
jne 0x524775
inc ecx
add eax, 4
cmp ecx, 8
jl 0x524759
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov eax, dword [edx + 0xd4]
test eax, eax
jne 0x52482d
mov eax, dword [edx + 0x128]
mov ecx, dword [0x586bac]
xor eax, 1
lea esi, [eax*4 + 0x10]
mov eax, dword [ecx + eax*4 + 0x10]
cmp dword [eax + 0xd8], 1
jne 0x5247e5
mov edx, dword [eax + 0xcc]
test edx, edx
jne 0x5247e5
mov edx, dword [eax + 0xd0]
test edx, edx
jne 0x5247e5
lea ecx, [eax + 0xdc]
call fcn.004631c0
test eax, eax
jne 0x5247df
mov edx, dword [0x586bac]
push 1
mov eax, dword [edx + esi]
mov ecx, dword [eax + 0x198]
call fcn.00524360
mov ecx, dword [0x586bac]
mov eax, dword [ecx + esi]
xor edx, edx
mov eax, dword [eax + 0xc8]
add eax, 0x2c
mov esi, dword [eax]
mov ebx, dword [esi + 0x3c]
test ebx, ebx
jne 0x52481e
inc edx
add eax, 4
cmp edx, 8
jl 0x5247f3
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x128]
push eax
call fcn.00441bf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
call fcn.00441d00
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov ecx, dword [edx + 0x128]
push ecx
mov ecx, dword [0x586bac]
call fcn.00441bf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4